@sfuma thanks for your inquiries!
How do I install the ad code?
There are several options for implementing Adsense for AMP pages.
1) You can use the Site Kit plugin, which will automatically place the right Adsense code for Auto ads on both your AMP and non-AMP pages.
2) There are also a variety of plugins that can support Adsense (Auto ads and Ad units respectively) on AMP pages in this article to consider.
Why is everything so complicated in your plugin?
Was there anything further you would like clarification for specifically? We’re happy to help!