Deleting a text ad in order to change a field

146 views
Skip to first unread message

ComputerPsi

unread,
Dec 15, 2009, 12:20:11 PM12/15/09
to AdWords API Forum
From what I understand, in order to change a text ad, you must delete
the original, and then create a new text ad.

I have the whole v200909 code from http://code.google.com/p/google-api-adwords-php/downloads/list.
Looking through the sample, I was able to add an ad group with a text
ad and keywords.
However I want to now modify a text ad that was created. In
UpdateAd.php, I found that it pauses the ad. From what I understand
"SET"ing it to "DISABLED" won't remove it.
Should I use the "REMOVE" command instead of "SET"? Will this allow me
to create an alternative text ad with the same name as this removed
one?
When using "REMOVE" operator in AdGroupAdOperation, what should the
status be set to for AdGroupAd? It has options ENABLED, PAUSED, and
DISABLED.

Thank you,
Ven

ComputerPsi

unread,
Dec 16, 2009, 7:04:37 AM12/16/09
to AdWords API Forum
Bounce. Would anybody like to answer my post? :)

On Dec 15, 12:20 pm, ComputerPsi <vilme...@gmail.com> wrote:
> From what I understand, in order to change a text ad, you must delete
> the original, and then create a new text ad.
>
> I have the whole v200909 code fromhttp://code.google.com/p/google-api-adwords-php/downloads/list.

sem...@proventactics.com

unread,
Dec 16, 2009, 3:52:32 PM12/16/09
to AdWords API Forum
I am struggling with the same issue here. I think using the REMOVE
operator might work even I haven't tried it yet. It might let you
create a new ad but I think you'll probably loose all the stats and
related data. In AdWords Interface, if you click on editing an ad, a
popup notification says:

You can edit this ad.
Changing the ad will delete the existing ad and create a new one. The
new ad will begin with statistics at zero, and statistics for the old
ad will be shown in the "Deleted ads" row.

Cheers!

AdWords API Advisor

unread,
Dec 17, 2009, 10:09:46 AM12/17/09
to AdWords API Forum
Hi Ven,

For AdGroupAds, setting the status to DISABLED or using the REMOVE
operator has the same effect. AdGroupAds can never be fully deleted,
and they will always exist in your account with the status DISABLED.
There is no name uniqueness requirement for ads so there should never
be a problem creating a new ad with similar settings. The new ad will
not share any of the history with the old ad.

Best,
- Eric Koleda, AdWords API Team

On Dec 16, 3:52 pm, "sem...@proventactics.com"

HK

unread,
Dec 18, 2009, 5:19:08 PM12/18/09
to AdWords API Forum
I have a related follow-up question to this thread. In v13, you could
change the status of a disabled ad back to let's say active. However,
in v200909, it seems that this is no longer allowed. Can someone
confirm this please as it unfortunately will require a lot of changes
in our software which was using this v13 behavior extensively.

It was a very handy option to have in a scenario where you wanted to
update an ad, for example the headline, by first disabling the old ad
and then creating a new ad. If creating the new ad for some reason
failed, you could always revert back to the previous one by flipping
the status from disabled to active again.

Thanks
Hanhs

On Dec 17, 7:09 am, AdWords API Advisor <adwordsapiadvi...@google.com>
wrote:
> Hi Ven,
>
> For AdGroupAds, setting thestatustoDISABLEDor using the REMOVE


> operator has the same effect.  AdGroupAds can never be fully deleted,
> and they will always exist in your account with thestatusDISABLED.
> There is no name uniqueness requirement for ads so there should never
> be a problem creating a newadwith similar settings.  The newadwill
> not share any of the history with the oldad.
>
> Best,
> - Eric Koleda, AdWords API Team
>
> On Dec 16, 3:52 pm, "sem...@proventactics.com"
>
>
>
> <sem...@proventactics.com> wrote:
> > I am struggling with the same issue here. I think using the REMOVE
> > operator might work even I haven't tried it yet. It might let you

> > create a newadbut I think you'll probably loose all the stats and
> > related data. In AdWords Interface, if you click on editing anad, a


> > popup notification says:
>
> > You can edit thisad.

> > Changing theadwill delete the existingadand create a new one. The
> > newadwill begin with statistics at zero, and statistics for the old
> >adwill be shown in the "Deleted ads" row.


>
> > Cheers!
>
> > On Dec 16, 2:04 pm, ComputerPsi <vilme...@gmail.com> wrote:
>
> > > Bounce. Would anybody like to answer my post? :)
>
> > > On Dec 15, 12:20 pm, ComputerPsi <vilme...@gmail.com> wrote:
>

> > > > From what I understand, in order to change a textad, you must delete


> > > > the original, and then create a new textad.
>
> > > > I have the whole v200909 code fromhttp://code.google.com/p/google-api-adwords-php/downloads/list.
> > > > Looking through the sample, I was able to add anadgroup with a text

> > > >adand keywords.
> > > > However I want to now modify a textadthat was created. In
> > > > UpdateAd.php, I found that it pauses thead. From what I understand


> > > > "SET"ing it to "DISABLED" won't remove it.
> > > > Should I use the "REMOVE" command instead of "SET"? Will this allow me

> > > > to create an alternative textadwith the same name as this removed


> > > > one?
> > > > When using "REMOVE" operator in AdGroupAdOperation, what should the

> > > >statusbe set to for AdGroupAd? It has options ENABLED, PAUSED, and
> > > >DISABLED.
>
> > > > Thank you,
> > > > Ven- Hide quoted text -
>
> - Show quoted text -

JosipK

unread,
Dec 21, 2009, 5:56:07 AM12/21/09
to AdWords API Forum
Hi,

Setting AdGroupAd.Status property to Disable is equal as deleting it
(using remove operator).

Yes, if you delete/disable AdGroupAd then you can't change it anymore.
When I try it, I get AdGroupAdError ->
CANNOT_OPERATE_ON_DELETED_ADGROUPAD (Deleted ads may not be modified).

Instead of setting status to Disable, you could set it to Pause. And
if adding of new AdGroupAd doesn't succeed, you could revert old
AdGroupAd from paused to active.

When we update some unmutable property (like headline) we first try to
add new AdGroupAd -> if we succeed in that, then we delete old
AdGroupAd. It's very unlikely that adding of new AdGroupAd succeeds,
and then removing fails (it's possible, but very unlikely).

Regards,
--
Josip
GemBox.Ppc - http://www.GemBoxSoftware.com/Ppc/Overview.htm - Advanced
AdWords API for .NET

JosipK

unread,
Dec 21, 2009, 6:06:34 AM12/21/09
to AdWords API Forum
I have forgotten one thing...

In one API call you can add new AdGroupAd and delete the old one. API
call (for example AdGroupAdService.mutate method) would complete pass,
or would complete fail. So, if you need to change headline text, then
the best thing is that in one call you add new and delete old
AdGroupAd (so you don't need any version for reverting). We use that
approach, and it shows as the best.

Josip

On Dec 21, 11:56 am, JosipK <gemtest...@gmail.com> wrote:
> Hi,
>
> Setting AdGroupAd.Status property to Disable is equal as deleting it
> (using remove operator).
>
> Yes, if you delete/disable AdGroupAd then you can't change it anymore.
> When I try it, I get AdGroupAdError ->
> CANNOT_OPERATE_ON_DELETED_ADGROUPAD (Deleted ads may not be modified).
>
> Instead of setting status to Disable, you could set it to Pause. And
> if adding of new AdGroupAd doesn't succeed, you could revert old
> AdGroupAd from paused to active.
>
> When we update some unmutable property (like headline) we first try to
> add new AdGroupAd -> if we succeed in that, then we delete old
> AdGroupAd. It's very unlikely that adding of new AdGroupAd succeeds,
> and then removing fails (it's possible, but very unlikely).
>
> Regards,
> --
> Josip

> GemBox.Ppc -http://www.GemBoxSoftware.com/Ppc/Overview.htm- Advanced

HK

unread,
Dec 21, 2009, 11:10:04 AM12/21/09
to AdWords API Forum
Josip,

Thanks, that's an interesting approach with combining the addition and
deletion in one call. I will look into that.

We typically edit a number of ads in an ad group at a time, and
setting an ad to paused first, won't work if you run up against the
maximum number of ads allowed in ad ad group, which I think is 20 if I
remember correctly.

Thanks
Hans

> > > > - Show quoted text -- Hide quoted text -

AdWords API Advisor

unread,
Dec 21, 2009, 11:30:40 AM12/21/09
to AdWords API Forum
Hi Hanhs,

The v2009 behavior of not being able to undelete an ad is consistent
with the AdWords interface, which also prohibits that action. Josip
provides some good advice here, which is that you can put off deleting
an ad until after the new ad was successfully created, or perhaps
perform the ADD and REMOVE operation in the same mutate call to
guarantee that the actions are atomic.

Best,
- Eric

Reply all
Reply to author
Forward
0 new messages