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.
- Click the Inventory tab, then Tags.
To access this feature from DFP instead of Ad Exchange, click Inventory Ad Exchange inventory Tags.
- Click Get code next to the desired tag.
- From the ad code drop-down, select an ad size. The ad code automatically populates when an ad size is selected.
Sample code snippet:
google_ad_client = "ca-pub-4397449556666685"
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
The code snippet can be pasted into any website or webpage as long as it complies with Ad Exchange program policies.