function main() {
var query =
"SELECT CampaignName, Cost, CampaignStatus " +
"FROM CAMPAIGN_PERFORMANCE_REPORT"
var report = AdsApp.report(query);
var rows = report.rows();
var campagins = [];
while (rows.hasNext()) {
var row = rows.next();
campagins.push([row['CampaignName'], row['CampaignStatus']]);
}
Logger.log(campagins.length);
Logger.log(JSON.stringify(campagins, null, '\t'));
}
I know that the remaining three campaigns are paused smart campaigns. If I count the cost, then I also get the cost without these three campaigns.
Also I can't set any label for these three campaigns.
What am I doing wrong?
These are some restrictions on the types of campaigns?
Best, Alex.