Support » Fixing WordPress » Ads not Displaying

  • I don’t see amazon ads being placed on my website for some reason. The ads are to be placed on the top right and sidebar. Site link – https://datagyan.co.in, The WP theme I am using is called “FirstSite”. It was working fine until 3 days ago but I don’t see the ad anymore.

    I contacted amazon and below is their response.

    —————– Beginning of Amazon’s response ———————

    Please be informed that we at Amazon.in Associates Program could only provide support on how to build HTML scripts for Amazon.in products in your Associates Central. We cannot offer any Technical support related to website design support or HTML techniques beyond the code we provide in Associates Central.

    We can advise on certain issues that pertain to your account and the program, but we’re unable to assist with actual site-building.

    You might also try consulting the technical support provided by your web page designer/software on how to upload our HTML script to your website, blog, or other media.

    ————– End of Amazon’s response —————————-

    Any can assist on what could be the issue? Google or Stackoverflow didn’t help much.

    • This topic was modified 1 week, 3 days ago by rakashram.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • I see that the script is still included, but the called URL on Amazon returns a 404 – so it doesn’t exist. This can happen if there are modifications on the part of Amazon to the URLs that they provide for this.

    As far as I can see you use the plugin Amazon Auto Links for the ads. My recommendation would be that you contact their support since it is their function that is affected by this: https://wordpress.org/support/plugin/amazon-auto-links/

    Thread Starter rakashram

    (@rakashram)

    I am not using any specific plugin like amazon auto links. i am using the snippet provided by them on a custom HTML widget at the header and sidebar. Something like the below, and can be found on their affiliate site. When i contacted them they said its all fine.

    <script type="text/javascript" language="javascript">
          var aax_size='300x250';
          var aax_pubname = '';
          var aax_src='302';
        </script>
    <script type="text/javascript" language="javascript" src="http://c.amazon-adsystem.com/aax2/assoc.js"></script>

    How do i let them know with proof that the link is broken?
    I don’t see that at my end. Appreciate your help!

    It is the URL in the script that reports a 404: http://c.amazon-adsystem.com/aax2/assoc.js

    You can track this in your browser’s developer tools. Proceed as described here: https://wordpress.org/support/article/using-your-browser-to-diagnose-javascript-errors/#step-3-diagnosis – and then open your page in the browser tab in which you have the developer tools open, then you see it.

    The cause could be a server problem at Amazon or a modification there. In any case, it is not something you can solve from your side, especially since you are using the source code that Amazon provides you.

    Thread Starter rakashram

    (@rakashram)

    The error in the developer console says;
    Failed to load resource: the server responded with the status 404()

    http://c.amazon-adsystem.com/aax2/assoc.js

    I also pasted the script provided by the affiliate link in a simple HTML file and loaded the page, still blank!

    <html>
    <head></head>
    <body>
    “AMAZON AFFILIATE LINK”
    </body>
    </html>

    Is there an amazon affiliate support page on WP? Not the auto ads page.

    No, you need to contact Amazon Affiliate Support. The problem is not WordPress specific but affects their systems.

    Thread Starter rakashram

    (@rakashram)

    No use. They keep repeating the same template message that its not their problem, despite sharing the snippet with them. It is weird.

    I have tried clearing cookies/cache, reinstalled my browser, tried on a different browser, deactivated common plugins in my dashboard

    • This reply was modified 2 days, 7 hours ago by rakashram.

    I’m seeing something right now:
    You embed the code like this:
    <script type="text/javascript" language="javascript" src="http://c.amazon-adsystem.com/aax2/assoc.js"></script>

    Error is that here http is specified as protocol, but your website uses https. You would probably have to change the to

    <script type="text/javascript" language="javascript" src="https://c.amazon-adsystem.com/aax2/assoc.js"></script>

    change. Or

    <script type="text/javascript" language="javascript" src="//c.amazon-adsystem.com/aax2/assoc.js"></script>

    then the protocol would not matter.

    Just an idea.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.