Adjust a Shared Budget

405 views
Skip to first unread message

Greg L

unread,
May 20, 2013, 12:27:38 PM5/20/13
to adwords...@googlegroups.com
Hi all,
Ive looked high and low for this but can't seem to find an answer.

Is there anyway to adjust a "Shared" budget using scripts?

Thanks.
Greg

Kevin Winter (AdWords Scripts Team)

unread,
May 21, 2013, 2:56:55 PM5/21/13
to adwords...@googlegroups.com
Hi Greg,
  Yes, if a campaign is using a shared budget and you update that campaign's budget via scripts (campaign.setBudget), it will update the shared budget.

Note that if you are using shared budgets, you'll need to use reports to determine if you are close to the budget (i.e. add up the cost so far for all budgets using a given budgetId and subtract from budget amount).  The naive approach of subtracting campaign's Cost from its Budget value only works for unshared budgets.

- Kevin Winter
AdWords Scripts Team

Greg L

unread,
May 21, 2013, 3:06:15 PM5/21/13
to adwords...@googlegroups.com
Kevin,
Thanks for the response but I tried this and I get an error. I ran the simple script below:

function main() {
  var campaignsIterator = AdWordsApp.campaigns()
      .withCondition("Name IN ['Marketing']")
        .get();

 
  while (campaignsIterator.hasNext()) {
    var thisCampaign = campaignsIterator.next();
    thisCampaign.setBudget(65);
  }
}


and I get the following error:

Error: Cannot edit shared budget.
Attempted new value: $65.00

Any idea what I'm doing wrong?
Thanks,
Greg

Kevin Winter (AdWords Scripts Team)

unread,
May 21, 2013, 3:13:34 PM5/21/13
to adwords...@googlegroups.com
Hi Greg,
  It appears I was misinformed.  After checking deeper, scripts do not currently support modifying shared budgets.  I'm going to add this as a feature request.

- Kevin Winter
AdWords Scripts Team

Kevin Winter (AdWords Scripts Team)

unread,
May 23, 2013, 11:10:49 AM5/23/13
to adwords...@googlegroups.com
Hi Greg,

"Thanks! Just out of curisoity Do feature requests usually get implemented and is there some sort of time line for them?"

When deciding what features we work on, we incorporate both user requests as well as engineering effort to decide each features priority.  Hearing from you and others definitely make this feature more likely to be implemented.

If you read through some of the feature requests others have made, you'll see we've implemented quite a few user-requested features.

- Kevin Winter
AdWords Scripts Team

Gunnar M. Ballzus

unread,
Jun 7, 2013, 5:02:48 AM6/7/13
to adwords...@googlegroups.com
Hi Kevin,

Can you give a estimate when scripts will support modifying shared budgets? I am having the same issue as Greg.

Thanks,
Gunnar

Kevin Winter (AdWords Scripts Team)

unread,
Jun 10, 2013, 10:33:19 AM6/10/13
to adwords...@googlegroups.com
Hi Gunnar,
  We don't have any information at this time as to when we might add support, but it's definitely in our list of feature requests.

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