I installed Advanced Ads, but some ads don’t display on AMP pages created with the AMP plugin. How can I ensure compatibility?

Hire Now!

Whether you’re looking to launch your brand, showcase your portfolio, or open an online store, we’re here to bring your ideas to life.

I installed Advanced Ads, but some ads don’t display on AMP pages created with the AMP plugin. How can I ensure compatibility?

  • Post Created: 2 months ago
  • Views: 4

Questioner:

Ongun Çakal

Answer

Ads not displaying on AMP pages often result from unsupported scripts. Enable AMP compatibility in Advanced Ads under Settings > AMP. Use the “AMP for WP” integration to include AMP-compatible ad scripts like AdSense.

Ensure ads are configured with <amp-ad> tags:

<amp-ad width=\"300\" height=\"250\"\n       type=\"adsense\"\n       data-ad-client=\"ca-pub-XXXX\"\n       data-ad-slot=\"XXXX\">\n   </amp-ad>

Test AMP validation using the AMP Validator Chrome extension to confirm compliance.

Discussion