GPT-guides-config-migration Ad Manager docs
This guide provides examples for migrating from legacy configuration methods to the new Google Publisher Tag (GPT) library setConfig and getConfig APIs. The setConfig and getConfig APIs provide a centralized way to manage both page- and slot-level configuration. The following table maps legacy PubAdsService configuration methods to their setConfig replacements. Feature Legacy method setConfig replacement AdSense attributes set(key, value) googletag.setConfig({ adsenseAttributes: { [key]: value } }) Category exclusion clearCategoryExclusions() googletag.setConfig({ categoryExclusion: null }) go
14,163 characters of text.