Hi,
Thank you for posting your concern.
The Account Performance Report that is implemented in the solution doesn't have
CampaignName field so it is not possible to filter it using campaign name. With this, you are correct that the possible workaround that you can do is to change the report type into Campaign Performance Report as
CampaignName field is present here.
You may refer to the modified function below and implement it to your current script.
function getReportRowForDuring(during) {
var report = AdsApp.report(
'SELECT ' +
REPORT_FIELDS
.map(function(field) {
return field.columnName;
})
.join(',') +
' FROM CAMPAIGN_PERFORMANCE_REPORT ' +
' WHERE CampaignName DOES_NOT_CONTAIN_IGNORE_CASE "nonbrand" ' +
'DURING ' + during,
REPORTING_OPTIONS);
return report.rows().next();
}
Let me know how it goes after trying this suggestion.
Regards,
 |
| Ernie John Blanca Tacata |
| Google Ads Scripts Team |
|
|
| |

ref:_00D1U1174p._5004Q24bgPV:ref