How To Create Adsense Link Ad Units For AMP HTML - KhalistaBlog -->
Skip to content Skip to sidebar Skip to footer

How To Create Adsense Link Ad Units For AMP HTML

How To Create Adsense Link Ad Units For AMP HTML - I will now try to share on how to create an Adsense LINK ad unit in AMP HTML. Because there are still some who do not know about how to make it on the AMP HTML blog.

Actually the way to make it or how to display Adsense ad on AMP blog is pretty easy, that is, you have to make sure that you must install "js amp-ad" above code </head>, code "js amp-ad" as follows this.

<script async="async" custom-element="amp-ad" src="https://cdn.ampproject.org/v0/amp-ad-0.1.js"></script>

To note is to make sure that the ad unit you create is a link ad unit, we recommend selecting responsive link ad units and select "ad type text ads only".

How To Create Adsense Link Ad Units For AMP HTML

Then you can use the following code to display ads, can choose one or two or all, it's up to you what you want.

For Top Display (Above The Fold)

The top-of-the-fold screen is the screen display once the blog is open (the first view is visible before the screen rolls down). For ad units on this top view screen (such as an ad below the header), it is strongly recommended to use ad units with a 100px fixed-height layout (the width of the ad will follow its width, while the height will remain 100px). That way, ads that show up are ads with a height in the 100px range.

Please use the amp-ad code as below

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

Please adjust "data-ad-client" and "data-ad-slot" with your Adsense link ad unit.

For On-Screen Display Ads On-Scroll (Below The Fold)

Below the fold is the screen that appears after the page is scrolled. Usually these ads are stored under posts or above and below comments. Or it can be stored in the sidebar.

For this ad it is recommended to use an ad unit with 250px height. Here I use layout = "fixed-height" so the ads that appear are ads that have a high in the 250px range.

Please use the amp-ad code as below

<amp-ad
layout="fixed-height"
height="250"
type="adsense"
data-ad-client="ca-pub-1234567891234567"data-ad-slot="1234567890"></amp-ad>

Please adjust "data-ad-client" and "data-ad-slot" with your Adsense link ad unit.

That's the tips on how to Create Ad Link Adsense Units For AMP HTML, hopefully with articles I've tried to share this, can be useful and good luck.

Post a Comment for "How To Create Adsense Link Ad Units For AMP HTML"