Hi
Any idea why this code that is taken from the Code Snippets or Example's
<https://developers.google.com/adwords/scripts/docs/examples/reports#create-a-text-report>
section is not showing me any report on the Log section when I run the
script?
Code:
function main() {
function runReport() {
var report = AdWordsApp.report(
'SELECT CampaignName, Clicks, Impressions, Cost ' +
'FROM CAMPAIGN_PERFORMANCE_REPORT ' +
'DURING LAST_30_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
);
}
}
}
Result:
<https://lh3.googleusercontent.com/-m8dUqCmD_pI/WEp1lZ3p3lI/AAAAAAAAmvY/rO1R7T89JvMKQ8A2R_HNMzuq52D62WhJQCLcB/s1600/Screenshot_6.png>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/770fef8b-f038-4768-8b98-f5099c00b708%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.