Get Disapproved Ads Extension With Google Ads Scripts

252 views
Skip to first unread message

Mario Vasile

unread,
May 24, 2019, 2:07:46 AM5/24/19
to Google Ads Scripts Forum
Hi, 

I am trying to get all disapproved ads extensions with a Google Ads Script but I get different results than the ones showing in Google Ads Account Dashboard. Since I cannot get the Ads Extension Name, it's difficult to figure out which ads extensions are returned by the Report. I am getting the fallowing attributes for the Ads Extension: Status, AdGroupName, CampaignName, CampaignStatus, PlaceholderType (Ad extension type) 



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;
   
}
}


The disapproved Ads Extensions got by the script are fewer than the ones from Google Ads Dashboard. Also the campaigns name for the disapproved ads are different than the ones from the Dashboard and when I checked on that campaigns in the Dashboard, they didn't had any disapproved Ads Extension or Ads. The results from the Script report is totally different than the ones from the Dashboard. 

I've also tried to get fewer attributes in the select clause like bellow and still same problem.

var report = AdWordsApp.report("SELECT ValidationDetails, PlaceholderType  " +
   
"FROM PLACEHOLDER_FEED_ITEM_REPORT where CampaignStatus = 'ENABLED' ", {
        apiVersion
: 'v201809'
   
});

I've tried also to put duration and compared with the ones from Dashboard and still different results.
I've tried also to run without the CampaignStatus = 'ENABLED' clause and still different results. 

Can you help me please, I am doing something wrong ? 



Google Ads Scripts Forum Advisor Prod

unread,
May 24, 2019, 5:50:42 AM5/24/19
to adwords...@googlegroups.com

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?

  • CID
  • Script name
  • Screenshots of the Google Ads UI which you are comparing with

Please let me know if you have any concerns.

Regards,
Hiroyuki
Google Ads Scripts Team



ref:_00D1U1174p._5001UAqVLt:ref

Mario Vasile

unread,
Jun 6, 2019, 5:48:28 AM6/6/19
to Google Ads Scripts Forum
Hi Hiroyuki

Do you have any updates? 

Thanks,
Mario

Google Ads Scripts Forum Advisor Prod

unread,
Jun 7, 2019, 1:05:11 PM6/7/19
to adwords-scripts+apn2wqfc87e5zk3o...@googlegroups.com, adwords...@googlegroups.com
Hello,

I responded on May 28, but it looks like that response may have been lost.

We are still investigating.

Regards,
Mike, Google Ads Scripts Team

ref:_00D1U1174p._5001UAqVLt:ref

Mario Vasile

unread,
Jul 2, 2019, 11:54:52 AM7/2/19
to Google Ads Scripts Forum
Hello Mike,

Do you have any updates?

Reply all
Reply to author
Forward
0 new messages