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

CommentFileSizeAuthor
#5 dfp-settargeting-deprecation-5.patch6.03 KBjedihe

Issue fork dfp-3595945

Command icon 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

yazanmajadba created an issue. See original summary.

jedihe made their first commit to this issue’s fork.

jedihe’s picture

StatusFileSize
new6.03 KB

I'm attaching the patch for the current state of MR 38, applies cleanly on top of 3.0.0.