Created
June 12, 2023 09:10
-
-
Save vaishalighuman/43554bf862aca40df6f2b9f99e4d30de to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
STEP 1: | |
Add the following script tags in the <head> to include amp-iframe component. | |
If already present, ignore this step. | |
<script async custom-element="amp-iframe" src="https://cdn.ampproject.org/v0/amp-iframe-0.1.js"></script> | |
STEP 2: | |
Add the following div element, where you want to show the ad in <body> tag | |
<div id="ub_336x280" style="text-align: center; margin: 20px;"> | |
<amp-ad width="336" height="280" type="doubleclick" data-multi-size="336x280,300x250" data-slot="/21928950349,22938198307/thebegusari_inarticle_300x250_336x280" data-enable-refresh="30"></amp-ad> | |
</div> | |
STEP 3: | |
Add the following div element, where you want to show the ad in <body> tag | |
<div id="ub_336x280_1" style="text-align: center; margin: 20px;"> | |
<amp-ad width="336" height="280" type="doubleclick" data-multi-size="336x280,300x250" data-slot="/21928950349,22938198307/thebegusari_inarticle_300x250_336x280_1" data-enable-refresh="30"></amp-ad> | |
</div> | |
STEP 4: | |
Add the following div element, where you want to show the ad in <body> tag | |
<div id="ub_336x280_2" style="text-align: center; margin: 20px;"> | |
<amp-ad width="336" height="280" type="doubleclick" data-multi-size="336x280,300x250" data-slot="/21928950349,22938198307/thebegusari_inarticle_300x250_336x280_2" data-enable-refresh="30"></amp-ad> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment