Title: Advanced AMP ADS
Last modified: April 15, 2017

---

# Advanced AMP ADS

 *  Resolved [Med](https://wordpress.org/support/users/assakour/)
 * (@assakour)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/advanced-amp-ads/)
 * Hello,
 * If I use the below cod adsense in Custoum Advertiment, I need to add the script
   <script async custom-element=”amp-ad” src=”[https://cdn.ampproject.org/v0/amp-ad-0.1.js”></script&gt](https://cdn.ampproject.org/v0/amp-ad-0.1.js”></script&gt);
   in head? Or your plugin Advanced AMP ADS do this automatically.
 * <amp-ad
    layout=”responsive” width=300 height=250 type=”adsense” data-ad-client
   =”ca-pub-1234567891234567″ data-ad-slot=”1234567890″> </amp-ad>
 * [https://support.google.com/adsense/answer/7183212?hl=en&utm_source=aso&utm_medium=link&utm_campaign=ww-ww-et-asfe_](https://support.google.com/adsense/answer/7183212?hl=en&utm_source=aso&utm_medium=link&utm_campaign=ww-ww-et-asfe_)
 * Thank you,

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/advanced-amp-ads/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/advanced-amp-ads/page/2/?output_format=md)

 *  Plugin Contributor [ampforwp](https://wordpress.org/support/users/ampforwp/)
 * (@ampforwp)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/advanced-amp-ads/#post-9032636)
 * Hey [@assakour](https://wordpress.org/support/users/assakour/)
 * Our plugin Advanced AMP Ads automatically adds those scripts. you need not add
   manually.
 * Let me know if you have any questions.
 *  Thread Starter [Med](https://wordpress.org/support/users/assakour/)
 * (@assakour)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/advanced-amp-ads/#post-9032659)
 * I will just add the code below in Custoum Advertiment?
 * <amp-ad
    layout=”responsive” width=300 height=250 type=”adsense” data-ad-client
   =”ca-pub-1234567891234567″ data-ad-slot=”1234567890″> </amp-ad>
 *  [considerthis1](https://wordpress.org/support/users/considerthis1/)
 * (@considerthis1)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/advanced-amp-ads/#post-9032679)
 * Hi ampforwp,
 * Is there a way to place the AMP ad code in specific locations on some special
   pages?
 *  Plugin Contributor [ampforwp](https://wordpress.org/support/users/ampforwp/)
 * (@ampforwp)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/advanced-amp-ads/#post-9036322)
 * Hey [@assakour](https://wordpress.org/support/users/assakour/)
 * Yes, you can place that Ad code in Custom Advertisement without any issues. Don’t
   forget to replace data-ad-client and data-ad-slot with your own data-ad-client
   and data-ad-slot.
 * and [@considerthis1](https://wordpress.org/support/users/considerthis1/)
 * If you want to place Custom Ads in Specific Locations in special pages, you can
   use Custom AMP Editor. In custom AMP Editor, simply place AMP Ad code, it will
   appear only in AMP.
 * Hope it helps.
 * Let me know if you have any questions.
 *  [considerthis1](https://wordpress.org/support/users/considerthis1/)
 * (@considerthis1)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/advanced-amp-ads/#post-9037690)
 * Hi AMPforWP,
    I don’t really understand how I can place the Custom code.
 * Google does not allow changing its ad code, which looks like this:
 * <script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”>
   </script>
    <!– AMP Custom Placement 300 x 250 –> <ins class=”adsbygoogle” style
   =”display:inline-block;width:300px;height:250px” data-ad-client=”ca-pub-123456789″
   data-ad-slot=”123456789″> <script> (adsbygoogle = window.adsbygoogle || []).push({});
   </script>
 *  Thread Starter [Med](https://wordpress.org/support/users/assakour/)
 * (@assakour)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/advanced-amp-ads/#post-9037874)
 * [@ampforwp](https://wordpress.org/support/users/ampforwp/)
 * Thank you so much.
 *  Thread Starter [Med](https://wordpress.org/support/users/assakour/)
 * (@assakour)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/advanced-amp-ads/#post-9037887)
 * [@considerthis1](https://wordpress.org/support/users/considerthis1/)
 * For more informations about AMP ad unit: [https://support.google.com/adsense/answer/7183212?hl=en&utm_source=aso&utm_medium=link&utm_campaign=ww-ww-et-asfe_](https://support.google.com/adsense/answer/7183212?hl=en&utm_source=aso&utm_medium=link&utm_campaign=ww-ww-et-asfe_)
 *  [considerthis1](https://wordpress.org/support/users/considerthis1/)
 * (@considerthis1)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/advanced-amp-ads/#post-9038852)
 * Hi Mohamed,
 * Gosh, Thank YOU !!!
 * I had not seen that Google article before.
 * I’m reading the article on creating an AMP ad and reading it again. I’m so slow
   to understand… I don’t quite know how the “ad slot” works, since it would be 
   from an ad I’m not really going to use… right? I mean, I just created the ad 
   in order to
 * …
 * I’m so totally confused.
 * I think I’ll go try it. Maybe I don’t need to understand… just Do. 🙂
 *  [considerthis1](https://wordpress.org/support/users/considerthis1/)
 * (@considerthis1)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/advanced-amp-ads/#post-9038891)
 * Okay, so the ad shows up on my desktop… and on any device because it’s an AMP
   ad. But… it is not showing in my AMP page. 🙁
 *  [considerthis1](https://wordpress.org/support/users/considerthis1/)
 * (@considerthis1)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/advanced-amp-ads/#post-9038899)
 * Darn it, I wrote that wrong.
 * The ad I created using the Google instructions you posted shows up an all devices,
   but only because it’s a RESPONSIVE ad.
 * It does not show up when I got to MobileTest.me
 *  [considerthis1](https://wordpress.org/support/users/considerthis1/)
 * (@considerthis1)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/advanced-amp-ads/#post-9038902)
 * I’ll try putting the ad into my page another way, in case the way it’s added 
   has an effect.
 *  [considerthis1](https://wordpress.org/support/users/considerthis1/)
 * (@considerthis1)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/advanced-amp-ads/#post-9038925)
 * **AMPforWP**
 * No, it doesn’t work. … For me.
 *  [considerthis1](https://wordpress.org/support/users/considerthis1/)
 * (@considerthis1)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/advanced-amp-ads/#post-9038928)
 * AMP for WP…
 * YIKES, I really do not understand the Custom AMP Editor… either…
 *  [considerthis1](https://wordpress.org/support/users/considerthis1/)
 * (@considerthis1)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/advanced-amp-ads/#post-9038940)
 * How can I make the AMP ad appear in the Exact location I want it to appear in
   a special page?
 *  [Jeffinho2016](https://wordpress.org/support/users/jeffinho2016/)
 * (@jeffinho2016)
 * [9 years ago](https://wordpress.org/support/topic/advanced-amp-ads/#post-9046276)
 * [@considerthis1](https://wordpress.org/support/users/considerthis1/)
 * What I did for that is use the plugin “Widget shortcode”
    Then in the “arbitrary”
   sidebar it creates, place the AMP ad code in a text widget It will give you a
   shortcode like [widget id=”text-45″]
 * Now place this shortcode wherever you want your ad to appear

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/advanced-amp-ads/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/advanced-amp-ads/page/2/?output_format=md)

The topic ‘Advanced AMP ADS’ is closed to new replies.

 * ![](https://ps.w.org/accelerated-mobile-pages/assets/icon-256x256.png?rev=1693616)
 * [AMP for WP - Accelerated Mobile Pages](https://wordpress.org/plugins/accelerated-mobile-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/accelerated-mobile-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/accelerated-mobile-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/accelerated-mobile-pages/reviews/)

 * 17 replies
 * 4 participants
 * Last reply from: [considerthis1](https://wordpress.org/support/users/considerthis1/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/advanced-amp-ads/page/2/#post-9047205)
 * Status: resolved