/* * This function is required. It processes the google_ads JavaScript object, * which contains AFS ads relevant to the user's search query. The name of * this function must be google_afs_request_done. If this * function is not named correctly, your page will not display AFS ads. */ function google_afs_request_done(google_ads) { /* * Verify that there are actually ads to display. */ var google_num_ads = google_ads.length; if (google_num_ads <= 0) { return; } var wideAds = ""; // wide ad unit html text var wideFooterAds = ""; // wide ad unit html text var narrowAds = ""; // narrow ad unit html text var number = "1"; // narrow ad unit html text var tel = "0"; // narrow ad unit html text for(i = 0; i < google_num_ads; i++) { if (google_ads[i].type == "image") { narrowAds += '' + '' + '
'; } else if (google_ads[i].type=="text/wide") { tel++; if (tel>6) { // render a wide footerad wideFooterAds+='
' + '' + google_ads[i].line1 + '
' + '' + google_ads[i].line2 + '
' + '' + '' + google_ads[i].visible_url + '
'; number++; } else { // render a wide ad wideAds+='
' + '' + google_ads[i].line1 + ' ' + '' + google_ads[i].line2 + ' ' + '' + '' + google_ads[i].visible_url + '
'; number++; } } else { // render a narrow ad narrowAds+='
' + '' + google_ads[i].line1 + '
' + '' + google_ads[i].line2 + '
' + '' + google_ads[i].line3 + '
' + '' + '' + google_ads[i].visible_url + '

'; if (number > 1) number=1; else number++; } } if (narrowAds != "") { narrowAds = '
'; } if (wideAds != "") { wideAds = '
'; } if (wideFooterAds != "") { wideFooterAds = '
'; } // Write HTML for wide and narrow ads to the proper
elements document.getElementById("").innerHTML = wideAds; } google_max_num_ads = ''; google_skip = ''; google_ad_type = "text"; google_feedback = 'on'; google_afs_query = ''; google_afs_ad = 'w'; // specify the number of ads you are requesting google_afs_client = 'pub-6480656561724574'; // substitute your client ID google_afs_channel = ''; // enter your custom channel ID google_afs_hl = 'nl'; // enter your interface language if not English google_afs_ie = 'utf8'; // select input encoding scheme google_afs_oe = 'utf8'; // select output encoding scheme google_analytics_uacct = 'UA-168329-1'; // adsense tracking