madelinelise
5/24/2017 - 5:44 PM

Webads JSON

Webads JSON

function get_webad() {
  var webad_link = "http://webads.volusia.k12.fl.us/banners/getAD.aspx?ZoneID=22&SiteID=1&IP=&wd=";
  $.getJSON(webad_link, function(data) {
    if (data) {
      //var webad = data["imageURL"]["AdCode"]["imageHeight"]["isAdvancedBanner"]["imageWidth"]["targetLink"]["ZoneID"];
      var image_url = data["imageURL"];
      var ad_code = data["AdCode"];
      var image_height = ["isAdvancedBanner"];
      var image_width = ["imageWidth"];
      var target_link = ["targetLink"];
      var zone_id = ["ZoneID"];
      $("#adspacewrapper").html(*** Need to do ***);
    }
  });
}
get_webad();