Created
April 19, 2023 11:58
-
-
Save vaishalighuman/72038d706599389d1497dbfe39f9d714 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 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_direct_414x500"> | |
<amp-iframe width="414" height="500" sandbox="allow-scripts allow-same-origin allow-popups" allowfullscreen frameborder="0" src="https://covidapi.unibots.in/html/citynewsrajasthan/directAds"> | |
<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