AdGroupCriterionService: can still get removed product partitions.

33 views
Skip to first unread message

yaa...@google.com

unread,
Sep 10, 2018, 1:26:19 AM9/10/18
to AdWords API and Google Ads API Forum
Wondering if any one has seen same issues before, that removed product groups unit are still showing in AdGroupCriterionService.get result. 

We removed some product partitions unit using AdGroupCriterionService.mutate remove operation and checked Adwords UI which looks good. Then using AdGroupCriterionService.get to query current partitions, however we found the removed ones are still existed in get result, but their parentCriterionId is None. 

And when we tried to remove those product groups again, it complains EntityNotFound.INVALID_ID. 

Appreciate if any one can provide some suggestions, and wondering if this will cause any issues since from Adwords UI removed product units has been removed correctly. 

san...@goshift.com

unread,
Sep 10, 2018, 3:51:55 AM9/10/18
to AdWords API and Google Ads API Forum
Could it be related to this? https://bit.ly/2zSYsmQ

Dannison Yao (AdWords API Team)

unread,
Sep 10, 2018, 5:57:15 AM9/10/18
to AdWords API and Google Ads API Forum
Hi,

It is an expected behavior that once you remove the criterion, you would still be able to retrieve this when using the AdGroupCriterionService.get(). It would just appear with a Status of REMOVED. By default, when using the get() method, it would return all criteria even the removed ones. If you wish to see only the ENABLED criterion, you would need to specify the Status to ENABLED

Sanjay - The explanation in the forum you provided is correct. To completely remove the entity, you should remove all entities nested underneath it. 

Regards,
Dannison
AdWords API Team
Reply all
Reply to author
Forward
0 new messages