Question about OPERATION_NOT_PERMITTED_FOR_REMOVED_ENTITY

26 views
Skip to first unread message

Minglei Chen

unread,
Sep 29, 2015, 8:50:06 AM9/29/15
to AdWords API Forum
Hi,
currently our team maintains the getsca tool. And we get the  OPERATION_NOT_PERMITTED_FOR_REMOVED_ENTITY error when migrate some campaigns into DSK.
But when I check the adgroups for that campaign using f1 query, none of the adgroups is in status deleted, either the campaign itself.

Does anyone knows why?

The campaign id is 323136295.

The error is:

Failed to update 76 campaigns, with the following errors: 
Campaign 323136295: 190 adgroups updated with error: Error with updating adgroups: 19692355975,19692356095,19692356215,19692356335,19692356455,19692356575,19692356695,19692356815,19692356935,19692357055,19692357175,19692357295,19692357415,19692357535,19692357655,19692357775,19692357895,19692358015,19692358135,19692358255,19692358375,19692358495,19692358615,19692358735,19692358855,19692358975,19692359095,19692359215,19692359335,19692359455,19692359575,19692359695,19692359815,19692359935,19692360055,19692360175,19692360295,19692360415,19692360535,19692360655,19692360775,19692360895,19692361015,19692361135,19692361255,19692361375,19692361495,19692361615,19692361735,19692361855,19692361975,19692362095,19692362215,19692362335,19692362455,19692362575,19692362695,19692362815,19692362935,19692363055,19692363175,19692363295,19692363415,19692363535,19692363655,19692363775,19692363895,19692364015,19692364135,19692364255,19692364375,19692364495,19692364615,19692364735,19692364855,19692364975,19692365095,19692365215,19692365335,19692365455,19692365575,19692365695,19692365815,19692365935,19692366055,19692366175,19692366295,19692366415,19692366535,19692366655,19692366775,19692366895,19692367015,19692367135,19692367255,19692367375,19692367495,19692367615,19692367735,19692367855,19692367975,19692368095,19692368215,19692368335,19692368455,19692368575,19692368695,19692368815,19692368935,19692369055,19692369175,19692369295,19692369415,19692369535,19692369655,19692369775,19692369895,19692370015,19692370135,19692370255,19692370375,19692370495,19692370615,19692370735,19692370855,19692370975,19692371095,19692371215,19692371335,19692371455,19692371575,19692371695,19692371815,19692371935,19692372055,19692372175,19692372295,19692372415,19692372535,19692372655,19692372775,19692372895,19692373015,19692373135,19692373255,19692373375,19692373495,19692373615,19692373735,19692373855,19692373975,19692374095,19692374215,19692374335,19692374455,19692374575,19692374695,19692374815,19692374935,19692375055,19692375175,19692375295,19692375415,19692375535,19692375655,19692375775,19692375895,19692376015,19692376135,19692376255,19692376375,19692376495,19692376615,19692376735,19692376855,19692376975,19692377095,19692377215,19692377335,19692377455,19692377575,19692377695,19692377815,19692377935,19692378055,19692378175,19692378295,19692378415,19692378535,19692378655Ads API application exception: [OperationAccessDenied.OPERATION_NOT_PERMITTED_FOR_REMOVED_ENTITY @ operations[129]]

Umesh Dengale

unread,
Sep 29, 2015, 4:35:03 PM9/29/15
to AdWords API Forum
Hello,

You're probably getting that error because the Campaign that contains the AdGroup of the AdGroupAd has been removed. Once a Campaign has been removed you can no longer mutate any attributes of its AdGroups.

To limit to AdGroups that are neither removed nor are in removed Campaigns, you can do the following:

1. Use CampaignService.get to select all Campaigns with Status = 'REMOVED', and store those Campaign IDs.

2. When selecting AdGroups via AdGroupService.get, include two predicates:

  a. Status IN ['ENABLED', 'PAUSED']

  b. CampaignId NOT_IN [ list of removed campaign IDs from step 1 ]

Thanks,
Umesh, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages