• Resolved Влад

    (@novichok78)


    I have completed all the settings, but there are no ads from Yandex on these pages. Remote debugging is enabled too. Code in the settings header: [ADINSERTER AMP]
    <script async custom-element= “amp-ad” src=”https://cdn.ampproject.org/v0/amp-ad-0.1.js”>&lt; / scri Code in the ad settings: [ADINSERTER AMP]
    < amp-ad width= “null” height= ” 0 ”
    type=” yandex ”
    data-block-id=” R-A-527250-19 ”
    data-html-access-allowed= “true”>
    </amp-ad>

Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Author Spacetime

    (@spacetime)

    Thread Starter Влад

    (@novichok78)

    Plugin Author Spacetime

    (@spacetime)

    I see no issues.

    The blocks 11, 12 and 13 are inserted as configured and AMP ads are displayed.

    Thread Starter Влад

    (@novichok78)

    Thank you, problem solved.

    Plugin Author Spacetime

    (@spacetime)

    ??

    Thank you, problem solved.

    Please say it here:
    https://www.ads-software.com/support/plugin/ad-inserter/reviews/#new-post

    Thank you!

    And help me!
    Created in the same way as the previous author:

    [ADINSERTER AMP]
    <script async custom-element= “amp-ad” src=”https://cdn.ampproject.org/v0/amp-ad-0.1.js”>< / scri Code in the ad settings: [ADINSERTER AMP]
    <amp-ad width="null" height="0"
        type="yandex"
        data-block-id="R-A-279473-16"
        data-html-access-allowed="true">
    </amp-ad>

    Nothing is displayed.

    I look at the code of the page, there is not a single mention of this script.
    Maybe we need to connect something else somewhere?

    https://cultura.menu/retsepty/goryachee/mangal/kak-prigotovit-idealnyj-kebab/amp/

    Plugin Author Spacetime

    (@spacetime)

    Please don’t hijack other’s threads.

    Remote debugging doesn’t seem to be enabled.

    I intercepted someone else’s topic so as not to make another one of the same topic. Is this wrong?
    I enabled debugging.

    Plugin Author Spacetime

    (@spacetime)

    Forum Guidelines

    Your code is wrong:

    [ADINSERTER AMP]
    <script async custom-element= “amp-ad” src=”https://cdn.ampproject.org/v0/amp-ad-0.1.js”>< / scri Code in the ad settings: [ADINSERTER AMP]
    <amp-ad width="null" height="0"
        type="yandex"
        data-block-id="R-A-279473-16"
        data-html-access-allowed="true">
    </amp-ad>

    – You are using two AMP separators – only one is allowed
    – You are using wrong double quotes – use ” character
    – Invalid javascript code

    Try this:

    [ADINSERTER AMP]
    <script async custom-element= "amp-ad" src="https://cdn.ampproject.org/v0/amp-ad-0.1.js"></script>
    <amp-ad width="null" height="0"
        type="yandex"
        data-block-id="R-A-279473-16"
        data-html-access-allowed="true">
    </amp-ad>

    I inserted a new block, as you wrote. Nothing has changed. I look at the page code, but there is no advertising, the ID “RA-279473-16” is not present. only blocks for web versions that are not shown in AMP.

    Plugin Author Spacetime

    (@spacetime)

    The insertion log shows blocks 1 and 2 inserted as configured.

    However, you code contains Javascripot code which is basically not allowed on AMP pages.
    https://adinserter.pro/documentation/amp-pages

    Usually such scripts are only allowed in the header – AMP plugin may remove script tags.
    Are you sure this is a valid code for AMP pages to be inserted into the body part?
    I have no experience with Yandex ads.

    Many AMP plugins remove invalid code.
    Very likely amp-ad tag was removed as no amp-ad script is present in the header.

    The first author has the same Yandex advertising code.
    His

    < amp-ad width= “null” height= ” 0 ”
    type=” yandex ”
    data-block-id=” R-A-527250-19 ”
    data-html-access-allowed= “true”>
    </amp-ad>

    My

    <amp-ad width="null" height="0"
        type="yandex"
        data-block-id="R-A-279473-16"
        data-html-access-allowed="true">
    </amp-ad>

    And everything works for him.
    I have the same ad code, only the numbers are different.

    Maybe I need to use another plugin for AIMP pages?

    Plugin Author Spacetime

    (@spacetime)

    No, your code is very different – check posts and my comments above.

    I’m almost desperate.
    I just copied and pasted your code, but nothing works…

    Plugin Author Spacetime

    (@spacetime)

    I only fixed your code in terms of syntax validity.

    I believe your code is wrong – see my comments above.
    I believe Javascript code can’t be used this way in the body part – maybe it should be inserted in the header.

    I would suggest to contact Yandex support to get instructions on how to properly insert AMP ad codes.

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Hello. Yandex ads are not displayed on AMP pages.’ is closed to new replies.