[Google Ads API] REMOVED resources are not returned when querying the API

52 views
Skip to first unread message

Julián Cruz Cañada Racinet

unread,
Jun 11, 2019, 6:54:06 AM6/11/19
to AdWords API and Google Ads API Forum

Hi, we are migrating to the new google-ads API. One of our use cases is that we have a local copy synchronized with our accounts. The problem that we are having is that, for example, when we REMOVE and ad_group_criterion, it comes in the result of querying the change_status resource. 

For example the query is:

SELECT change_status.ad_group_criterion,
       change_status.resource_type, change_status.resource_name 
       change_status.last_change_date_time 
  FROM change_status
 WHERE change_status.last_change_date_time >= '2019-06-01 10:00:00' 
   AND change_status.resource_type = 'AD_GROUP_CRITERION' ;


But when we then query filtering by the resource_name that has been deleted (returned by the first query), that same resource is not brought by the API.


"SELECT ad_group_criterion.criterion_id , 
       ad_group_criterion.status, ad_group_criterion.type, 
       ad_group_criterion.webpage.criterion_name, 
  FROM ad_group_criterion 
WHERE ad_group_criterion.resource_name = '<the resource-name obtained> '

We have already tried querying by the ad_group_criterion.criterion_id filtering by status REMOVED with the same results, the AD_GROUP_CRITERION is not present. What can we do to download these results to our database?


Google Ads API Forum Advisor Prod

unread,
Jun 11, 2019, 5:09:04 PM6/11/19
to jul...@gmail.com, adwor...@googlegroups.com
Hello,

Thanks for reporting and for the detailed description. I believe you should be able to fetch ad group criteria this way, so I'm going to have our engineering team investigate what may be going wrong. I will let you know as soon as I have any information to share.

Regards,
Mike, Google Ads API Team

ref:_00D1U1174p._5001UBmf5E:ref

Google Ads API Forum Advisor Prod

unread,
Jun 12, 2019, 7:51:32 AM6/12/19
to jul...@gmail.com, adwor...@googlegroups.com
Hello,

I heard back from the team that ad group criteria (and criteria in general) are actually completely removed from the backend, not simply marked as removed, when they are removed and have never accrued any stats. This is why you are not getting the criterion back after it was shown as removed in the change status.

Let me know if you need anything else.
Reply all
Reply to author
Forward
0 new messages