Generate ad tags

View related Skillshop training course



New inventory experience

Ad Manager might look a little different if you're using the new inventory management user interface

 

You can easily customize and generate ad tags from the Ad Manager interface without having to manually edit code.

For ease of use, it is possible to create ad tags from multiple places within the Ad Manager interface, depending on the type of tags you wish to create. For instance, you are given the option of generating Audience pixel tags immediately after creating Audience segments. Learn more

To generate an ad tag:​

  1. Navigate to Inventory and then Ad units.
  2. Find the ad unit for which you want to create an ad tag and click on its name to see its details.
  3. Select the Tags tab on the ad unit details page.
    The "Tags" tab replaces the Generate tags button.
  4. Select the type of tag you want to generate and click Continue. Options vary depending on the tag type selected. Learn more

  5. Make additional selections based on the tag type selected and click ContinueLearn more
  6. From "Tag results", copy the generated tags and send them to your web developer.

Your web developer should includes the generated tags into the source code for the web page on which you want serve ads.

Options for each tag type

Options vary depending on the tag type selected.

Google Publisher Tag

The Google Publisher tag is for "Display" or "Mobile app" ads and dynamically builds ad requests via an ad tag library. Learn more

  • Enable single request: Single request mode means that instead of sending individual ad requests to Ad Manager servers, the browser is able to send one request notifying the server of all ad units on the page. This enables guaranteed roadblocking and improves page load time. Learn more

    Create one SRA request with all ad slots to best serve guaranteed roadblocks or competitive exclusions, instead of sending SRA requests with one ad slot at a time.

  • Create passback tag: This functionality can be used in any situation where an ad request to a third-party should ultimately be filled by an ad trafficked in your network. Learn more
  • Collapse empty divs: If you're using asynchronous mode and know that the ad slot is not always filled, you can instruct the browser to collapse empty divs. Learn more
  • Page-level targeting: Set custom attributes across all ad slots on the page to use less code and ensure ad slots have the same targeting attributes. Learn more
  • Out-of-page: Select whether the tag is for an out-of-page creative. Learn more
  • Inventory unit sizes: Select the inventory sizes for the tag. You can see applicable size options by clicking into this field. More than one size may be available. This is not applicable to out-of-page creatives. Learn more
  • Inventory unit level targeting: Set custom attributes across the selected inventory units. Learn more

Mobile Application Tag

The Mobile Application tag is for mobile app ads. There are no additional options after selecting this ad type. You simply need to copy the ad unit ID path generated on the next page into your mobile application code. You also need include an ad unit size in your application code. Learn more in developer documentation:

As an alternative to ad tags, you might consider using the Google Mobile Ads SDK. Refer also to the Google Ads SDK developers documentation.

​AMP Tag

  • Multi-size validation: When an ad has multiple sizes, secondary sizes must not be larger than the corresponding dimensions of the primary size. Also, the secondary sizes must not be smaller than 2/3 of the primary size. Deselect this value to turn off the validation. Learn more
  • Include AMP placeholders: Select this value to add code for placeholders and fallback.
  • Tag for child-directed treatment: Select this value to add to code to help facilitate compliance with the Children’s Online Privacy Protection Act (COPPA). Learn more
  • Inventory unit sizes: Select the inventory sizes for the tag. You can see applicable size options by clicking into this field. More than one size may be available. This is not applicable to out-of-page creatives. Learn more
  • Inventory unit level targeting: Set custom attributes across the selected inventory units. Learn more

Ad Exchange Tag

For "Display", "Mobile app", and "In-stream video" ads. The Ad Exchange Tag is only for legacy tags that were generated in the Ad Exchange product and then converted to Ad Manager ad units.

  • ​Inventory unit sizes: Select the inventory sizes for the tag. You can see applicable size options by clicking into this field. More than one size may be available. This is not applicable to out-of-page creatives. Learn more

 

 

Was this helpful?
How can we improve it?