New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Launch AdSense Canonical Impl Support #23620
Launch AdSense Canonical Impl Support #23620
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good clean up. One question.
isExperimentOn(this.win_, 'inabox-position-api') | ||
isExperimentOn(this.win_, 'inabox-position-api') || | ||
(/^adsense$/i.test(this.element_.getAttribute('type')) && | ||
!isGoogleAdsA4AValidEnvironment(this.win_)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you know if AdSense using this position API? It's a bit weird to me that this opt-in based experiment is fully enabled to all AdSense A4A ineligible traffic?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was added to ensure that AMP creatives returned would have access to this information. Since there is no way to know (or trust) that the creative is or is not AMP, we decided to just give access to all AdSense canonical creatives.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thx for explaining. would you pls add it as a comment to the code?
isExperimentOn(this.win_, 'inabox-position-api') | ||
isExperimentOn(this.win_, 'inabox-position-api') || | ||
(/^adsense$/i.test(this.element_.getAttribute('type')) && | ||
!isGoogleAdsA4AValidEnvironment(this.win_)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thx for explaining. would you pls add it as a comment to the code?
* Launch AdSense Canonical Impl Support * remove adsense delay fetch test * improve comment related to position API observer * fix test failure * fix lint failure * fix test failure due to AdSense upgrade * fix test failure due to AdSense upgrade
Launch usage of amp-ad-network-adsense-impl for Adsense canonical (non-AMP cache) traffic currently relying on delayed fetch.