Create a test page for Ad Exchange tags

Test Ad Exchange tags without charging advertisers or recording clicks and impressions

If your Ad Exchange tag isn't rendering correctly on your website or showing blank ads, you can create a test page to identify the problem. With a test page, you can verify that the creative renders properly independent of other code or whether there's an issue with the domain (if a tag is serving on, but not

The steps described may vary depending on your particular environment. If you have questions about how to complete this process, contact your web development or technical team.

Create a test page

  1. Open a plain-text editor, such as Notepad, and place the following code in a blank file:


  2. Copy and paste your Ad Exchange code into your text editor in between the <body> and </body> tags.
  3. Add the google_adtest = on; parameter to your ad tag to specify that this is a test implementation. Make sure you set this parameter to "on" to ensure that clicks and impressions aren't recorded and advertisers aren't charged. The default value is "off".
  4. Save the code as an HTML file.
  5. Upload the HTML file to the web server that hosts your web content. This step is largely dependent on your web host configuration, so your web developer or IT team should be able to help you if you have questions about how to complete it. Alternatively, if you cannot upload the page to a web server, you can save it locally.
  6. Using multiple web browsers, such as Chrome or Firefox, and operating systems, visit the URL or file location for your test page and ensure that the ad tag functions. 
For Network Partner Management (NPM) accounts
If you use Network Partner Management, the URL you are testing should be classified as "Owned" or "Represented" in your Domain Management section, otherwise your ad requests will be rejected.
Was this helpful?
How can we improve it?