Ad placements

The ad placement code consists of HTML link and image tags pointing to your instance's delivery domain. These can be included on any email deployment, and should (ideally) be loaded into a system that supports setting custom values on the backend, as Javascript is not available in most email clients.

If you do not have a system that can support dynamically injecting values into the link and image URLs, you will need to manually generate the [...params] reference used below.

URI Parameters

  • adUnitId The id of the ad unit you would like to include on the page.

  • [...params] A url-encoded set of query parameters such as date=some_date&rand=1234.

    • date An ISO-8601 formatted date/time string

    • email The email address or unique identifier of the user. This should be a merge variable filled in by your ESP, such as @{encrypted_customer_id}@ or *|EMAIL|*.

    • rand A random value. This value helps ensure that views and clicks are correlated properly.

    • send An optional merge variable for the send identifier, used for future reporting efforts.

Example Implementations

Placement Code

<a href="https://[mydomain].serve.email-x.io/click/[adUnitId]?[...params]" title="Advertisement">
  <img src="https://[mydomain].serve.email-x.io/view/[adUnitId]?[...params]" alt="Advertisement" width="600" height="100" border="0" />
</a>

HTML Source

// Variables used with the placement code above
[mydomain]:  test
[adUnitId]:  123456
[...params]: date=2019-01-27T10%3A16%3A09-06%3A00&email=%40%7Bencrypted_customer_id%7D%40&rand=9689172420
<a href="https://test.serve.email-x.parameter1.com/click/123456?date=2019-01-27T10%3A16%3A09-06%3A00&email=%40%7Bencrypted_customer_id%7D%40&rand=9689172420" title="Advertisement">
  <img src="https://test.serve.email-x.parameter1.com  /view/123456?date=2019-01-27T10%3A16%3A09-06%3A00&email=%40%7Bencrypted_customer_id%7D%40&rand=9689172420" alt="Advertisement" width="600" height="100" border="0" />
</a>

HTTP Request Definition

Ad Request

GET https://[mydomain].serve.email-x.parameter1.com/image/:adUnitId

The ad request endpoint.

Path Parameters

Query Parameters

Last updated