Support » Fixing WordPress » uploading html for script to be used as adsense backup ad

  • Resolved kdskd

    (@kdskd)



    [ Moderator note: moved to Fixing WordPress. Please do not use Developing With WordPress for these topics. ]

    I am trying to set up backup ads for adsense, and they only allow a url to be used as a backup. So instead of just giving them the backup ad script, I must upload the script to my wordpress site as an html page. I haven’t been able to get it to work. This is the code I am using:

    <html>
    <head>
    <style>
    body, html, .alternateAd {
    margin: 0; padding: 0;
    }
    </style>
    </head>
    <body>
    <div class=”alternateAd”>
    <script type=”text/javascript” language=”javascript” src=”//c.amazon-adsystem.com/aax2/getads.js”></script>
    <script type=”text/javascript” language=”javascript”>
    //<![CDATA[
    aax_getad_mpb({
    “slot_uuid”:”8b36bd44-bbf6-4536-91ce-9fe7716071fa”
    });
    //]]>
    </script>

    </div>
    </body>
    </html>

    I uploaded this to my wordpress site via ftpand also tried via the media upload. The script is not loading on either. May be hotlink protection blocking? Can you help? Thanks so much.

    • This topic was modified 1 year, 4 months ago by  kdskd.
    • This topic was modified 1 year, 4 months ago by  Jan Dembowski.
Viewing 1 replies (of 1 total)
  • Ahh, never mind. I figured it out. The url had to be appended with ?amzn_debug_mode=2 to get the ad to show.

Viewing 1 replies (of 1 total)
  • The topic ‘uploading html for script to be used as adsense backup ad’ is closed to new replies.