Search code examples
amp-html

AMP missing embedded video


I got an AMP issue for a website I manage. I received the message type [WNC-10036043] on webmasters tools.

It says "Google systems have detected AMP pages on your site that are missing videos contained in their corresponding canonical pages." as you can see in the first picture here below

enter image description here

I tested any page of the site with AMP VALIDATOR tool, and everything was AMP compliant. No errors.

[EDIT] Here the response of the Google's AMP validator enter image description here [/EDIT]

Moreover, checking in webmasters tools: "Search Appearance -> Accelerated Mobile Pages", I got the highlight, in the screenshot here below. Then I went to investigate

enter image description here

where I saw many pages (almost all) are reported with the same issue. In the second screenshot, you see the details

enter image description here

this because all the pages are using one template. I checked the code but it seems ok (please here below)

This the URL tested: https://www.liciafox.net/amp/songs/fragile

here below the screenshot of the code, that shows that the JS library is loaded

enter image description here

and here below the second part of the HTML AMP code implemented

enter image description here

here the canonical page

enter image description here

I'm wondering what should I do in order to solve this issue?

Thank you in advance for any help


Solution

  • SOLVED

    the issue is into the first part of the URL. Posting a video form youtube, on canonical page I did use the format

    https://www.youtube-nocookie.com/watch?v={videocode}
    

    the AMP code, instead, doesn't let anybody to decide whether use -nocookie option or not.

    The AMP tag is indeed:

    <amp-youtube 
                 data-videoid="{videocode}"
                 layout="responsive"
                 width="480"
                 height="270">
    </amp-youtube>
    

    which calls this address format:

    https://www.youtube.com/watch?v={videocode}
    

    rather than this one:

    https://www.youtube-nocookie.com/watch?v={videocode}
    

    At the current state of the things, there is not way to make AMP call with the `-nocookie´option, see the doc amp-youtube tag and in the AMP Examples

    The AMP analyzer, on Webmasters Tools > Search appearance > Accelerated Mobile Pages, detects the Content mismatch, and it consider this: Missing embedded video (Non-critical issue).

    Rewriting the YouTUBE link on the canonical page, in the format:

    https://www.youtube.com/watch?v={videocode}
    

    The issue is solved