Simple call to enable/pause ALL campaigns in an account

1,455 views
Skip to first unread message

Borba73

unread,
May 1, 2012, 8:57:07 PM5/1/12
to adwor...@googlegroups.com
I am trying to create a simple process that will either enable/disable all my campaigns based on the out put of a database query i run against our system.
I have never worked with adwords api so im at a loss even where to start or if google will even allow me to do what im requesting.

Basically, it would be a scheduled process probably using my servers task manager.
I would query our db and based on the result issue a call to the api to pause/enable the campaigns.

I would schedule this process to run at regular intervals since i want the accounts to run based on a unique set of criteria specific to my business.

Any help would be much appreciated!!!

Evgeniy Bogdanov

unread,
May 2, 2012, 12:21:55 PM5/2/12
to adwor...@googlegroups.com
Hi.
Which programming language do you use?

Also may be better for you will be using Targeting for ad groups? You could setup it very flexible once time.
For a big numbers of campaigns this will save you a lof of money.

Regards,
Evgeniy.

Borba73

unread,
May 2, 2012, 1:57:43 PM5/2/12
to adwor...@googlegroups.com
I would prefer to have a VBScript that can do this.  Im not certain i need targeting for ad groups since i need to stop/start ALL campaigns in the account.

Dejan

Kevin Winter

unread,
May 4, 2012, 10:17:36 AM5/4/12
to adwor...@googlegroups.com
Hi Dejan,

You could adapt this code example to update the Campaign's status to paused: https://developers.google.com/adwords/api/docs/reference/latest/CampaignService.Campaign#status

- Kevin Winter
AdWords API Team
Reply all
Reply to author
Forward
0 new messages