function google_afs_request_done(googleAds) {
  if (googleAds.length <= 0) { return; }

  var wideAds = [];
  var narrowAds = [];

  googleAds.each(function(currentAd) {
    var advert = new GoogleAdvert(currentAd);
    if (currentAd.type=="text/wide") {
      wideAds.push(advert.domObject());
    } else {
      narrowAds.push(advert.domObject());
    }
  })

  GoogleAdvert.displayAdverts('adSenseNarrow', narrowAds);
  if ($('adSenseWideTop') != null) {
    var topAds = wideAds.splice(0, 1);
    GoogleAdvert.displayAdverts('adSenseWideTop', topAds);
  }
  GoogleAdvert.displayAdverts('adSenseWideBottom', wideAds);
}

google_afs_ad = 'w6n6'; // specify the number of ads you are requesting
google_afs_client = 'googlepsotest-afsjs'; // substitute your client ID
google_afs_channel = '1234567890'; // enter your custom channel ID
google_afs_hl = 'en'; // enter your interface language if not English
google_afs_ie = 'utf8'; // select input encoding scheme
google_afs_oe = 'utf8'; // select output encoding scheme
