Traffic AdSense or Ad Exchange ads in DFP
You can create line items for your AdSense or Ad Exchange ads and target them to specific inventory units and audiences, just as you would any other line item in DoubleClick for Publishers.
How are AdSense or Ad Exchange line items picked for delivery?
AdSense and Ad Exchange line items compete with other pre-emptible line items set at the same priority or lower. For example, if a line item is given an AdSense delivery type, it will look at all non-guaranteed line items and pick the line item with the best CPC or CPM rate.
DoubleClick for Publishers then sends its best line item to AdSense or Ad Exchange, which evaluates the line item against its inventory. If AdSense or Ad Exchange has an ad unit that can beat the price of the line item picked by DoubleClick for Publishers, then the AdSense or Ad Exchange line item is delivered. If the line item from DoubleClick for Publishers still has the best price, then that line item is delivered. Learn more about dynamic allocation
Can I check available inventory for AdSense or Ad Exchange line items?
No. Since AdSense and Ad Exchange line items are non-guaranteed inventory, you can’t forecast their inventory.
Do I have to add AdSense or Ad Exchange tags to my website?
No. Once you traffic AdSense and Ad Exchange line items in DoubleClick for Publishers, the AdSense or Ad Exchange line items can be delivered through DFP Small Business tags. There is no need to put AdSense or Ad Exchange tags directly onto your website.
How is web page layout affected?
AdSense and Ad Exchange line items delivered through DoubleClick for Publishers will not be aware of other AdSense or Ad Exchange line items on your webpage. The function that AdSense and Ad Exchange use to lay out a full page, and to prevent duplicate delivery of a single ad, is disabled by the AdSense and Ad Exchange in DoubleClick for Publishers feature.
To target your AdSense or Ad Exchange ads:
- Link your AdSense or Ad Exchange products to your DoubleClick for Publishers account.
Even if you already use AdSense dynamic allocation at the inventory level, you still need to follow the network linking process to link any AdSense accounts that you'd like to use for dynamic allocation at the line item level.
- Create an AdSense or Ad Exchange line item and set its targeting criteria.
If your AdSense or Ad Exchange ad unit has multiple sizes, you can create one line item for them all.
- Click Add creatives and select new creative.
- If you're creating an Ad Exchange line item and the selected web property alias in the "Settings" section of the line item is an Ad Exchange web property that has Rules enabled, you can bypass this step by clicking the Automatically generate all creatives button in the "Creatives" section.
- Once you add creatives, you cannot change the priority type for Ad Exchange or AdSense line items.
- Click the Select dynamic allocation ad unit by name radio button. Click or begin typing to see a list of available AdSense or Ad Exchange ad units that match the size(s) of the line item.
- Select the AdSense or Ad Exchange ad unit to which you want to target the line item.
- Enter a Name for the creative.
- Click Save.
Why do I see this error: “Web property in snippet does not match web property in line item”?
If you see this error when trying to save your AdSense or Ad Exchange line item, it's because the web property entered at the creative level doesn't match the one at the line item level.
- Report on your AdSense or Ad Exchange line items.
google_ad_slot is optional for publishers that have Ad Exchange Rules enabled.
google_ad_client acts as an override if specified; default is read from the line item.
google_ad_slot act as overrides if specified; defaults are read from the creative (required) or the line item creative association (if specifically overridden there).
You can also add the following optional attributes to the line after
google_ad_height = HEIGHT;:
google_ad_border = google_ad_bg = google_ad_link = google_ad_text = google_ad_url =
When you paste a code snippet into the “Code snippet” box, DFP extracts the parameters detailed above and ignores everything else at the time of ad serving. This means that any additional code, such as click-tracking macros, are also ignored.
Even if the same creative is always displayed when you preview the line item in DoubleClick for Publishers, please note that when the line item is delivered on the actual website, it might display a different creative. This is because AdSense uses contextual targeting, which means that it uses the actual web page content to determine which creative to serve.