Adward Script not working

24 views
Skip to first unread message

jitendra rawat

unread,
Nov 20, 2014, 11:54:18 AM11/20/14
to adwor...@googlegroups.com
This is the script I have written in adword script writer but this script not give any row in the query, But when i was running report for campaign performance then it will give data.

this script not giving me any row in query

function main(){
  var report = AdWordsApp.report("Select CampaignName,Clicks,Impressions,Cost From CAMPAIGN_PERFORMANCE_REPORT DURING LAST_7_DAYS");
var rows = report.rows();
   while (rows.hasNext()) {
    var row = rows.next();
    var campaignName = row['CampaignName'];
    var clicks = row['Clicks'];
    var impressions = row['Impressions'];
    var cost = row['Cost'];
    Logger.log(campaignName + ',' + clicks + ',' + impressions + ',' + cost);
  }
}

So please give me hint or script how I can get same data for campaign performance report in my script. 

Michael Cloonan (AdWords API Team)

unread,
Nov 20, 2014, 2:48:14 PM11/20/14
to adwor...@googlegroups.com
Hello,

This forum is for help with the AdWords API. We have a separate forum for help with AdWords Scripts. Please try asking your question there.

Regards,
Mike, AdWords API Team
Reply all
Reply to author
Forward
0 new messages