amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

Multiauthor website with Adsense conditioned to author ID

Open Gurgusondo opened this issue 9 years ago • 3 comments

Hi, We are having an issue implementing Adsense in the APM version of our website. We have a share revenue multiauthor website linked to an Adsense Channel (just one). And each author is identified with a different ID within the add. So each add block is conditioned to an author ID. This is the script we use for Adsense in our website:

We wonder if there is any parameter in AMP we can add to have our Adsense adds conditioned to the author. The code we found for Adsense in AMP is the following one:

<amp-ad layout="fixed-height" height=100 type="adsense" data-ad-client="ca-pub-XXXXXXXXXXX" data-ad-slot="XXXXXXXXX"> </amp-ad>

But it doesn´t allow to have our Adsense ads conditioned to our authors. How can we implement this conditioned parameter with AMP? We know there are other parameters likes:

  • data-ad-host
  • data-ad-test
  • data-tag-origin

But we do not know if any of them can be used for this purpose or how.

Thank you

Gurgusondo avatar Feb 24 '17 13:02 Gurgusondo

@konakk, can you take a look please?

jasti avatar Feb 24 '17 19:02 jasti

Are you looking to add channel id? If you could have a field for channel id would that be enough for your use case?

konakk avatar Mar 03 '17 11:03 konakk

Closing since there hasn't been a response in a while. Please reopen if you'd like to continue the discussion.

jasti avatar Apr 27 '17 21:04 jasti