Skip to content

Instantly share code, notes, and snippets.

@vaishalighuman
Created May 27, 2023 11:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vaishalighuman/e7d821f88c3e2366ca9ea6f64f1cf013 to your computer and use it in GitHub Desktop.
Save vaishalighuman/e7d821f88c3e2366ca9ea6f64f1cf013 to your computer and use it in GitHub Desktop.
STEP 1:
Add the following script tag 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_400x600">
<amp-iframe width="400" height="600" sandbox="allow-scripts allow-forms allow-same-origin allow-popups" allowfullscreen frameborder="0" src="https://covidapi.unibots.in/html/cookingvideos/directAds_MOA">
<amp-img layout="fill" src="https://cdn.jsdelivr.net/gh/unib0ts/unibots@latest/main/placeholder.png" placeholder></amp-img>
</amp-iframe>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment