Browse the help center

Pop-under, tab-under and direct-link placements

Sell or buy pops and direct links step by step — the Always redirect placement, the 302 redirect template, the direct URL with its macros, what counts as an impression and a click, frequency capping that holds on Safari and in apps, OpenRTB pop demand — with the caveats and a fix-it checklist.

How-to network manager Account → Publishers → site → zone → placement → Basic info → Advanced settings → Always redirect

What it is and why

Pop traffic in Epom is served by a placement that answers an ad request with an HTTP 302 redirect to the advertiser’s landing page instead of with ad markup. The same mechanism is behind a pop-under, a tab-under, a “direct link” sold to a traffic source, and a pop bought from an OpenRTB demand partner: the traffic source (or your own script) opens the placement’s Direct URL, the ad server picks the winning banner and sends the visitor straight to its landing page, counting the impression on the way.

Example. A traffic source sends 50,000 visits a day to your direct link https://ads.example/ads?key=…&cp.source={zoneid}. 38,000 of them match a linked redirect banner and get a 302 to its landing page — 38,000 impressions. The other 12,000 are capped (1 per 30 minutes), out of targeting, or bots, and get a 404: they show up as requests without an impression, which is why your count is always lower than the source’s.

Typical scenarios

You wantSetWhere
Sell a direct link to a traffic source, with its sub-ID and a click ID in the landing pageA Non-standard Placement with Always redirect; a Always Redirect with 302 Response Code template banner whose Url carries $$CUSTOM_PARAM(source)$$ and $$CLICK_ID$$; append &cp.source={zoneid} to the direct URL you hand overPlacement → Advanced settings; the campaign’s template banner; Macros
Open a pop-under from your own page on the first clickYour pop script (a template banner under Account → Templates) calls window.open() on the placement’s Direct URLA Non-standard placement with the script, plus the redirect placement it opens
Cap pops at 1 per visitor per 30 minutes, including Safari and iOSFrequency capping, Amount 1, Period 30 Minute(s), Subject User (cookie-based + server-side storage)The placement’s or campaign’s Frequency capping card
Spread 4 pops a day to one every 6 hoursFrequency capping, Amount 4, Period 1 Day(s), Flat onThe same card
Count clicks on a pop as well as impressionsPut $$CLICK_REDIRECT_URL$$ in front of the landing page in the template’s UrlThe template banner
Buy pops from a DSPLink an OpenRTB (DSP) banner to the always-redirect placementSee Buying pops from an OpenRTB partner
Serve pops inside a native appThe app requests the Direct URL with the device’s real user agent, &bundle= and &ifa=, and follows the 302See the caveats

Step by step

  1. Account → Publishers → site → zone → Add new placement…, type Non-standard Placement (a Mobile Site Placement works the same way). Save.

  2. Open the placement, expand Basic info → Advanced settings, tick Always redirect and save. The checkbox exists only on those two types and needs the Always Redirect permission; without it the box is not on the page.

    Always redirect ticked in the Advanced settings of a Non-standard placement

  3. Create the demand: in the campaign, add a Template banner and pick the template Always Redirect with 302 Response Code — a system template every network has; your network administrator may have renamed or added others. Fill its one property, Url, with the landing page (up to 2,000 characters), and link the banner to the placement.

    Template banner on the Always Redirect with 302 Response Code template, with the landing page in Url

  4. Open Ad Tags & API → Direct URL on the placement and copy the URL (…/ads?key=…; on a placement with a serving domain the tab shows that part encrypted, https://<serving domain>/z…). The tab is shown when your role has the Direct URL invocation code for that placement type.

    Direct URL tab of the Ad tags & API card

  5. Test it: paste the URL into a browser address bar. You should land on the banner’s URL. A blank 404 page means no banner could serve — check linking, targeting, capping and limits as for any banner (My ad is not serving). Test from the countries you target: a request from your desk carries your own IP, so a banner targeted at another country answers 404. Use a placement-level test banner with Global targeting, or the Preview page’s IP override on a non-redirect placement, to check the setup first.

  6. Give the URL to the traffic source, or call it from your own pop/tab-under script with window.open(url). Append &cp.<name>= values the source fills (for example &cp.source={zoneid}) if the landing page needs them — see the macros below.

  7. Cap it. In the placement’s or campaign’s Frequency capping card set the amount and period, and pick the subject User (cookie-based + server-side storage) so the cap holds on Safari, iOS and in private windows (Set up frequency capping).

Macros in the direct URL

The template’s Url value is macro-processed before the redirect, with the publisher and advertiser macro sets — so a landing page can carry the placement, the traffic source’s sub-IDs and a click ID:

https://landing.example/offer?src=$$PLACEMENT_ID$$&sub=$$CUSTOM_PARAM(source)$$&cid=$$CLICK_ID$$

Anything you append to the direct URL as cp.<name>= (for example &cp.source={zoneid} filled by the traffic source) is available as $$CUSTOM_PARAM(<name>)$$. See the Macros reference for the full list and the _ESC (URL-encoded) variants.

Caveats and exceptions

Who can do this. Network managers and publishers who sell or buy pop / direct-link traffic. You need permission to create a Non-standard Placement (Non-Standard Site Placements) or a Mobile Site Placement (Mobile Site Placements), the Always Redirect permission for the checkbox, the Direct URL invocation code for that placement type (listed under the placement type in Roles) for the Direct URL tab, and demand that produces a URL — a campaign you can add Template banners to (Template permission) or an OpenRTB DSP partner that returns pops. A publisher without Always Redirect does not see the checkbox; a Can view share can copy the Direct URL but not change the flag; a demo account’s redirects work against demo banners.

Three pieces have to meet, or the placement returns ordinary markup instead of a redirect: a Non-standard or Mobile Site placement with Always redirect ticked; a linked banner that produces a URL — a Template banner on a template with Always redirect with 302 response code ticked, or an OpenRTB (DSP) banner whose partner returns a pop; and a request to the placement’s Direct URL. When a banner wins, the server answers 302 Found with the banner’s URL in Location. When nothing can serve — no banner matches the targeting, every candidate is capped or limited — it answers 404 Not Found and records a no ad. Nothing is appended to the redirect URL: no impression beacon, no overlay, no cookie-sync pixels.

Always redirect on a Site Placement does nothing. The flag is honoured only on Non-standard and Mobile Site placements, and only for a redirect template or an OpenRTB banner. Any other banner on the same placement is served as normal markup.

No header bidding. An always-redirect placement answers with a URL, so it cannot be sold through a header-bidding tag.

Discrepancies with the traffic source are larger for pops than for banners: the source counts the visits it sent, Epom counts the redirects it served. Requests that were capped, out of targeting, or from bots answer 404 or are filtered. See Analytics discrepancies.

What counts as an impression and a click

EventWhen it is recorded for a redirect placement
RequestEvery call to the direct URL
ImpressionAt the moment of the redirect, server-side — only if the template has Template impressions record ticked, or the banner is an OpenRTB pop. The system 302 template has it ticked.
No adA call that ended in 404
ClickNot recorded automatically. A redirect has no click of its own. If you need clicks, route the landing page through the click redirect: put $$CLICK_REDIRECT_URL$$ in front of it in the template’s Url

So with a pop capped at “1 impression per 30 minutes”, one impression is one pop opened for one visitor; a second page view inside the 30 minutes asks again, gets a 404 and shows up as a request without an impression. A copy of the template without Template impressions record redirects fine but records no impression, because nothing else in the redirect path counts one.

Do tracking pixels fire on a pop?

No pixel in the page sense. A pop is a 302 redirect: the visitor’s browser receives a Location header and goes straight to the landing page, and no HTML from Epom is ever loaded. So nothing that is markup runs: the banner’s third-party tracking code (impression pixels, JS trackers) is not added — redirect content is a bare URL, and anything appended would break it — and Epom’s own impression beacon is not used either; the impression is recorded on the server at the moment of the redirect.

What does work for a third party:

  • Server-side trackers on the banner or the placement. An Impression tracker is called by the ad server itself when the pop’s impression is recorded, with macros filled in; a Request tracker on every redirect served. This is the way to give a partner an impression count for pops.
  • Their tracking link in the redirect chain — put the partner’s click/redirect URL in the template’s Url with your landing page inside it, so the visitor passes through their server on the way.
  • Epom’s click redirect — $$CLICK_REDIRECT_URL$$ in front of the landing page records a click in Epom (a pop has no click otherwise).

Script-based pops and tab-unders

A pop that opens from your page — on the visitor’s first click, on a click on a link, or on a CSS selector you choose — is JavaScript. Epom does not ship a built-in pop script: such formats are Template banners your network adds under Account → Templates (or that your network administrator adds for you), served on a Non-standard placement through the Universal JS tag like any other template. Their trigger, their own “show once per N minutes” setting and where they keep that state are whatever that template’s code does — read the template’s properties. Two settings matter for the counts:

  • A template that opens the pop on a click should have Template impressions record ticked and fire $$IMPRESSION_TAG_JS$$ (or load $$IMPRESSION_IMG_URL$$) when the pop actually opens. Without the flag the impression is counted when the script is delivered to the page, whether or not the visitor ever clicks.
  • The script usually opens the placement’s direct URL — so the pop itself is the redirect placement above, and its capping is the redirect placement’s capping.

Pops in a native app or WebView

There is no Epom SDK for pops — and none is needed. The app requests the placement’s Direct URL like a browser would (from the app’s HTTP client or by opening it in a WebView or the system browser) and follows the 302: the Location header is the landing page to open, a 404 means no ad. The impression is recorded at the redirect, server-side, so nothing has to run inside the app afterwards. What the app should send:

  • The device’s real user agent — a request whose user agent matches a known bot gets an empty 200 answer (no body, no Location) instead of a redirect.
  • &bundle= and &ifa= (the app’s bundle ID and the device advertising ID) and anything else you target or pass through macros, such as &cp.<name>= values — see Ad request parameters.
  • The real visitor IP: when your server calls the Direct URL on the app’s behalf rather than the device itself, geo targeting and capping see your server’s IP.

Cookie-based frequency capping cannot work in most apps — switch the placement or campaign to server-side capping (below).

Cap pops in the placement’s or campaign’s Frequency Capping card (Set up frequency capping). The Subject decides where the counter lives, and that matters more for pops than for anything else because pop traffic is heavy on Safari and mobile:

SubjectWhere the count livesPops on Safari / iOS / Firefox
User (cookie-based)A cookie on the serving domainNot reliable — these browsers block or drop the cookie, so every request looks like a new visitor
User (server-side storage)Server-side, keyed by the visitor’s IDWorks
User (cookie-based + server-side storage)Cookie where cookies work, server-side otherwiseWorks — the default choice for pops

The mixed subject switches to the server-side counter whenever cookies cannot be trusted: the visitor is in a private window (im=1), the browser is Safari, Mobile Safari, Firefox, Firefox Mobile, Brave or DuckDuckGo, or the OS is iOS, iPadOS or Apple TV. Flat capping applies too: 4 per 24 hours, Flat allows one pop every 6 hours rather than four in a row.

The Subject column appears only when your network has server-side capping storage switched on, which is a server-side setting. Without it every cap is a cookie cap and Safari visitors see the pop on every page view — ask Epom support or your account manager to enable server-side capping if you sell pops. And consent can turn it off: a request whose cookie policy says “no cookies” (data-cookie-policy="1") is not written to server-side storage either.

Buying pops from an OpenRTB partner

Link an OpenRTB (DSP) banner to the always-redirect placement. Epom then flags the bid request as a pop for that partner — imp.ext.type = "pop" for a custom partner, the partner’s own convention for the built-in pop networks — and expects a landing URL back in adm (some built-in pop partners answer in their XML format, which Epom reads). A bid whose adm is not a valid URL is dropped. The winning URL is served as the 302, and the impression is recorded at that moment at the auction price. Setting up the partner itself is in Configure DSP partners.

Not working?

SymptomCheckWhere
The direct URL shows a blank 404 from your deskNo banner can serve you: geo targeting excludes your country, or the banner is capped, limited or not linkedThe banner’s targeting (test with a Global test banner), Linked banners, capping, limits; My ad is not serving
The placement returns markup, not a redirectOne of the three pieces is missing: the type is Site Placement, Always redirect is off, or the banner is neither a 302-template nor an OpenRTB popPlacement type; Advanced settings; the banner’s template (Always redirect with 302 response code ticked)
Requests but zero impressionsThe template is a copy without Template impressions recordThe template’s properties under Account → Templates
No clicks in reportsA redirect has no click; nothing records one unless the landing page sits behind $$CLICK_REDIRECT_URL$$The template’s Url
Safari or iOS visitors get the pop on every page viewThe cap uses the plain cookie subject, or the network has no server-side capping storage (no Subject column)The cap’s Subject; ask support to enable server-side storage
The cap never fires for a page that passed data-cookie-policy="1"Policy 1 also stops server-side countingThe page’s tag attributes; use 2 if capping must hold
No Always redirect checkboxYour role lacks Always Redirect, or the placement is not Non-standard / Mobile SiteAsk your network manager; the placement type
No Direct URL tabYour role lacks the Direct URL invocation code for this placement typeRoles, under the placement type
An app gets an empty answer instead of a 302The request’s user agent matches a known bot, or your server called the URL and its IP failed targetingSend the device’s real user agent and let the device call the URL
The source’s count is far above yoursCapped, untargeted and bot requests answered 404 or were filtered — expected for popsAnalytics discrepancies
DSP pops never winThe bid’s adm is not a valid URL and was droppedThe partner’s response format; DSP partners

Reference

ItemValue
Placement types with Always redirectNon-standard Placement, Mobile Site Placement (Basic info → Advanced settings)
PermissionsAlways Redirect (the checkbox); Non-Standard Site Placements / Mobile Site Placements (create the type); the Direct URL invocation code under the placement type (the tab); Template (the banner)
System templateAlways Redirect with 302 Response Code: one property, Url, up to 2,000 characters; Always redirect with 302 response code and Template impressions record ticked
Direct URL…/ads?key=<placement key>, shown encrypted on a placement with a serving domain; &cp.<name>= values become $$CUSTOM_PARAM(<name>)$$; apps add &bundle=, &ifa=
Answers302 Found + Location (impression recorded); 404 Not Found (no ad recorded); empty 200 answer, no body, for a bot user agent
ClickOnly via $$CLICK_REDIRECT_URL$$ in front of the landing page
OpenRTBimp.ext.type = "pop" for custom partners; adm must be a URL; impression at the auction price
Capping subjectsUser (cookie-based); User (server-side storage); User (cookie-based + server-side storage) — the mixed subject goes server-side on private windows, Safari, Mobile Safari, Firefox, Firefox Mobile, Brave, DuckDuckGo, iOS, iPadOS, Apple TV

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.