How to permantly delete an AdGroup

437 views
Skip to first unread message

Feike

unread,
Jul 10, 2007, 9:24:15 AM7/10/07
to AdWords API Forum
Hi,

at times I'd like to remove AdGroups. Currently I simply set the
status of an AdGroup to 'Deleted' and update the AdGroup using
updateAdGroup method of the AdGroupService.

This works, and the AdGroup gets the 'Deleted' status in Adwords.
---> But it's not deleted really isn't it? (The AdGroup just sits
there beeing present al the time).

Now, this is a problem for me, since I'd like to create a new AdGroup
having the same name as the deleted AdGroup.

This might sound silly, but it makes perfectly sense if you take in
account that most/all of my AdGroups are created automatically (ok,
there is an operator who has the final check).

So, is there another way to remove/delete the AdGroup so the name
conflict of the new and deleted AdGroups don't conflict?


Thanks,

Feike

CFJ

unread,
Jul 10, 2007, 9:29:52 AM7/10/07
to AdWords API Forum
When you set the status of the AdGroup to "deleted", also change the
name of it prior to calling updateAdGroup. Maybe give it a new name
like "old name" + "(deleted yyyymmdd)". That way, it is completely
unique, and the existing name is again available to use for a future
AdGroup.

Feike

unread,
Jul 10, 2007, 9:56:32 AM7/10/07
to AdWords API Forum
That did the trick, thank you
Reply all
Reply to author
Forward
0 new messages