Skip to content

Ad slots

An ad slot is where an edition carries an ad. On a date your organization sold, it shows the advertiser’s creative: see Direct-sold ads. On any other date, it shows its unsold fill: nothing, a default creative, or your ad network’s tag.

A tag is an image and its link for each ad unit, plus any tracking images. EdgeKit fills the parts of each URL that differ by recipient when the email goes out, so your editors fill nothing. LiveIntent is the example on this page; any network whose tag is images and links with values in the URL works the same way.

In a publication’s slots, select Add ad slot. Its block is ad-unit, and its block props are the slot’s whole setup:

Prop Holds
adType The one ad type a creative placed here has. Without one, no creative can be booked here.
fill The unsold fill: nothing, default or programmatic. A new ad slot starts at nothing. One set up with ad units before direct-sold ads has programmatic.
defaultCreative With default: the creative the slot shows, a creative of its ad type from one of your ad campaigns.

With programmatic, the slot also holds the tag: an ad network and at least one ad unit.

Prop Holds
adProvider liveintent, passendo, kevel or other. A label your custom template can lay out by.
network Optional. A name the preview shows in place of the network’s, such as your own ad server’s.
units 1 to 10 ad units, each an href, a src, a width up to 600 pixels, an optional height, alt.
pixels Up to 10 tracking image URLs, such as LiveIntent’s SafeRTB tag.
rawEmail true lets a URL carry the recipient’s address itself rather than a hash. Off by default.
{
"adType": "banner",
"fill": "programmatic",
"adProvider": "liveintent",
"units": [
{
"href": "https://sli.example.com/click?s=1001&li=daily&m={email_md5}&p={edition_id}",
"src": "https://sli.example.com/imp?s=1001&li=daily&m={email_md5}&p={edition_id}",
"width": 600,
"alt": "Advertisement"
}
],
"pixels": ["https://sli.example.com/imp?s=2001&m={email_md5}&p={edition_id}"]
}

An organization’s stack has to run the EdgeKit release that renders ad slots before one can be saved. Until then the save is refused and names both releases.

Each URL is https, at most 2,048 characters, with its host and path written out. Values EdgeKit fills go in the query:

Value Becomes
{email_md5} The MD5 hash of the recipient’s address, lower-cased and trimmed.
{email_sha256} Its SHA-256 hash, the same way.
{email} The address itself, URL-encoded. Only with rawEmail: true.
{edition_id} The edition’s id: one value per send, the same in every variant. LiveIntent’s p= value.
{publication} The publication’s slug.
{edition_date} The send date in the schedule’s time zone, YYYY-MM-DD.
{variant} The variant’s name.
{slot} The slot’s position, counting from 1.
{slot_key} The ad slot’s key, or in a stack slot, the stack slot’s key. The same in every edition.

The Braze values a link template may use, such as ${braze_id}, are allowed too, and ${email_address} only with rawEmail: true. They work only through Braze: a publication sending through SendGrid takes the values above alone, and its deploy names any Braze value. Anything else in braces is refused when you save the slot, and so is Liquid.

  • The email: each recipient’s mail client loads the images with that recipient’s values.
  • The edition preview: each ad is a light grey box, 60 px tall, that names your ad network, such as “Ad from LiveIntent”, or the slot’s network when it has one, in the publication’s language. The values are filled only for a recipient, so the preview loads nothing from your ad network.
  • A test send: the same box as the edition preview. A test send loads nothing from your ad network, so it counts no impression; your ad network’s ad appears only in a real send.
  • The web page and the plain-text version: no ad from your ad network. A direct-sold creative carries no recipient’s data, so it appears there too, and in the edition preview and a test send.

To leave an ad out of one edition, open the slot’s Settings in the edition and turn on Hide this ad. That edition’s email has no ad there, and nothing is loaded from your ad network for it. Turn it on in the publication’s slot instead to leave the ad out of every edition.

An ad slot is not content: an edition whose other slots are empty is not sent. An experiment cannot vary an ad slot, and a push leaves it out.

An ad slot sends a hash of each recipient’s email address, or the address itself with rawEmail, to your ad network. The recipient’s mail client sends it when it loads the image, and EdgeKit records no consent for it: having a basis to share it is your organization’s responsibility, under its agreement with the network.

edgekit.ai