Problem/Motivation
Google has deprecated the GPT method Slot.setTargeting() and recommends using Slot.setConfig() instead.
Reference:
https://developers.google.com/publisher-tag/reference
https://developers.google.com/publisher-tag/guides/publisher-console-mes...
Steps to reproduce
Install and configure the module.
Load a page displaying advertisements.
Inspect the generated GPT code in page source or browser developer tools.
Check for usage of Slot.setTargeting().
Proposed resolution
Replace any usage of Slot.setTargeting() with the supported Slot.setConfig() API according to Google's migration guidance.
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | dfp-settargeting-deprecation-5.patch | 6.03 KB | jedihe |
Issue fork dfp-3595945
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #5
jedihe commentedI'm attaching the patch for the current state of MR 38, applies cleanly on top of 3.0.0.