A UAS Ad Tag is a simple piece of JavaScript code that you integrate into your webpage.

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, ORuse 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.

Native:

Paste the Tag where you want the ad to appear.

Video

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.

UAS ad tags intelligently identify whether pages are secure. UAS ad tags automatically request only secured creatives even if you have configured a non-secure version of an ad tag.

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

Rich Media (if resizable, the creative is cropped according to AMP specifications)

HTML5

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)

Flash

Rich Media (that resizes)

Interstitial Ads

Expandable Ads

HTTP/Non-Secure Creative

Supported Parameters

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.

Parameter

Required

Purpose

accId

Yes

Your publisher's account ID.

adUnit

Yes

The ID of the ad unit you want to use with AMP.

sizes

Yes

Array of ad sizes

locLat

No

Geo-location latitude

locLon

No

Geo-location longitude

locSrc

No

Geo-location source

pageURL

No

Set custom page URL

targetings

No

Key-value pairs

extraParams

No

Key-value pairs to be passed to PubMatic SSP

Examples

The following short examples demonstrate how to handle various ad formats within an AMP page using the parameters above.

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.