Title: Auto Ads Support
Last modified: March 2, 2018

---

# Auto Ads Support

 *  Resolved [Dil Shah Dirar](https://wordpress.org/support/users/dilshahdirar/)
 * (@dilshahdirar)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/auto-ads-support/)
 * Please add an Option for us to add Auto Ads Code in Header and Body area of AMP

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [Dil Shah Dirar](https://wordpress.org/support/users/dilshahdirar/)
 * (@dilshahdirar)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/auto-ads-support/#post-10034329)
 * Yeah i followed this before posting. but it didnt work.
 * Insert code in <head> of WordPress Header.php or AMP’s html-start.php
 * Insert code in <body> of WordPress Header.php or AMP’s (I cant find body tag 
   of amp. Where is it?)
 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/auto-ads-support/#post-10036439)
 * You should use the `amp_post_template_head` action for the `head`: [https://github.com/Automattic/amp-wp/blob/23eced628815e169ca9831b2ccb460b49adc53c1/templates/html-start.php#L19](https://github.com/Automattic/amp-wp/blob/23eced628815e169ca9831b2ccb460b49adc53c1/templates/html-start.php#L19)
 * As for adding something as the first child of the `body`, this currently has 
   to be done by overriding the `html-start.php` template: [https://github.com/Automattic/amp-wp/blob/develop/templates/html-start.php#L26](https://github.com/Automattic/amp-wp/blob/develop/templates/html-start.php#L26)
 * For example, in your theme you could have an `html-start.php` that requires the
   plugin’s `html-start.php` but then right after it could add the `amp-auto-ads`
   tag.
 *  [ankur](https://wordpress.org/support/users/ankshva/)
 * (@ankshva)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/auto-ads-support/#post-10059801)
 * [@dilshahdirar](https://wordpress.org/support/users/dilshahdirar/) Can you upload
   the screenshot of your `html-start.php`?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Auto Ads Support’ is closed to new replies.

 * ![](https://ps.w.org/amp/assets/icon.svg?rev=2527602)
 * [AMP](https://wordpress.org/plugins/amp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amp/)
 * [Active Topics](https://wordpress.org/support/plugin/amp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amp/reviews/)

## Tags

 * [ads](https://wordpress.org/support/topic-tag/ads/)

 * 3 replies
 * 3 participants
 * Last reply from: [ankur](https://wordpress.org/support/users/ankshva/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/auto-ads-support/#post-10059801)
 * Status: resolved