Yes. You just need to add amp-ad tags to the page as can be seen at https://support.google.com/adsense/answer/7183212?hl=en
<amp-ad width="100vw" height=320
type="adsense"
data-ad-client="ca-pub-1234567891234567"
data-ad-slot="1234567890"
data-auto-format="rspv"
data-full-width>
<div overflow></div>
</amp-ad>
You’ll need to provide your client and slot details. In paired/native mode, you can put this anywhere on the page (e.g. content or widget) the AMP plugin will automatically add the required AMP component script in the head. In classic mode, if you put this outside the content then you’ll have to manually add the amp-ad component script.
That doesn’t work. i have this message :
Please use tab for intendation.
What can i do know ?
Martin
Use tabs then:
<amp-ad width="100vw" height=320
type="adsense"
data-ad-client="ca-pub-1234567891234567"
data-ad-slot="1234567890"
data-auto-format="rspv"
data-full-width
>
<div overflow></div>
</amp-ad>
Or remove indentation altogether:
<amp-ad width="100vw" height=320 type="adsense" data-ad-client="ca-pub-1234567891234567" data-ad-slot="1234567890" data-auto-format="rspv" data-full-width><div overflow></div></amp-ad>
Hello,
It does not work. No advertising appears. I thought of putting the Adsense code in the footer.php of your plugin. Do you think it’s a good idea?
Sorry, I can’t really advise on how to integrate AdSense. I suggest posting on an AdSense forum instead, like https://productforums.google.com/forum/#!forum/adsense
For other general AMP support, see https://www.ampproject.org/support/developer/get_support
And please do not modify plugin files directly. There is literally no reason to do so and you will just run into problems when updating.
It’s unbelievable that you cannot say to us how (AND WHERE) to put Adsense code …
This “official” plugin is supposed to be supported by Google…
Don’t be surprised to have this bad rating on your plugin…
@mrjox This official plugin is supported by Googlers working on the AMP project. We don’t have expertise in AdSense.
If you’re looking for amp-auto-ads I did work out a plugin to facilitate that: https://gist.github.com/westonruter/a41573b932e24810b09949136b9a8445
You can search the forum for this and other ways to integrate AdSense.