Created
July 4, 2023 11:58
-
-
Save vaishalighuman/568bf4eaf982e979eb0716f9c0d5986c 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> | |
<script async custom-element="amp-sticky-ad" src="https://cdn.ampproject.org/v0/amp-sticky-ad-1.0.js"></script> | |
STEP 2: | |
Add the following div just before closing <body> tag | |
<amp-sticky-ad layout="nodisplay"> | |
<amp-ad width="320" height="100" type="doubleclick" data-slot="/21928950349,22824600165/Theprint_amp_sticky" data-enable-refresh="30"></amp-ad> | |
</amp-sticky-ad> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment