Hi, i have same problem with API v201209 Alex thanks for the tip. But is there any solution to create *individual*budget, not shared, even if it's used by one campaign only. Thanks!
On Friday, October 19, 2012 10:58:42 PM UTC+8, Alex Jones wrote: > > My Investigation so far suggests that the api libraries don't let you set > up individual budgets. > My current project emulates a single budget by generating a unique name > for the budget (in my case InternalCampaignId.GoogleCampaignId.Budget). > Then to ensure it's associated only with one campaign, I check that > referenceCount == 1 before any operations on the budget. If it fails, an > error is thrown and the operation does not happen. In most cases this is > enough to make it act as if the budget was still part of the campaign > object. If you have any questions, let me know. > > Hope this helps, > Alex Jones > > On Thursday, October 18, 2012 4:54:39 PM UTC-4, Goran Jovic wrote: >> >> The problem is, if I do that I didn't really create an individual budget, >> but just a shared budget applied to only one campaign. >> >> The reason I asked is that Adwords webapp makes the distinction between >> explicitly created shared budgets and individual budgets (or at least >> appears to), which made me wonder if there was another way to manipulate >> individual budgets. >> >> If not, I guess that is the way to go. >> >> >> On Thursday, October 18, 2012 10:08:22 PM UTC+2, David Bonner wrote: >>> >>> I believe you need to create the budget object first, using the >>> BudgetService, then associate that budgetId with the campaign. >>> >>> On Thursday, 18 October 2012 12:20:23 UTC-4, Goran Jovic wrote: >>>> >>>> How do I set *individual* (not shared) campaign budget in v201209? >>>> >>>> This was possible in v201206, but the same code fails in the new API >>>> version because budgetId field is not set: >>>> >>>> Budget budget = new Budget(); >>>> budget.setPeriod(BudgetBudgetPeriod.DAILY); >>>> budget.setAmount(new Money(null, 50000000L)); >>>> budget.setDeliveryMethod(BudgetBudgetDeliveryMethod.STANDARD); >>>> campaign.setBudget(budget); //fails with: RequiredError.REQUIRED @ >>>> operations[0].operand.budget.budgetId >>>> >>>> I assume that this feature is still available, because Adwords web >>>> application offers options for both shared and individual budgets and >>>> there >>>> aren't any fields in the Budget class to discriminate between the two >>>> types. >>>> >>>> How can I achieve that via API? Is it still possible, or is >>>> it necessary to "emulate" individual budgets by creating shareable ones >>>> and >>>> then share them only with one campaign each? >>>> >>>> Thank you for your reply, >>>> Goran >>>> >>> -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en