assign campaign to shared budget

25 views
Skip to first unread message

Eran Yasso

unread,
Apr 12, 2017, 1:01:55 PM4/12/17
to AdWords API Forum
Hi,

Is it possible to assign campaign to a shared budget using AdWrods API?

Thanks,

Shwetha Vastrad (AdWords API Team)

unread,
Apr 12, 2017, 2:26:14 PM4/12/17
to AdWords API Forum
Hi, 

Yes, its possible to assign a shared budget to a Campaign using AdWords API. You need to use CampaignService to perform a CampaignService.mutate() SET operation, and set the budget attribute of the campaign to a Budget object with its budgetId set to the ID of the existing budget as shown here. Please see the UsePortfolioBiddingStrategy Java example which shows how to create a portfolio bidding strategy and use it to construct a campaign. Example code in other languages is provided here.

Regards,
Shwetha, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages