Special properties for dynamic ad tag calls

In DNB there are four special properties for dynamic tags that can affect the behavior of zones and key-value pairs related to ad tag requests. Network hosts may instruct a partner to customize the other properties in order to modify their ad tags; these changes will only affect tags for that partner.

Set these properties after generating your ad tags, but before inserting them into a webpage. These values do not have to be placed in the <head> tag, but they must appear before the first ad call.
  • network_config_path: Indicates where to locate the configuration details to properly render the ad. This property is automatically generated and is required (your ads won't render if it isn't present). Don't make any edits to this value.

    <!--This should appear in your <head></head> tag -->
    <script type="text/javascript" src="http://www.googletagservices.com/tag/static/google_services.js">
    </script>
    <script type="text/javascript">
    googletag.networkAds().set('network_config_path', 'sports_blog');
    googletag.enableServices();
    </script>

All of the following properties are optional.

  • network_zone: Controls which zone value is used for all ad requests on a page. If you set this property, every ad slot that renders will ignore the zone in the config file and instead use the one specified here.

    <!--This should appear in your <head></head> tag -->
    <script type="text/javascript" src="http://www.googletagservices.com/tag/static/google_services.js>
    </script>
    <script type="text/javascript">
    googletag.networkAds().set('network_config_path', 'sports_blog');
    googletag.networkAds().set('network_zone', 'page_zone');
    googletag.enableServices();
    </script>
  • network_key_values: If you set this property, it will be appended to the requested ad tags for all ad requests on a page.

    <!--This should appear in your <head></head> tag -->
    <script type="text/javascript" src="http://www.googletagservices.com/tag/static/google_services.js">
    </script>
    <script type="text/javascript">
    googletag.networkAds().set('network_config_path', 'sports_blog');
    googletag.networkAds().set('network_key_values', 'kw=override;state=ny');
    googletag.enableServices();
    </script>
  • iframe_rendering: Allows certain types of ads (for example, interstitials) to render in iframes. Instead of waiting for the JavaScript to be returned from the ad server, the page continues rendering and loads the ads into iframes when the creatives are returned from the server.

    <!--This should appear in your <head></head> tag -->
    <script type="text/javascript" src="http://www.googletagservices.com/tag/static/google_services.js">
    </script>
    <script type="text/javascript">
    googletag.networkAds().set('network_config_path', 'sports_blog');
    googletag.networkAds().set('iframe_rendering', ‘true');
    googletag.enableServices();
    </script>

How helpful is this article:

Feedback recorded. Thanks!
  • Not at all helpful
  • Not very helpful
  • Somewhat helpful
  • Very helpful
  • Extremely helpful