Created
May 8, 2017 04:07
-
-
Save thegulshankumar/8e4680deb8716d26a863560a3e438c0e 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
function first_amp_ad() { | |
return '<amp-ad | |
layout="fixed-height" | |
height=100 | |
type="adsense" | |
type="amp_ad" | |
data-ad-client="ca-pub-xxxxxxxxxxxxxx" | |
data-ad-slot="xxxxxxxxx"> | |
</amp-ad>'; | |
} | |
add_shortcode('amp_ad_1', 'first_amp_ad'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Instruction
[amp_ad_1]
in your post editor. Don't forget to update publisher and Ad slot ID.That's all.
Need any help? Tweet @TheGulshanKumar