Default banner
A default banner (placeholder) is the code that's displayed if there are no banners to display from commercial ad campaigns. It's used if:
- There are no active ad campaigns.
- Limits or targeting parameters prohibit banner impressions to this user (for example, if restrictions on unique impressions or geography are triggered).
A default banner may be an image, HTML code, or JavaScript code and may perform different functions — for example, promote a product or monetize unsold traffic.
You can add default banners:
- For the platform (if the default banner isn't set, it's selected based on the banner type).
- For the banner type (if the default banner isn't set, the server returns the system placeholder code, which doesn't affect site display).
Sequence of selecting a banner for impressions
Add a default banner
-
To add a banner to a placement, go to Inventory → Your site → Sections → Placements and click Backup Ad.
To add a default banner to a banner type, go to Settings → Banner types and click
Backup Ad next to the desired type. -
Add the banner in one of the following ways:
- File: Upload an image (*.jpg, *.png, *.gif) or attach a link to it. Specify the redirect link in the Transition URL field.
- Code: Insert the HTML, JSON, or JavaScript code (or XML code for placements with XML banner types), including the ad tag from third-party ad management systems. For detailed instructions on inserting the code, see the section for your specific banner type.
Default banner for nondimensional banner types
When using nondimensional banner types, the ad tag doesn't take up space on the site page, so you can place banners of different sizes on the same placement (if the site layout allows this).
For example, a 600 × 90 placement hosts the 600 × 90 nondimensional banner type. There are no suitable banners to display, and the default banner isn't set, so the response from the Adfox server has code 204 in the JSON errors object. The placement size doesn't change and the site layout isn't affected.
Note
Codes of third-party systems (except adfox and adrime codes) that go outside the platform (for example, FullScreen, Screenglide/Expandable) aren't accepted for placement.
To add a default banner with the Adfox code:
- Use the code generator. Select the code type that you place in the default banner.
- If necessary, add tracking pixels.
- Copy the code and paste it in the Code field with the JavaScript type when adding a default banner.
Default banners for XML banner types
-
If there are no suitable banners to display, and the default banner isn't set, a system placeholder code is output:
<?xml version="1.0"?><nobanner></nobanner> -
For a custom banner to be displayed, add the XML code.
Default banner for video ads
For a banner for VAST player ads to be displayed, you need an ad request link. Put this link in square brackets in the VASTAdTagURI block, for example:
<?xml version="1.0" encoding="UTF-8"?>
<VAST version="2.0">
<Ad id="%placeId%">
<Wrapper>
<AdSystem>Adfox.ru</AdSystem>
<VASTAdTagURI><![CDATA[//ads.adfox.ru/XXXXXX/getCode?p1=xxx&p2=xxx&pfc=a&pfb=a&plp=a&pli=a&pop=a&puid1=%userValue1%]]></VASTAdTagURI>
<Impression></Impression>
<Creatives></Creatives>
</Wrapper>
</Ad>
</VAST>
If you need to pass additional parameters to the request code, use macros:
- For values of user characteristics:
puidNwith the%userValueN%value, where N is the characteristic number. For example,&puid1=%userValue1%. - To send a referer:
dlwith the%referrerEncoded%value. For example,&dl=%referrerEncoded%.
Copy the code and paste it in the Code field when adding a default banner for a placement and/or banner type.