Skip to content

Instantly share code, notes, and snippets.

@vaishalighuman
Created May 6, 2023 06:40
Show Gist options
  • Save vaishalighuman/918d37778ae1c3026cf37503ba7f0336 to your computer and use it in GitHub Desktop.
Save vaishalighuman/918d37778ae1c3026cf37503ba7f0336 to your computer and use it in GitHub Desktop.
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(300x250) in <body> tag
<div id="ub_300x250" style="text-align: center; margin: 20px;">
<amp-ad width="300" height="250" type="doubleclick" data-slot="/21928950349,21723147003/tamizhakam_banner_300x250_AMP" 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