OPERATION_NOT_PERMITTED_FOR_REMOVED_ENTITY Bug?

1,925 views
Skip to first unread message

David Midgley

unread,
Sep 8, 2014, 11:19:45 AM9/8/14
to adwor...@googlegroups.com
Hi

I'm having problems with a new "OPERATION_NOT_PERMITTED_FOR_REMOVED_ENTITY" error.

It appears that you can't "undelete" an adgroup (ie set any properties of a removed adgroup, including Status) or even add a keyword to an existing adgroup where that keyword was previously deleted. This seems to be a change between the v201402 and v201406 versions of the API. Obviously these are things that you can do via the UI.

There is mention of this in another post:

Is this a bug? Is this going to get fixed soon?

Cheers

David

Anash P. Oommen (AdWords API Team)

unread,
Sep 8, 2014, 2:15:49 PM9/8/14
to adwor...@googlegroups.com
Hi David,

AdWords API v201406 no longer allows you to undelete campaigns, adgroups, etc. The UI and older API versions allows this behaviour for now, but they will eventually start working like the way v201406 works today.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

David Midgley

unread,
Sep 8, 2014, 2:29:07 PM9/8/14
to adwor...@googlegroups.com
Thanks for the quick response Anash!

Let me explain my use case and maybe you can find a workaround?

We are working on an optimisation application that uses a strict naming convention for campaign and adgroup names. If a user accidentally deletes an adgroup, my software can't correct the error by recreating the adgroup because if we create a new adgroup with the same name in the same campaign we'll get a duplicate adgroup name error. Our solution to this problem was to rename the deleted adgroup which enabled us to create the new adgroup.

Now that we can't rename the deleted adgroup and we can't create a new adgroup with the same name, how can we enforce our strict naming convention? This naming convention links adgroups between campaigns and is critical to our operations.

We could "version" adgroup names, but this seems pretty untidy. We could use labels, but this could create thousands of labels and more (potentially error-prone) manual work.

Can you think of a workaround?

Cheers

David

m...@kickstone.co.uk

unread,
Sep 9, 2014, 6:59:40 AM9/9/14
to adwor...@googlegroups.com

We do a similar thing, I missed that in the release notes.

How are google going to handle duplicate names, do we need to rename items to be deleted beforehand now or will duplicates of deleted entries be allowed?

Many thanks

David Midgley

unread,
Sep 15, 2014, 7:15:16 AM9/15/14
to adwor...@googlegroups.com
Hi API team

Sorry to keep chasing on this, but will there be a fix for this or is there a workaround I haven't considered?

Cheers

David

On Monday, 8 September 2014 19:15:49 UTC+1, Anash P. Oommen (AdWords API Team) wrote:

Anash P. Oommen (AdWords API Team)

unread,
Sep 15, 2014, 11:04:31 AM9/15/14
to adwor...@googlegroups.com
Hi David,

If I remember correctly, the name needs to be unique in only active + paused items, not globally (with the new change). So if the user deletes an adgroup with the same name, you could create one with the same name again. Let me know if you are seeing a different behaviour, and I'll ask the team to investigate this further.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

David Midgley

unread,
Sep 15, 2014, 11:16:41 AM9/15/14
to adwor...@googlegroups.com
Hi Anash

I've just done a test via the UI (I've already attempted lots via the API) and you cannot name a new adgroup the same name as a deleted adgroup in the same campaign.

It would be great if you could get the team to investigate further. Just to confirm, that is not in itself a problem. The problem is that we can't rename the deleted adgroup so we can add an adgroup with the name we want. As far as the API is concerned an adgroup becomes "read-only" when you remove it.

Cheers

David

GregT

unread,
Sep 15, 2014, 5:00:40 PM9/15/14
to adwor...@googlegroups.com
David, it sounds like you do something extremely similar to us.  For a workaround, what we've had to do ever since we upgraded to v201406 is leave a small portion of our code at v201402 to just handle this scenario.  I.e. all our code is using v201406, except when we run into a case where we want to create an ad group with the same name as a deleted ad group, in which case we call into a separate class that uses v201402 to rename the deleted ad group so that we can now (using v201406) add an ad group with that name.  Klunky, but until AdWords brings consistency to this, it works.

FYI,
Greg

David Midgley

unread,
Sep 16, 2014, 4:39:10 AM9/16/14
to adwor...@googlegroups.com
Hi Greg

I do exactly what you do, but I guess I'm scared that this could be a permanent change and so when v201402 gets retired, we'll be in big trouble!

The reason why I put the word "bug" in the question is to find out if this is by design or an unintended consequence of another update. And the follow-up question would be: if it is by design, has the team considered this senario? This is also odd because it diverges from the UI. Maybe it is a step in a bigger migration? Anash has mentioned earlier in this thread: "The UI and older API versions allows this behaviour for now, but they will eventually start working like the way v201406 works today."

If this is the future, then I hope we can find a workaround well before v201402 gets retired!

Cheers

David

David Midgley

unread,
Sep 17, 2014, 9:33:22 AM9/17/14
to adwor...@googlegroups.com
Hi Anash/API Team

I responded to your question. Is there anything else you need to know?

It would be great to get an answer on this please!

Cheers

David

Oliver

unread,
Sep 18, 2014, 3:24:33 AM9/18/14
to adwor...@googlegroups.com
Just thinking loud here, if the adgroups are deleted via your software, what if you rename the adgroup before you delete it?  We used to use a similar approach where we appended the text "_del" to all adgroup names that are about to be deleted.

Obviously, if the adgroup is deleted via the adwords interface rather than your software, then the above won't help.

Oliver

Mariusz

unread,
Sep 18, 2014, 5:43:41 AM9/18/14
to adwor...@googlegroups.com

One more thing to bear in mind is that you probably should version deleted adgroups. Imagine:

  • user creates adgroup “test”
  • then deletes it, so the system first renames it to “test_del” and then marks as deleted
  • user creates again adgroup named “test”
  • user tries to delete it

The system will fail in step 4, because it will try to rename adgroup to “test_del”, but that name already exists. So what you may do in that case is to detect the error, and try to rename it to “test_del1”.

Cheers,

Mariusz

Anash P. Oommen (AdWords API Team)

unread,
Sep 18, 2014, 9:51:46 AM9/18/14
to adwor...@googlegroups.com
Hi Mariusz,

I've asked the team to investigate whether it is feasible to allow deleted adgroups and campaigns to be renamed. I'll update the thread as I hear from them,

Cheers,
Anash

GregT

unread,
Sep 18, 2014, 10:07:41 AM9/18/14
to adwor...@googlegroups.com
Anash, thanks for looking into that!

Oliver & Mariusz, I can't speak for David, but for us, the problem occurs when the user uses the AdWords UI to delete ad groups outside our system.  If our system does the deletion, we do rename them before they're deleted (part of the rename includes a timestamp so that it can be created and re-deleted).  Thanks for the thoughts, though.

Thanks,
Greg

David Midgley

unread,
Sep 18, 2014, 10:13:49 AM9/18/14
to adwor...@googlegroups.com
Hi all

If my software does the deletion, it adds a GUID to the end of the adgroup name prior to deletion to make sure it doesn't risk creating a duplicate in the future if it needs to recreate the adgroup.

The problem is when a human makes a mistake and deletes the adgroup and effectively "blocks" the software from creating it again...

Cheers

David

David Midgley

unread,
Oct 10, 2014, 6:23:34 AM10/10/14
to adwor...@googlegroups.com
Hi Anash/API Team

Now that v201409 is released the countdown has started on the sunsetting of v201402 which basically means we need a workaround to this problem soon as v201402 is the only live version that allows the renaming of deleted adgroups!

Anash, you mentioned:

"
I've asked the team to investigate whether it is feasible to allow deleted adgroups and campaigns to be renamed. I'll update the thread as I hear from them
"

Have you heard from the team?

Cheers

David

Anash P. Oommen (AdWords API Team)

unread,
Oct 14, 2014, 3:54:06 PM10/14/14
to adwor...@googlegroups.com
Hi David,

The team got back to me telling that this change is not feasible, so you need to rename and then delete if you need to maintain unique name.

Cheers,
Anash

Eric Maas

unread,
Oct 20, 2014, 5:56:04 PM10/20/14
to Anash Oommen, adwor...@googlegroups.com
Hi Anash,

Can you find out if the unique constraint is still going to be enforced going forward for removed items?  If AdWords is no longer going to allow you to unremove an item, it seems strange that removed items would still be part of the uniqueness check.  As we've described in this thread, it presents problems for API users, but I would also see it creating problems for UI users as well.  The user would try to create a new Ad Group, the UI would tell them they can't because the name is already used - but when the user goes to look for it they can't find it, or they think to look at the removed Ad Groups and find it there, only to find they can't change it.

Thanks,
Eric

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups "AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api...@googlegroups.com.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/aff824f2-b423-48dc-9a9d-104e52d4dd89%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Anash P. Oommen (AdWords API Team)

unread,
Oct 21, 2014, 11:23:20 AM10/21/14
to adwor...@googlegroups.com, adwordsapia...@google.com
Hi Eric,

Campaigns don't enforce unique name in deleted items, I'll check with the team if the same behaviour can be extended to adgroups.

Cheers,
Anash


On Monday, October 20, 2014 5:56:04 PM UTC-4, eric.ste...@gmail.com wrote:
Hi Anash,

Can you find out if the unique constraint is still going to be enforced going forward for removed items?  If AdWords is no longer going to allow you to unremove an item, it seems strange that removed items would still be part of the uniqueness check.  As we've described in this thread, it presents problems for API users, but I would also see it creating problems for UI users as well.  The user would try to create a new Ad Group, the UI would tell them they can't because the name is already used - but when the user goes to look for it they can't find it, or they think to look at the removed Ad Groups and find it there, only to find they can't change it.

Thanks,
Eric

For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups "AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscribe@googlegroups.com.

Eric Maas

unread,
Oct 22, 2014, 4:06:54 PM10/22/14
to Anash Oommen, adwor...@googlegroups.com
Thanks!


For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups "AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api...@googlegroups.com.

Eric Maas

unread,
Oct 30, 2014, 10:35:32 AM10/30/14
to Anash Oommen, adwor...@googlegroups.com
Hi Anash,

Were you able to find out about the uniqueness behavior on adgroups? The 201402 version is sunsetting soon, so we need to know what we have to do.

Thanks,
Eric

Anash P. Oommen (AdWords API Team)

unread,
Nov 3, 2014, 10:41:43 AM11/3/14
to adwor...@googlegroups.com, adwordsapia...@google.com
Hi Eric,

We are still looking into this, and we are aware of the upcoming 201402 sunset. I'll update you once I hear from the team.

Cheers,
Anash


On Thursday, October 30, 2014 10:35:32 AM UTC-4, eric.ste...@gmail.com wrote:
Hi Anash,

Were you able to find out about the uniqueness behavior on adgroups? The 201402 version is sunsetting soon, so we need to know what we have to do.

Thanks,
Eric
On Wed, Oct 22, 2014 at 4:06 PM, Eric Maas <eric.ste...@gmail.com> wrote:
Thanks!

Message has been deleted
Message has been deleted

David Midgley

unread,
Jan 26, 2015, 7:48:05 AM1/26/15
to adwor...@googlegroups.com, adwordsapia...@google.com
Hi Anash/API Team

It's been two and a half months since the last reply on this and the 201402 API has been sunset for a while now. Do you have an update on this?

Currently my app is alerting users to manually rename a deleted adgroup so it can create a new adgroup. As you can imagine this is not very practical...

It would be great to get clarity as to whether the GUI is going to change to disallow editing of removed adgroups (ie harmonise with how the API currently works) or if the API will re-enable the ability to modify deleted adgroups in the future.

Any kind of update would be great please!

Cheers

David

On Monday, 3 November 2014 15:41:43 UTC, Anash P. Oommen (AdWords API Team) wrote:
Hi Eric,

We are still looking into this, and we are aware of the upcoming 201402 sunset. I'll update you once I hear from the team.

Cheers,
Anash

On Thursday, October 30, 2014 10:35:32 AM UTC-4, eric.ste...@gmail.com wrote:
Hi Anash,

Were you able to find out about the uniqueness behavior on adgroups? The 201402 version is sunsetting soon, so we need to know what we have to do.

Thanks,
Eric
On Wed, Oct 22, 2014 at 4:06 PM, Eric Maas <eric.ste...@gmail.com> wrote:
Thanks!

Anash

For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups "AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api...@googlegroups.com.

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwor...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups "AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api...@googlegroups.com.

Mark

unread,
Jun 11, 2015, 9:30:48 PM6/11/15
to adwor...@googlegroups.com, adwordsapia...@google.com
1. So if the agreed-upon method of handling 'undelete' is to always rename to a never-to-be-used-again name before removing, then why don't I see it in the documentation somewhere?

2. If it's not possible to unremove an adgroup with the same name (either via an ADD or SET or otherwise), why is this simple fact not in the documentation?

3. If the 201406 version was moving towards a goal by requiring the absurd workaround of renaming before delete, what is that goal?

4. Did the 201502 version have either a fix or a better workaround for this?

Anash P. Oommen (AdWords API Team)

unread,
Jun 12, 2015, 3:01:54 PM6/12/15
to adwor...@googlegroups.com, mark.c...@gmail.com, adwordsapia...@google.com
Hi Mark,

(1, 2, 3). The fact that you cannot have campaigns (or adgroups within a campaign) with duplicate names has been a standard behaviour in AdWords for quite a while. So having to rename a campaign / adgroup to a never-to-be-used-again name before deleting is something that becomes a requirement (to maintain the uniqueness of name) since you cannot modify a deleted campaign. I'll ask our techwriter to add this on the best practices guide. 
(4) No, the UI will also start enforcing this requirement instead.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

Reply all
Reply to author
Forward
0 new messages