Skip to content
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

✨ Add support for data-ad-host-channel to AdSense ads #25685

Merged
merged 1 commit into from
Jan 17, 2020

Conversation

CarloCannas
Copy link
Contributor

AdSense custom channels allow to track the performance of specific adunits and generate reports for each channel.

AMP currently only supports the data-ad-channel attribute, which allows to specify one or more custom channels for a specific amp-ad element.

Host channels are also available to AdSense Host account, these can be used to track the performance of ads across publishers.

https://developers.google.com/adsense/host/adunits#custom-channels
https://developers.google.com/adsense/host/faq/hostchannels

Currently AMP doesn't allow to specify an Host channel to amp-ad elements, this pull request adds support for the data-ad-host-channel attribute to both amp-ad and amp-auto-ads elements.

AdSense custom channels allow to track the performance of specific adunits and
generate reports for each channel.

AMP currently only supports the data-ad-channel attribute, which allows to
specify one or more custom channels for a specific amp-ad element.

Host channels are also available to AdSense Host account, these can be used to
track the performance of ads across publishers.

https://developers.google.com/adsense/host/adunits#custom-channels
https://developers.google.com/adsense/host/faq/hostchannels

This commit adds support for AdSense Host channels to both regular amp-ad and
amp-auto-ads elements.
@CarloCannas
Copy link
Contributor Author

@tlong2 @jeffkaufman could you take a look at this pull request?

@CarloCannas
Copy link
Contributor Author

@jeffkaufman any feedback?

@calebcordry some automatic test failed, however to me it doesn't look related to the changes introduced by the pull request. Should they be restarted?

@calebcordry
Copy link
Member

Restarted Travis.

@calebcordry calebcordry self-requested a review January 16, 2020 16:58
@calebcordry calebcordry merged commit 7d2faac into ampproject:master Jan 17, 2020
@calebcordry
Copy link
Member

@CarloCannas Sorry for the delay over the holidays. Thanks for contributing!

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

Successfully merging this pull request may close these issues.

None yet

6 participants