How To Placement Ad Unit AMP Auto Ads On Blog AMP - KhalistaBlog -->
Skip to content Skip to sidebar Skip to footer

How To Placement Ad Unit AMP Auto Ads On Blog AMP

How To Placement Ad Unit AMP Auto Ads On Blog AMP - As we know, recently Adsense released a new feature that is Auto Ads that replaces page-level ads that previously existed. So the new Auto Ads feature uses the same ad code as the page-level ad code, so for those of you who already use page-level ads there is no need to make any changes to your blog template.

You just need to activate the options that exist on this Auto Ads in Adsense dashboard. But of course Auto Ads is not necessarily can be paired on the AMP blog because it will cause errors due to installation of Auto Ads script.

How To Placement Ad Unit AMP Auto Ads On Blog AMP

Because the AMP is not allowed to install scripts other than those already provided by the AMP. For AMP, Google provides the amp element to display Auto Ads on the AMP blog that is AMP auto ads. Actually the status of this AMP auto ads in the AMP Project is still experimental, meaning that AMP auto ads only for testing and can not be used in general.

For that not all Adsense account can test for this AMP auto ads unit, but Adsense gives an opportunity to publisher to test this auto ads on his AMP blog.

Please check this feature in your Adsense dashboard, please check in the Optimization > Labs section. If it looks like the picture below, then you can participate test this AMP auto ads feature. You just turn it on the switch toggle button then get the code.



For the first code the js amp-auto-ad code please save above </head> or &lt;/head&gt;&lt;!--<head/>--&gt; and please use the code below.

<b:if cond='data:blog.pageType not in {&quot;static_page&quot;,&quot;error_page&quot;} and not data:blog.searchQuery'>
<script async='async' custom-element="amp-auto-ads" src="https://cdn.ampproject.org/v0/amp-auto-ads-0.1.js"></script>
</b:if>

The above code will not appear on static pages, error pages, and blog search pages.
Then for the second code please keep it under <body> code or code like below

<body itemscope='itemscope' itemtype='http://schema.org/WebPage'>

Please use code like the following:

<b:if cond='data:blog.pageType not in {&quot;static_page&quot;,&quot;error_page&quot;} and not data:blog.searchQuery'>
<amp-auto-ads type="adsense" data-ad-client="ca-pub-1234567890"></amp-auto-ads>
</b:if>

Please adjust the code marked according to your Adsense data-ad-client code. The above ad code will not appear on static pages, error pages, and blog search pages.

For now, February 2018, AMP auto ads ads only display text and display ads only and will display the number of ads that are tailored to the amount of content on the blog page. The current AMP auto ads will only be shown to users using mobile devices, so please see their appearance by using a mobile device.

I'm trying to just install 2 ad units of <amp-ad> in the mobile display of ads above post and ad matched content to see how this AMP auto ads behavior.

That's tips on How to Place Ad Unit AMP Auto Ads On Blog AMP, hopefully with a short enough article this can be useful for us all, good luck.

Post a Comment for "How To Placement Ad Unit AMP Auto Ads On Blog AMP"