Get started with Google Publisher Tag

Tagging best practices

Minimize page latency

This article focuses on best practices for when you create tags with Ad Manager.

developer documentationWe recommend that developers review the Google Publisher Tag best practices and ad best practices.

Use AMP and serve mobile-optimized creatives

Implement Ad Manager on AMP (Accelerated Mobile Pages) to monetize your fast-loading pages. Learn how to generate AMP ad tags

Creative latency is one of the biggest causes of poor ad performance. Avoid heavy creatives. Follow IAB Mobile Advertising Guidelines (PDF) industry guidelines.

Optimize your backfill ads

GPT uses the Page Visibility API to determine whether or not the page is visible to a user. A page may not be visible if it is the background tab of a browser. The browser may also be minimized or the device's screen may be turned off.

When GPT determines that a page is not visible, it only requests and renders above-the-fold ads. This is so that:

  • Ad slots visible in the first viewport will not be blank rectangles if/when the page becomes visible.
  • Signals need for pageview counting are still sent correctly.

If the page refreshes while hidden, ads that are above-the-fold will not be loaded as they are not visible to the user.

Once GPT detects that the page has become visible, all ads are rendered as normal. This may include other behaviors that further delay creative rendering, such as lazy loading.

Only use the version of GPT served by Google

You should not serve gpt.js, pubads_impl.js or any scripts that load from your server or an unofficial source.

Using a version of GPT not served from an official source is unsupported and thus may not always work in newer versions of browsers or operating systems and may not be updated with new features and improvements. Older versions of the GPT library can be discontinued or start having their ad requests rejected at any time possibly leading to loss of ad revenue.

Was this helpful?

How can we improve it?
Search
Clear search
Close search
Google apps
Main menu
17326138486032524246
true
Search Help Center
false
true
true
true
true
true
148
false
false
false
false
false