var report = AdWordsApp.report("SELECT ValidationDetails, AdGroupName, CampaignName, CampaignStatus, PlaceholderType " +
"FROM PLACEHOLDER_FEED_ITEM_REPORT where CampaignStatus = 'ENABLED' ", {
apiVersion: 'v201809'
});
var totalAdsExtensions = 0;
var disapprovedAdsExtensions = 0;
var disapprovedRows = "";
var rows = report.rows();
while (rows.hasNext()) {
var row = rows.next();
//Logger.log(JSON.stringify(row))
var validationDetails = row['ValidationDetails'];
var adGroupName = row['AdGroupName'];
var campaignName = row['CampaignName'];
var campaignStatus = row['CampaignStatus'];
var placeholderType = row['PlaceholderType'];
totalAdsExtensions += 1;
if (validationDetails == 'Disapproved') { // If a row has Approval Status of 'Disapproved', and increase counter by one
disapprovedRows += 'Ad extension status: ' + validationDetails + ' | Campaign name: ' + campaignName +
' | Campaign Status' + campaignStatus + ' | Ad Group Name: ' + adGroupName + ' | ' + placeholderType + '\n';
disapprovedAdsExtensions += 1;
}
}var report = AdWordsApp.report("SELECT ValidationDetails, PlaceholderType " +
"FROM PLACEHOLDER_FEED_ITEM_REPORT where CampaignStatus = 'ENABLED' ", {
apiVersion: 'v201809'
});Hi Mario,
With regard to data discrepancy between Placeholder Feed Item Report and Google Ads UI, could you confirm if you are following Ad Extensions Report section in this guide? The guide maps the concepts and naming conventions for reports in the Google Ads UI to the comparable AdWords API reports.
After confirming this and if you still experiencing the data discrepancy, so I can investigate the issue, could you provide the following information via Reply privately to author?
Please let me know if you have any concerns.
Regards,
Hiroyuki
Google Ads Scripts Team