Cant change Campaign Budget

62 views
Skip to first unread message

Michael D

unread,
Apr 21, 2015, 6:39:22 AM4/21/15
to adwor...@googlegroups.com
Hi,

Im trying to change the budget of a campaign. Im setting the amount in money and the budgetId in budget. Butr it doesnt work. Do I forgot something?

            //create Campaign with Status
            Campaign campaign = new Campaign();
            campaign.id = CurrentCampaignId;
            campaign.idSpecified = true;

            var money = new Money();
            money.microAmount = amount;
            money.microAmountSpecified = true;

            var budget = new Budget();
            budget.budgetId = CurrentBudgetId;
            budget.budgetIdSpecified = true;

            campaign.budget = budget;
            campaign.budget.amount = money;  

            
            //Create the Operation
            CampaignOperation operation = new CampaignOperation();
            operation.operand = campaign;
            operation.@operator = Operator.SET;
            operation.operatorSpecified = true;


Thank you very much.

Josh Radcliff (AdWords API Team)

unread,
Apr 21, 2015, 11:32:41 AM4/21/15
to adwor...@googlegroups.com
Hi,

To create, modify, and delete budgets, please use the BudgetService. See our budgets guide for more information.

Cheers,
Josh, AdWords API Team

Michael D

unread,
Apr 22, 2015, 9:21:33 AM4/22/15
to adwor...@googlegroups.com
Hi,

Thank you. Is BudgetService also to change MaxCpc in AdGroups and Keywords?

Cheers,

Michael

Josh Radcliff (AdWords API Team)

unread,
Apr 22, 2015, 9:40:33 AM4/22/15
to adwor...@googlegroups.com
Hi Michael,

Your bids (e.g., max CPC) are set via changes to the BiddingStrategyConfiguration of the campaign, ad group, or ad group criterion.

Please see our bidding guide for more details on bidding and the AdWords API. The UpdateKeyword.vb code example also shows how to update the bid for a given keyword (AdGroupCriterion).

Cheers,
Josh, AdWords API Team
Reply all
Reply to author
Forward
0 new messages