I'm trying to get adsense and amazon ads working on the site, have read through all the other tickets on the topic before posting. The documentation that is posted for reformatting the script is either outdated, or Google has changed their format. Here's the adsense code:
Can this be pasted in after the adsense code in the same box? Also - in other tickets you mention that adsense code is only supported on certain pages - there are data fields on many of the 'customize' menus, not just the Penci AMP settings. Do only part of these function?
1/ Yeah, that's one example on the documentation. Some google adsense auto ads will doesn't exists [data-ads-slot]. But, that's easy to modify that code for AMP. With your ads, you just need change it to:
And you can put that code from the guide to Appearance > Customizer AMP ( not Customize ) > Header Options
2/ Currently, Google doesn't allow custom <script> for AMP pages. So, I recommend you ask amazon affiliate about this about amazon affiliate code for AMP
I'm trying to get adsense and amazon ads working on the site, have read through all the other tickets on the topic before posting. The documentation that is posted for reformatting the script is either outdated, or Google has changed their format. Here's the adsense code:
This does not have the second variable for [data-ad-slot] - so modifying as documentation states does NOT work.
Here is the Amazon affiliate code that I am trying to get to work:
Can this be pasted in after the adsense code in the same box? Also - in other tickets you mention that adsense code is only supported on certain pages - there are data fields on many of the 'customize' menus, not just the Penci AMP settings. Do only part of these function?
Thank you!
Hi,
1/ Yeah, that's one example on the documentation. Some google adsense auto ads will doesn't exists [data-ads-slot]. But, that's easy to modify that code for AMP. With your ads, you just need change it to:
Dont fill ads slot there.
Also, if you're use google adsense auto ads, you can check more this guide to know how to config adsense auto ads for your site:
https://support.google.com/adsense/answer/9011465
And you can put that code from the guide to Appearance > Customizer AMP ( not Customize ) > Header Options
2/ Currently, Google doesn't allow custom <script> for AMP pages. So, I recommend you ask amazon affiliate about this about amazon affiliate code for AMP
Best Regards,
PenciDesign