Ad Manager Setup
1. Create Ad Unit
Define Ad Unit dimensions as desired, but we recommend a 1x1 dimension to further constrain traditional display line items from serving to your native ad unit.
2. Create Line Item:
- Target Line Item to Ad Unit (created above)
- To deliver a Direct Sell campaign, add the Creative from your Direct Sell Integration Doc to DFP (type: Third Party). For more information on Direct Sell Campaign creation, click here.
- To access Programmatic inventory, add the following Creative (type: Third Party) on a lower-priority Line Item than your Direct Sell tags.
<div data-str-native-key="%%PATTERN:strnativekey%%" style="display: none;"></div>
<script type="text/javascript" src="https://native.sharethrough.com/assets/sfp-iframe-buster.js"></script>
3. Uncheck "Serve into an SafeFrame"
Please ensure "Serve into a SafeFrame" is UNCHECKED. Sharethrough will not function properly if served into a SafeFrame.
4. Generate Google Publisher Tag (GPT)
Distribute tag to your web development team and proceed to the Web Page setup below.
Web Page Setup
1. Add Core Technology to page <head>
To optimize performance, SFP.js should be placed high in the page stack within the <head>:
<script type="text/javascript" src="https://native.sharethrough.com/assets/sfp.js"></script>
2. Add Google Publisher Tag (GPT) to page
- Add the GPT Header code into the <head> element of the webpage
- Add the GPT Document body code where the unit should appear within the page <body>
3. Append setTargeting parameter to GPT Header code
- Append the following to your googletag.defineSlot definition found in the GPT Header code.
- The strnativekey (UNIQUE_KEY_VALUE) will be different for each placement.
.setTargeting('strnativekey','UNIQUE_KEY_VALUE')
Final Steps
Verify Your Integration
Navigate to your test page with any device (e.g. mobile, tablet, desktop) and look for Sharethrough's default creative (seen below). Once the template is on page, your integration is successful!
Comments
0 comments
Please sign in to leave a comment.