If you want to add Viglink affiliate ad network in AMP then follow these three steps
1. Enter HTML in Head: Add the below code in the “Enter Html in head” section from Advance settings.
Here is the code:
2. Enter HTML in Body (beginning of body tag): Add the below code in “HTML in body” section from Advance setting.
3. In this code, you need to enter your API key and you will get this key from Here.
Here is the code:
You will find this option in Amp option panel -> Settings -> Advance settings, there you will find options.

That’s it for this tutorial!
We hope it helped you. If you have any feedback or questions, then please share them in the comments section below.
Hi,
I did this exact thing, but when I check the URL in Viglinks it says the code was not found. The code is installed for my non-AMP pages. What am I doing wrong? When I run it through the AMP validator it says pass but when I check on viglinks it says the code is not installed.