Hello everyone,
I was trying to optimize the ads for my Ghost blog and stumbled upon ‘Auto Ads for AMP’
How can I enable these in the amp pages of Casper theme.
what would be the ideal (or close to ideal) way to do so?
Thanks.
Hello everyone,
I was trying to optimize the ads for my Ghost blog and stumbled upon ‘Auto Ads for AMP’
How can I enable these in the amp pages of Casper theme.
what would be the ideal (or close to ideal) way to do so?
Thanks.
Hey!
Ghost uses amp.hbs
to render an automatic AMP version of your posts (read more).
Have you tried following the steps Google Adsense have suggested (in your screenshot) and implemented the scripts provided in the <head>
and <body>
of your amp.hbs
template?
AMP has very specific restrictions, but you can validate whether this works by adding: #development=1
to any AMP URL on your site, and checking for errors in your console.
You can also read more about the amp-auto-ads
component in the official AMP documentation
Thank you very much!
I started with the template specified at https://github.com/TryGhost/Ghost/blob/master/core/server/apps/amp/lib/views/amp.hbs and added the parts needed for ads as specified in Adsense configuration.
Seems to be working fine now.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.