Hi Pramod,
We do not have such an example currently. But basically, you need to retrieve a campaign with CampaignService.get() method, include "BudgetId" field. After that, you can pull budget data and update it with BudgetService.mutate() call, the same was as any other API object. -Danial, AdWords API Team. On Saturday, August 3, 2013 9:11:29 AM UTC+4, pramo...@gmail.com wrote: > > Hi Danial, > > I am developing with API v201306. If you can share a piece of code that > shows how to retrieve and modify budget of a campaign then it would help me > a lot. > > Thanks, > Pramod > > On Friday, October 19, 2012 6:49:24 PM UTC+5:30, Danial Klimkin wrote: >> >> Hello Alex, >> >> >> Budget is not, but BudgetId is, see: >> >> >> https://developers.google.com/adwords/api/docs/appendix/selectorfields#v201209-CampaignService >> >> Starting from v201209 you will need to use the new BudgetService to >> update budgets: >> >> >> https://developers.google.com/adwords/api/docs/reference/latest/BudgetService >> >> >> -Danial, AdWords API Team. >> >> >> >> On Wednesday, October 17, 2012 1:02:08 AM UTC+4, Alex Jones wrote: >>> >>> I'm upgrading to v201209 API from v201109, and have hit a snag. I'm >>> using the Java libraries, and given a campaign, would like to get the >>> budget associated with it, so that the values in that associated budget can >>> be updated. Here's where the problem lies - Budget isn't a Selectable >>> field, and the Budget Object doesn't expose any information >>> about campaigns it's associated with outside of the number of campaigns >>> it's tied to. Any ideas of how to get around this without storing the >>> budgetID in a local database for later reference?] >>> >>> psuedocode of what I would like to do: >>> //set selectors and predicates >>> page = campaignService.get(selector) //returns a page of campaigns that >>> the selector >>> foreach(campaign in page){ >>> updateBudget(newBudget,campaign.getBudget()); //replaces the current >>> money the budget has available with the value in newBudget >>> } >>> //logging and storing >>> >> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 --- You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.