Skip to content

AGT-803-Deprecated-GAM-methods-module#67

Open
oleksii-intent wants to merge 2 commits into0.35-masterfrom
AGT-803-Deprecated-GAM-methods-module
Open

AGT-803-Deprecated-GAM-methods-module#67
oleksii-intent wants to merge 2 commits into0.35-masterfrom
AGT-803-Deprecated-GAM-methods-module

Conversation

@oleksii-intent
Copy link
Collaborator

Type of change

  • Bugfix

  • Feature

  • New bidder adapter

  • Updated bidder adapter

  • Code style update (formatting, local variables)

  • Refactoring (no functional changes, no api changes)

  • Build related changes

  • CI related changes

  • Does this change affect user-facing APIs or examples documented on http://prebid.org?

  • Other

Description of change

Other information

.pubads()
.setTargeting(gamParameterName, userGroup);
if (typeof gamObjectReference.setConfig === 'function') {
const currentConfig = typeof gamObjectReference.getConfig === 'function'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you decided to get config? We don't really care about other configurations in GAM, our main goal is to set ours. Pls check a case when only setConfig is using, from what I remember when we checked page together, it doesn't effect other targeting parameters in GAM.

return;
}
const pubads = gamObjectReference?.pubads?.();
if (pubads?.setTargeting) pubads.setTargeting(gamParameterName, userGroup);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pls add comment here:
"Fallback in case an older version of Google Publisher Tag is used."
And code could be more compact:
gamObjectReference?.pubads?.()?.setTargeting?.(gamParameterName, userGroup);

@DimaIntentIQ
Copy link
Owner

@oleksii-intent There are much more places where our modules use GAM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants