Once you've generated the Ad Tag you can place it on your website. If your ad unit contains multiple types (for example, Banner, Rich Media, Native, or Video), you can generate a tag for an individual type, or for all types at once:
- Select Inventory > Ad Units from the main navigation.
- Select Generate Ad Tag from the Actions column for the applicable ad unit from the list, OR
use the button from the detail view of an individual ad unit.
- Check the box for each type of ad tag you want to generate, then click Copy or Copy All Ad Tags to copy the code to the clipboard.
- Insert the copied code into the section of your website source based on the ad types below:
- Banner/Rich Media:
- Paste Head Tag in the Header.
- Paste Body Tag in the Body of the page where you want the ad to appear.
- Paste the Tag where you want the ad to appear.
- Paste the Video Code where you want the video ad to appear.
Secured and Unsecured Ad Tags
SSL (Secure Sockets Layer) is a standard security protocol to encrypt communication between a web server and a client web browser. SSL technology ensures that all data transmitted between the web server and browser remains private and secure.
You can generate secured (SSL) or unsecured ad tags based on your web property setup. If your site is secured (SSL-compliant ), you must secure all ad content. If UAS receives a request for a secure ad, then UAS delivers only SSL-compliant creatives.
If you are hosting any Rich Media, Video XML URL, or HTML5 creatives that are marked secure, you must ensure that the third party hosting the creatives always returns secure content.
Delivering non-secured ad content on a secured site may cause a warning on the user's browser and the ad or the entire page may be blocked. Use caution when setting the ad tag on a secured page.
Implement UAS AMP Tags
UAS currently supports a limited number of ad tag types for AMP. The sections before describe supported and unsupported ad types, and other limitations.
Supported Ad Formats/Creatives
UAS ad tags in AMP currently support the following five ad types:
Third Party (currently only Wrapper Line Item supports AMP)Learn more about OpenWrap AMP Support.
- Rich Media (if resizable, the creative is cropped according to AMP specifications)
- HTTPS/Secure Creative Video
Unsupported Ad Formats/Creatives
The following seven UAS ad tag types are currently not supported in AMP:
- VAST based (AMP supports HTML5 based Video creatives instead)
- Native (because UAS must create a div on the page and requires rendering responsibility)
- Rich Media (that resizes)
- Interstitial Ads
- Expandable Ads
- HTTP/Non-Secure Creative
The following table lists the parameters currently supported by the <amp-ad> tag. Submit the parameters as attributes of the tag's json element. See the Examples following the parameters table for specific usage.
|Yes||Your publisher's account ID.|
|Yes||The ID of the ad unit you want to use with AMP.|
|Yes||Array of ad sizes|
|No||Set custom page URL|
|No||Key-value pairs to be passed to PubMatic SSP|
The following short examples demonstrate how to handle various ad formats within an AMP page using the parameters above.
- AMP support is possible only for tag-based integration and not for server-to-server integrations.
- Single Ad Call for multiple slots on the same web page is currently unsupported in AMP.
- Not all the creatives are supported in the AMP-based integration. See Supported Ad Formats/Creatives.
- Ad Engine currently doesn't differentiate between supported and unsupported ad formats for AMP. Setup for supported formats is the Publisher's responsibility.
- Currently, reporting for distribution between the percentage of the AMP and non-AMP inventory isn't available from the UAS UI. Currently you must create an ARR ticket in order to activate Ad Hoc reporting that can provide this data.
Ad Tag Configuration Guide
- How to configure UAS Ad Tag/Ad Unit Scripts on web pages.
- How to set additional parameters such as Location, GDPR, and GDPR Consent for EU users.
- How to set the custom key value common to all Ad Slots specific to Ad Slot and so on.