Skip to content

Instantly share code, notes, and snippets.

@vaishalighuman
Created July 4, 2023 11:58
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/568bf4eaf982e979eb0716f9c0d5986c to your computer and use it in GitHub Desktop.
Save vaishalighuman/568bf4eaf982e979eb0716f9c0d5986c 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>
<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