Follow supported methods to maintain consistent ad delivery across all devices.
Maintain a high-performing ad implementation by following officially supported Google Publisher Tag (GPT) methods. This article provides recommended practices to ensure your tags remain reliable, responsive, and compatible with future API updates.
GPT implementation recommendations
- Consult official GPT documentation: Refer to the GPT developer documentation to avoid implementation issues and ensure proper integration.
- Use documented API methods: Only utilize explicitly documented GPT API methods . Direct manipulation is unsupported and can lead to unpredictable behavior.
- Avoid common mistakes: Familiarize yourself with the developer documentation for common implementation mistakes and their remedies.
- Plan for responsive design: Carefully consider whether to implement responsive design to manage your ad slot sizes to ensure your ads look good, no matter where they're served.
Implementations with errors may appear to function initially but aren't guaranteed to work in future GPT versions. Direct manipulation of the GPT API (including rendered elements) beyond documented methods is strongly discouraged, as Google cannot guarantee the behavior.