Search
Clear search
Close search
Google apps
Main menu

Get a generic Ad Exchange tag

This procedure only applies to traffic sent directly from the page of a third-party ad server. DFP no longer relies on Ad Exchange inventory tags for targeting. Learn best practices for trafficking Ad Exchange in DFP

When dealing with third party ad serving, use this option when you need a generic tag with no google_ad_slot.

  1. Click the Inventory tab, then Tags
    To access this feature from DFP instead of Ad Exchange, click Inventory and then Ad Exchange inventory and then Tags.
  2. Click Get code next to the desired tag.
  3. From the ad code drop-down, select an ad size. The ad code automatically populates when an ad size is selected.

Sample code snippet:

<script type="text/javascript">
google_ad_client = "ca-pub-4397449556666685"
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

The code snippet can be pasted into any website or webpage as long as it complies with Ad Exchange program policies.

Was this article helpful?
How can we improve it?