OpenWrap now supports delivering ads in the popular open-source AMP webpage format. The sections below describe the three-step process for supporting AMP in OpenWrap.
- Set Up an OpenWrap Profile for AMP
- Configure an <amp-ad> Tag to Use OpenWrap
- Deploying Ads to Your AMP Pages
1. Set Up an OpenWrap Profile for AMP
a. From the main navigation select, Inventory > OpenWrap.
b. Switch to the Profile Management tab, then choose, Create Profile.
c. Enter a Profile Name , set Platform to AMP, then set AdServer to DFP if it's not already set to that value.
d. Select the Partners that apply to this profile. PubMatic appears by default. Find specific partners by entering some or all of a partner name in the Search field. Select partners from the list on the left to add them to the selected partners list on the right.
e. Select Done to save your completed partners list.
2. Configure an <amp-ad> Tag to Use OpenWrap
a. Choose a profile from the Select a profile drop-down list.
b. Copy the code from the editable portion of the Document Layout section .
c. Paste the code into the <body> section of your relevant pages or tag management solution. See section, 3. Deploying Ads to Your AMP Pages.
3. Deploying Ads to Your AMP Pages
You have a couple of methods for adding ads to your AMP pages. Both methods use the <amp-ad> tag to insert an ad. The User Sync method uses an additional <amp-iframe> tag to sync a user cookie. The following sections describe each method:
- User Sync With An <amp-iframe>
- Multiple Slot Sizes Using <amp-ad>
User Sync With An <amp-iframe>
Use this method to add an ad to your AMP page when you want to sync with a user cookie on the client side.
Insert an initial <amp-ad> tag block within the HTML <body> block to initialize the ad slot (BEGIN AD to END AD below). Follow it with an <amp-iframe> block to sync the cookie (USER SYNC to END USER SYNC below).
Multiple Slot Sizes Using <amp-ad>
Use this method to support different sizes of ads on your AMP page using the <amp-ad> tag.
Insert an initial <amp-ad> tag block in the HTML <body> block to initialize the ad slot (BEGIN AD to END AD below). Follow it with another <amp-ad> block to specify multi-size ads (BEGIN MULTI-SIZE-SLOT to END MULTI-SIZE-SLOT below).