Serve ads on partner sites with passback tags

If you want ads from your network to serve on a partner site, you can send Google Publisher Tags (GPT) to the other publishers to traffic as third-party ads on their ad server.

To serve ads on your partner's website:

  1. Ask your webmaster to create the GPT tag as a single script block. All of the JavaScript code must be contained within a single <script> tag. Use the following code as a template:

    <script src="">   googletag.pubads().definePassback('/network_ID/first_level_ad_unit/second_level_ad_unit', [468, 60]).display();
  2. Send the tag to your partner.

Add click tracking to the tag

If your partner wants to add click tracking to the GPT tag, they'll need to add a clickthrough URL macro to the .definePassback call. The clickthrough URL will be dynamically prepended to the clickthrough URL stored on the Ad Manager ad server.

<script src="">
      '/network_ID/first_level_ad_unit/second_level_ad_unit', [468, 60])

Add key-values

To add key-values to the GPT tag, call .setTargeting:

<script src="">
   googletag.pubads().definePassback('/123456/passback/sports', [468, 60])
      .setTargeting("color", "red")
      .setTargeting("sport", ["rugby", "rowing"])
Was this helpful?
How can we improve it?