You can generate Ad Exchange ad tags in Ad Manager ad units that represent your Ad Exchange web properties. This allows you to customize ad tags for Ad Exchange without having to manually edit code. These ad tags contain all the information required for an ad request.
In this article
- View ad units that are used for Ad Exchange UI tags
- Generate Ad Exchange tags from the ad units
- Add price floors to Ad Exchange tags (for approved European publishers only)
View ad units for Ad Exchange tags
You can use these inventory type-specific ad units (and their children) to create Ad Exchange tags: "Ad Exchange Display," "Ad Exchange Mobile In-App," and "Ad Exchange Video."
- These default names are editable.
- The ad unit code is the same as the associated web property code for that inventory type, with "-tag" appended to it (for example, "ca-pub-xxxxxxxx-tag").
Generate Ad Exchange tags
Use the Tag Generator to generate either Google Publisher Tags (GPT) or Ad Exchange tags in these ad units. You can continue to use the Ad Exchange tags on your page or traffic them using a third-party ad server.
- The type of Ad Exchange tag you can create depends on the inventory type that's associated with the ad unit (for example, you can create an Ad Exchange video tag for an ad unit under the "Video" inventory hierarchy).
- If an ad unit doesn't have an inventory type, you can only generate a GPT tag for it instead.
- If generating GPT tags from these ad units, you must first target line items to those ad units for the tags to work.
To generate an Ad Exchange tag:
- Sign in to Google Ad Manager.
- Click Inventory, then Ad units.
- Above the table of existing ad units:
- Click Add new filter.
- Select Name, then contains, then Ad Exchange.
- Click Apply.
- From the filtered results, click one of these ad units, which represent your Ad Exchange web properties:
- Ad Exchange Video
- Ad Exchange Mobile In-App
- Ad Exchange Display
- Above the ad unit settings, click Tags.
- Next to "Select a tag type," keep the default of Ad Exchange Tag and click Continue.
- Next to "Inventory unit sizes," make sure only one size appears and click Continue.
- Next to "Display," copy the tag and paste it in any webpage or website that complies with our program policies.
By default, ad requests from Ad Exchange ad tags do not match any specific ad unit, including ad units with a specified inventory type. You can optionally limit ad requests to specific ad units as follows:
-
For Display requests:
Add
google_ad_slot="[AD_UNIT_ID]"
to the ad tag.Example<script type="text/javascript">
google_ad_client = "ca-pub-…";
google_ad_slot = "1234";
google_ad_width = 300;
google_ad_height = 600;
</script>
<script type="text/javascript" src="//pagead2.googlesyndication.com/pagead/show_ads.js">
</script>To find the ad unit ID in Ad Manager, click Inventory, then Ad units, and search for the ad unit name. The ad unit ID is displayed under the ad unit name.
-
For Video and mobile app requests:
Add
slotname=[NETWORK_CODE]/[AD_UNIT_CODE]
to the ad request URL.Examplehttps://googleads.g.doubleclick.net/pagead/ads?client=ca-video-pub… &slotname=123/ad-unit-456
To find the network code in Ad Manager, click Admin, then Global settings, then Network settings. The network code is displayed in the "General settings".
To find the ad unit code in Ad Manager, click Inventory, then Ad units, and search for the ad unit name. The ad unit code is displayed under the ad unit name.
(Approved European publishers only) Add price floors
European publishers who have been approved for the "Price floors" feature can add two types of floor prices to Ad Exchange tags:
- Public floor: A price incorporated into the minimum CPM sent to buyers in the bid request.
- Private floor: A second floor price that may reflect the winning price inclusive of header bidding or any other direct/indirect demand booked in the third-party ad server. This price isn't shared with Ad Exchange buyers.
Once Google receives either of the two floor price parameters:
- The highest floor Google has (inclusive of the two floors passed here) that is applicable to all bids will be set as the minimum CPM threshold Google uses in the auction.
- The highest of all public floors Google receives (inclusive of the public floor passed here) will be the floor visible to the buyer.
Submit a request for the "Price floors" feature
- Complete and submit this form to prove you're a publisher that meets all of these requirements:
- Your registered place of business is in the European Economic Area ("EEA") or Switzerland.
- You use ad servers or SSPs to serve ads to users with an IP address in France.
- In up to 14 days, we'll let you know by email if you've been approved.
Add the price floors
After you've been approved for the "Price floors" feature:
- Follow the steps to generate an Ad Exchange tag.
- Add price floors following the instructions below, depending on the environment.
- Display
- Next to "Display," add the following code directly below the
google_ad_height
line, replacing "123
" with the floor prices in micros and your default currency (example of how micros are applied: if your default currency is USD, entering "6000000" is the equivalent of $6.00):google_ad_public_floor=123
google_ad_private_floor=123
- Next to "Display," add the following code directly below the
- Video
- Add the
pubf
andpvtf
parameters to the ad tag URL by adding the following code to the end of the URL, replacing "123
" with the floor prices in micros and your default currency (example of how micros are applied: if your default currency is USD, entering "6000000" is the equivalent of $6.00).&pubf=123&pvtf=123
- Note that
pubf
refers to the public floor andpvtf
refers to the private floor.
- Add the
- Mobile app
- Display
Turn off the "Price floors" feature
If you've been enabled for the "Price floors" feature and want to turn it off:
- Complete and submit this form.
- In up to 14 days, we'll let you know by email when the "Price floors" feature has been turned off.