Browse the help center

Invocation code types

Every ad tag type the platform can generate — what each produces, per-placement availability, preview support, the Settings tab and the default tag parameters.

Reference network manager publisher admin Account → Publishers → site → zone → placement → Ad tags & API

An invocation code (ad tag) is the snippet generated per placement that a page, app, email or video player uses to request ads. The Ad tags & API card on the placement editor shows one tab per code type available for that placement type — filtered further by your per-tag permissions — followed by a separated Settings tab that configures all of them. Copy the code, or use Download code to save it as a file.

The Ad tags & API card on the Universal JS tab

Active code types

The platform generates seven code types. The VAST tags tab is an eighth entry in the tab strip but is not a code type of its own: it is a panel of tag URLs built for video placements.

Scope: the table describes the new interface. The classic placement page renders the VAST tags as a fixed row per version — VAST 3.0 tag, VAST 4.0 tag, VPAID, VMAP — with no version picker, so 4.1 and above are unreachable there.

TabWhat it generatesLoading modelAvailable onPreview page
Universal JSAn <ins> element plus an async loader <script>Asynchronous, non-blockingSite, Mobile Site, Non-standardYes
Mount JSA function you call with your own container element — it falls back to the element after the script when you call it with noneAsynchronous loader, mounts into the container you nameSite, Mobile Site, Non-standardYes
Direct URLAn ad-serving URL returning the markup. With a Domain set on the placement (a new placement gets one) the generated URL, key included, is passed through Epom’s URL encryptionSynchronous fetch — you place the callSite, Mobile Site, Non-standardNo
Simple IframeBasic <iframe> embedIframe isolationSiteYes
APIDocumentation tab: request URL, placement key, parameter table and response samples for direct server/client callsHTTP request (HTML, JSONP, JSON, XML formats)Site, Mobile Site, Non-standard, Application, NativeNo
EmailEmail-safe tag (image + link, no scripts) plus the copyable Creative / Landing page URLsStatic, renders in mail clientsEmailYes
Video PlayerA ready-to-embed demo player that renders the placementPlayer fetches VAST XMLVideoYes
VAST tags (not a code type)A VAST tag URL with a version picker, plus VPAID and VMAP tag URLs, each at its own server-fixed version. Below the tags: a Request parameters section (maxAds, maxPodDuration) and, when the placement names a server-side ad insertion service, a macros table for itPlayer fetches VAST XMLVideo—

Click-through placements produce no invocation code at all — see the corner case below for what their card shows instead.

“Preview page” means the type can be exercised on the standalone ad preview page: its code type selector lists exactly the types marked Yes.

Corner case: Universal JS and Mount JS disappear from every placement when the network has no ad-serving domain configured, whatever your permissions say — the tabs are conditional on the domain list being non-empty. If both are missing everywhere rather than on one placement, that is the cause, and it is not a permission fix: ask your network or Epom support to add an ad-serving domain. The same condition also removes Universal JS from the preview page’s code-type selector.

Corner case: the VAST version picker offers 2.0, 3.0, 4.0, 4.1, 4.2 and 4.3, and defaults to 4.2. (4.3 is validated against the 4.2 schema.) The VPAID and VMAP URLs beside it are pinned server-side and do not follow the picker — changing the version changes the VAST URL only.

Retired code types

These types are gone from the interface, from the permission list and from the API. Most of them have also stopped serving — the URLs their tags call are no longer answered, so a tag of that kind still pasted into a live page fetches nothing, renders nothing and counts nothing. Neither the page nor any report says so. Re-issue those tags before you rely on the slot.

Retired typeURLs it depends onServingRe-issue as
JS Sync/js/show_ads.js, /ads-sync.jsDead — both answer 404Universal JS
JS Async/js/show_ads.js, /ads-async.jsDead — both answer 404Universal JS
Iframe Sync/js/show_ads.jsDead — answers 404Simple Iframe, or Universal JS
Iframe Async/js/show_ads.jsDead — answers 404Simple Iframe, or Universal JS
API JS Sync/ads-api-sync.jsDead — answers 404The API tab’s request URL
Lite/www/delivery/asyncjs.php, then asyncspc.php for the ad and lg.php for the impressionDead — all three answer 404Universal JS
JSP, PHP/ads-apiStill servedNothing urgent — but see the note below

JSP and PHP are the exception. They were never browser tags: each was a server-side snippet that called the ad API from the publisher’s own backend, and /ads-api is still answered. Those pages keep working; only the generator that wrote the snippet for you is gone.

Note: /ads-api is not the endpoint the API tab documents. The tab builds its request URL against /ads-api-v3 (or /ads-api-native for native placements) — a newer endpoint with a different response contract. Both are live, so an old JSP/PHP snippet keeps working, but you cannot paste the API tab’s parameters onto an /ads-api call and expect a match. Move the integration to the URL the tab shows when you next touch it.

Everything else in the table has lost the endpoint it depends on. Open the placement, copy the replacement from Ad tags & API, and swap it into the page: Universal JS wherever a script may be appended to the page, Mount JS where the page names its own container, Simple Iframe or Direct URL where a script is unwanted, and the API tab’s request URL where the call comes from your own server.

Finding them: the JS and iframe tags pasted into a page name only the loader, so search for show_ads.js and /www/delivery/ first — the rest of the URLs above are fetched by the loader and never appear in your HTML. If Epom set a custom invocation-code base or prefix for your network, the loader was served under that filename instead of show_ads.js; ask which one, or search for /js/ on your ad-serving host.

The Settings tab

Four controls shape every other tab, so they are configured once, on the last tab in the strip — labelled Settings. They save on change: adjusting one updates the placement itself, not just the displayed snippet, and every tab’s code is regenerated immediately.

OptionShown forEffect
DomainEvery placement whose tag / URL uses oneWhich ad-serving domain the tag / URL calls — one per placement, shared by the JS tags, Direct URL, the API request URL and the video / email URLs. Needs the Set Ad-Serving Domain (Placement) permission; without it the control is hidden entirely and the tag simply shows the domain in use
Ad wrapperSite, Mobile Site and Non-standard (JS tags only)Wrapper element handling for the rendered ad
ProtocolEvery placement that produces a tag / URLhttp / https / protocol-relative — applied to the Universal JS / Mount JS tags, Simple Iframe, Direct URL, the API request URL, and the VAST / VMAP + email URLs
Fit containerMobile Site and Non-standardScales the ad to its container

Download code is not on this tab — it sits on each code tab, next to the snippet. The API tab and the VAST tags tab have no download button, because neither shows a single copyable tag.

The whole Settings tab is hidden on non-editable shares, and each of its controls is disabled when you cannot update the placement.

Corner case: Direct URL and Simple Iframe follow the placement’s Domain, like the JS tags. A placement with none, or with a domain the network no longer has configured, uses the network’s default tag domain (see below). The system default ad-serving domain (White label preferences) is reached only on a network with no tag domain configured at all. Sites have no ad-serving domain of their own, so there is nothing to change on the site.

How the default Domain is picked: a new placement is created on the network’s default ad-serving domain — the one Epom flagged as default, or the first configured one if none is flagged. The placement keeps that domain afterwards, so adding another domain to the network later never moves an existing placement onto it. Creatives for a placement are served from the CDN attached to that same domain. The combo offers only the network’s tag domains, the default one first. A placement that still stores some other host — an older one, or the system default ad-serving domain — shows the default tag domain, which is what its codes already use, and saves unchanged. On a network with no tag domain configured the combo is hidden and the codes use the system default ad-serving domain.

Default tag parameters

The Settings tab also manages the parameters baked into every generated tag for the placement. There are thirteen types, and they appear in this order:

ParameterValue formatCarried as
Channelsingle valueTraffic-source identifier, later usable in targeting, analytics and the channel macro
Custom ParameterKey + Value fields, repeatableFeeds custom-parameter targeting and $$CUSTOM_PARAM(key)$$ macros; data-cp-<key> in tags, cp.<key> in URLs
Partner Sub-valueKey picked from sub1 to sub10 + Value, repeatableStored like a custom parameter but carried bare: data-sub1 in tags, &sub1=… in URLs. A name outside sub1–sub10 is refused: Sub-value name must be one of sub1 to sub10
3rd Party Click Tracking Urlsingle URLThird-party click-tracking URL prepended to click redirects
GDPR Appliesvalue / macro (${GDPR})data-gdpr in tags, gdpr in URLs
IAB TCF Consent Stringvalue / macro (${GDPR_CONSENT_849})data-gdpr-consent-iab in tags, gdprConsentIab in URLs
App Bundlevalue / macrodata-bundle / bundle
Advertising ID (IFA)value / macrodata-ifa / ifa
User ID (Advanced)value / macrodata-uuid — tag only, never added to a URL
Transaction ID (Advanced)value / macrodata-trx-id / ad.trans.id
Page Domain (Advanced)value / macro (%%SITE%%)data-page-domain / o. The page the ad is on, for a tag called from a player or another ad server’s frame — see Passing the page from a player or ad server
Page URL (Advanced)value / macro (%%REFERRER_URL_ESC%%)data-page-url / requestUrl
Ad-Loaded Handler (Advanced)JS handlerWritten to the slot as data-ad-loaded and run on the ad-loaded event — tag only. See The JavaScript API

The three original types (Channel, Custom Parameter, Click) keep their bespoke rendering, and Partner Sub-value follows Custom Parameter’s shape; the other nine are pass-through signals the ad server forwards verbatim.

Values are emitted into URLs without url-encoding, deliberately: most of them are macro placeholders (${GDPR}, [GDPR], %%CONSENT%%, …) that a downstream CMP has to recognise and substitute, and encoding them would break that. In tags they are HTML-escaped, which is a different thing.

These defaults reach every JS tag, the Simple Iframe and Direct URL, the VAST / VMAP URLs, the email tag’s link and image URLs, and the API request URL — including on native placements, which is why the block shows there even though native has only the API tab. Adding or deleting a parameter re-generates the code on every tab at once.

Corner case: the two tag-only parameters (User ID, Ad-Loaded Handler) are silently skipped when the code is a URL rather than a tag. Setting them and then reading the Direct URL or the API request URL will not show them — that is by design, not a truncation.

The API tab

The API tab is documentation, not a generated snippet: it shows the request URL, the placement key, a parameter table and response samples for calling the ad server directly. What it shows differs by placement type.

Placement typeResponse samples shown, in orderExtra parameters
NativeJSON success + JSON errorcount, rank, tmax
Mobile SiteHTML, JSONP, JSON, XML—
Site, Non-standardJSON, then the XML bid list (format=xml-bids)—
ApplicationNone — only the “response code is 200” and “no banner” notes—

The request URL defaults to format=json for every type except native, which carries no format parameter at all.

Corner case: for server-to-server calls the parameters that must be supplied for targeting to work are clientIp and clientUa — the caller’s IP and user agent, which the ad server cannot see when your backend makes the request. requestUrl is optional; it improves referer-based targeting but nothing depends on it.

If you send both a parameter and the matching header override, the parameter wins: the IP is taken from clientIp first, then from X-Device-IP, and from the connection last. Send one or the other, not both, or the one you meant may not be the one used.

What the ad server reads from an ad request. On the Universal JS / Mount JS tag you set them as data- attributes on the <ins> element (the loader turns them into request parameters and encrypts the query); on the Direct URL, Simple Iframe, API and VAST URLs you append them as query parameters.

<ins> attributeRequest parameterMeaning
data-keykeyThe placement key — the only mandatory one; it decides which placement (and so which zone and site) the request belongs to
data-channelchChannel — your own traffic label, groupable in reports, targetable, $$CHANNEL$$ in macros. An explicit value replaces the placement’s default channel
data-cp-<name>cp.<name>Custom parameter <name> — for custom parameter targeting and $$CUSTOM_PARAM(<name>)$$
data-clickclickThird-party click-tracking prefix
data-page-url (formerly data-page, still read)requestUrlThe page URL the ad is on, for $$PAGE_URL$$. When you set nothing the loader sends the top page’s URL if it can read it, else its own URL unless it runs inside a frame from another site, else nothing; set it when the tag runs in such a frame or in an app. A URL-encoded value (https%3A%2F%2F…, as %%REFERRER_URL_ESC%% gives) is decoded first. It replaces the Referer in the page macros and is one of the hosts Domain targeting checks
—rdA domain for Domain targeting to check first, ahead of the Referer, requestUrl and origin
data-page-domainoThe top page (https://news.example.com or a bare news.example.com; scheme, host and a non-default port — not a path). The loader fills it itself unless the attribute is set; it is the report’s Top Domain, travels into every impression and click URL, and feeds $$PAGE_ORIGIN$$ and $$PAGE_DOMAIN$$, the OpenRTB request, the Domain as default channel fallback and, as the last source, Domain targeting. A value naming no page — null, file://, the Google IMA SDK frame, a Google ad frame, your own serving or CDN host — is ignored, and a macro left unexpanded (%%SITE%%, {PAGE_DOMAIN}) makes the loader report the origin it detects itself
data-width, data-heightplWidth, plHeightThe slot’s size, when it is not the placement’s
data-excexcludedComma-separated banner IDs not to serve in this slot
data-gdpr, data-gdpr-consent-iabgdpr, gdprConsentIabGDPR applies (1/0) and the TCF consent string. Without them the loader asks the page’s CMP
data-user-consentuc1 = the visitor consented, 0 = not (for sites without a TCF CMP)
data-cookie-policycookie-policy0 normal; 1 no cookies and no server-side capping; 2 no cookies, server-side capping still on; 3 no user-ID cookie only
data-bundle, data-ifabundle, ifaApp bundle and device advertising ID
data-trx-idad.trans.idYour transaction ID (when your network allows setting it from the tag)
data-ad-loaded—Handler for the ad-loaded event, run in the page
—tz, tzn, im, sw, sh, tFilled by the loader: UTC offset, time-zone name, private-window flag, screen size, cache-buster
—clientIp, clientUa, requestUrlServer-to-server calls of the API URL: the visitor’s IP, user agent and page

Note: lang, rnd, l, us_privacy and gdpr_consent are not read — language comes from the browser’s Accept-Language header, the TCF string goes in gdprConsentIab.

Corner case — a channel or zone “missing” from reports is almost always the tag: the placement (and with it the zone and site) is decided by key alone, and the channel by the ch value the tag sends. Check the data-key and data-channel your page actually renders.

VAST tag URL parameters

A VAST tag is fetched by the player, not by a page, so everything the ad server would otherwise read from the browser has to be in the URL. These are the parameters the VAST, VPAID and VMAP tag URLs accept, on top of the ones in the table above (key is still the only mandatory one, and ch, cp.<name>, click, requestUrl, o, gdpr, gdprConsentIab, uc work here too).

Format and pod

ParameterMeaning
zoneWhich in-stream formats may answer, repeatable. PRE_ROLL, MID_ROLL and POST_ROLL ask for a linear ad — to the ad server the three mean the same thing — and OVERLAY for a non-linear one. Any other value, LINEAR_VIDEO_AD included, is ignored. Omitted, the request is answered by trying linear first and then non-linear — see the corner case below
maxAdsHow many ads the pod may hold. Outside the server’s range the value is ignored
maxPodDurationThe pod’s total length in seconds. 0 or below is ignored
maxDurationThe longest single ad the player takes, in seconds (1–3600). It narrows the video.maxduration sent to programmatic demand; it never widens the placement’s own range
minbitrate, maxbitrateThe bitrate range, in kbps, the player can play. Renditions outside it are left out of the response
boxingallowed1 the player may letterbox a rendition whose aspect ratio differs, 0 it may not
iterateHow many ads to walk the daisy chain for, clamped to the server’s range
vpaidtrue asks for a VPAID-capable response
tmaxMilliseconds the ad server may spend selecting, so a player with its own deadline is answered inside it rather than timed out

Viewer and device

ParameterMeaning
ifa, ifa_type, lmtThe device advertising ID, which kind it is, and whether the viewer limited ad tracking
dnt1 when the viewer’s device asks not to be tracked; forwarded to programmatic demand as device.dnt
bundleThe app’s bundle id, for app targeting and the OpenRTB request
appNameThe app or channel name; programmatic demand gets it as app.name instead of the site’s name
clientOs, osvThe operating system and its version, when the player knows them better than the user agent says
sw, shThe screen size in CSS pixels, as a browser’s screen.width / screen.height report it, not the panel’s physical pixels
plWidth, plHeightThe slot’s size, when it is not the placement’s
net_access, carrier_nameConnection type and mobile carrier, as an SDK reports them
latitude, longitudeThe viewer’s coordinates, for geo targeting more precise than the IP gives
tz, tznUTC offset in hours (-5, 5.5) and the IANA time-zone name. A tz beyond ±15 — an offset sent in minutes, say — is ignored, and visitor-time dayparting falls back to network time

Page and context

ParameterMeaning
requestRefThe referring page, where the player cannot send a Referer
rdA domain for Domain targeting to check ahead of the Referer, requestUrl and origin
ch, cpsChannel and the custom-parameter string
contentGenre, contentRating, contentLivestream, contentLanguageThe show the ad plays in: its genre, its age rating (TV-PG), 1 live or 0 on demand, and its language. Sent to programmatic demand as content.*, and targetable through Custom Parameter targeting

Privacy

ParameterMeaning
gdpr, gdprConsentIabWhether GDPR applies and the TCF consent string
uc1 the viewer consented, 0 not, for a player with no TCF CMP
gpc1 the viewer sent a Global Privacy Control signal
usPrivacyThe IAB US Privacy string, such as 1YNN
gpp, gppSidThe IAB GPP string and the comma-separated ids of the sections that apply
coppa1 child-directed traffic, 0 not
im1 the viewer is in a private window

usPrivacy, gpp, gppSid and coppa are not part of the ad server’s own consent decision: they fill the $$US_PRIVACY$$, $$GPP$$, $$GPP_SID$$ and $$COPPA$$ macros, and programmatic demand gets them — with gdpr and the consent string — once Pass privacy signals to DSPs is on. A value that is not well-formed, or a stitcher’s own macro sent back unfilled, counts as absent.

Header overrides

A server-to-server caller — an SSAI stitcher, another ad server, a middleware — is not the viewer, so the ad server reads the viewer’s details from these headers instead of the connection:

HeaderReplaces
X-Device-IPThe caller’s IP, for geo targeting and fraud checks
X-Device-User-AgentThe caller’s user agent, for device and browser targeting
X-Device-Accept-LanguageThe caller’s Accept-Language, for language targeting
X-Device-Referer, X-RefererThe page, for Domain targeting and the page macros

Corner case: w and h are parsed and then unused — the response’s renditions are decided by the creative and the bitrate range, not by a size on the tag. Send plWidth / plHeight if you need to tell the server the slot’s size.

Corner case: a tag with no zone is answered by trying each in-stream format in turn, so a troubleshooting log for it shows the formats that did not answer alongside the one that did. Naming the format you want makes both the response and the log unambiguous.

Note: parameters used by the console and the loader itself — the forced-banner, capping-skip, excluded-banner, repeated-request and recommendation ones — are not part of this contract and may change without notice.

Passing the page from a player or ad server

A VAST tag called by a video player, or any tag called from inside another ad server’s frame, is requested by the player or frame — not by the page. Without help the ad server sees the player’s host (Google’s IMA SDK requests from imasdk.googleapis.com) or nothing at all, and Top Domain, the page macros ($$PAGE_DOMAIN$$, $$PAGE_URL$$) and the OpenRTB site domain come out empty. Hand the page over with the two Advanced tag parameters, filled with the macro of whatever calls the tag:

CallerPage Domain (o)Page URL (requestUrl)
Google Ad Manager, VAST redirect creative%%SITE%% — the domain of the ad tag’s url parameter%%REFERRER_URL_ESC%% — the page URL; Google expands it only with the IMA SDK, with script access, and not inside an iframe
JW Player__domain____page-url__
Your own player page calling the IMA SDKlocation.hostname, set by your script when it builds the tag URLencodeURIComponent(location.href)

Use the escaped (_ESC) form of a Google URL macro, because the value sits inside a URL. Where the page URL cannot be had, GAM’s %%DESCRIPTION_URL_ESC%% gives the description_url your Google Publisher Tag declares. Other players have their own macro lists; check the player’s ad-tag macro reference for its page-domain and page-URL macros.

Corner case: the parameters ride the tag URL unencoded, so the macro reaches the caller intact — but whatever the caller substitutes is taken as given. Top Domain is reduced to https://host in lower case, and a value that names no page is ignored, so an unexpanded macro leaves Top Domain to the request’s own headers rather than reporting %%SITE%%.

Corner cases

Corner case: Click-through placements generate no invocation codes at all, but they do get the card. In the new interface it opens on a Show tracking URLs tab — the per-creative URL list — plus the Settings tab, because Domain, Protocol and the default parameters are what those URLs are built on. The classic page has no such tab and keeps a Show tracking URLs button in the placement header instead.

Corner case: if a tab you expect is missing on a site-family placement, a per-tag permission is the usual cause — each of those tag types has its own. Video Player and Email have no permission of their own: they appear whenever the placement is of that type.

Per-role notes

  • Publisher: out of the box only the API tab on Mobile Site and Native placements, plus Email, VAST tags and Video Player, which need no permission. Ask your network manager for other tag types. Codes use the placement’s own domain, because the Domain picker is off.
  • Network manager: each tab and the Domain picker are granted per role by your network administrator.
  • Administrator: the ad-serving domain list and CDNs are not set on the placement; Epom support manages them on request.
  • Can View share: you can copy and download codes, but the Settings tab is hidden.

Related pages

Please disable Adblock
Are you using adblock? Disable it and reload the page to proceed to the destination page.

A registration has already been submitted from this page. Please try again in 10 minutes.