The nice thing about amp is that you can easily test it to see if works.
Add it to your page, then open the page in chrome and add #development=1 after the url in the address bar. This validates the amp code in the console (inspect element). If it works a message will appear in the console:
AMP validation successful.
if it doesn't validate it will give you errors and point you to the problem.