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?)
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
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
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.
@dilshahdirar Can you upload the screenshot of your html-start.php?