Ad tag 404 error

Issue

The desired banner is not displayed on the site page, and in the browser console (F12) on the Network tab, a request to https://yandex.ru/ads/adfox/ returns an error saying "status":"404".

How to fix it

  1. If the code is embedded from the placement level (the following is shown in the comments):

    <!--Adfox START-->
    <!--account-->
    <!--Placement: Site name / Section name / Placement name-->
    ...
    

    Check whether the placement that the ad code was received from is present in that section. You can determine this by the section name in the code comments.

    The Banner type and Position parameters of the site and ad code must match.

    If there is no placement with such parameters, do one of the following:

    • Create a placement.
    • Remove the ad code from the page.
  2. If the code is embedded from the site level (the following is shown in the comments):

    <!--Adfox START-->
    <!--account-->
    <!--Placement: Site name / * / *-->
    ...
    

    Check if the page belongs to the appropriate section:

    • The section is identified correctly: Go to the Placements tab of the found section and check whether it contains a placement with the same Banner type and Position parameters as those of the ad code. If there is no such placement, create one.

    • The section is identified incorrectly or not found: This means it does not comply with the existing section referer templates. Check the section referer templates and do one of the following:

      • Add a template to the desired section, which would fit the URL of our page.
      • Create a new section and add the necessary placements to it.
  3. Check if the request parameter indicating your account ID has changed.

    In the ad tag, this parameter is in the ownerID variable:

    <div id="adfox_16244342575025707"></div>
    <script>
    window.yaContextCb.push(()=>{
        Ya.adfoxCode.create({
        ownerId: 353052,
        containerId: 'adfox_16244342575025707',
        params: {
            pp: 'g',
            ps: 'ezwy',
            p2: 'gnhv'
        }
        })
    })
    </script>
    

    If it's missing or its value differs from the new ad code, we recommend that you get the ad code in the interface again and embed it on the site.

  4. If the problem persists, please contact support.

Contact support

Send an email