Locally saved versions of the GPT JavaScript library

You should not serve cached versions of gpt.js, gpt_mobile.js or pub-ads_impl_XX.js from your own server.

Using a locally saved version of the JavaScript 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 at any time and may lead to loss of ad revenue if ads stop serving to your tags.

You should only depend on the published GPT API, and not on any internal implementation details of the tag. GPT's JavaScript implementation and the DOM manipulations used in ad rendering can change as we launch new features with our tags, so if you are dependent on the exact details you may experience unexpected behaviors on your site.

Please see the detailed implementation instructions in the Google Publisher Tag API reference guide and Sample Google Publisher Tags.

Was this article helpful?
How can we improve it?