get campaignBudgets && google.ads.googleads.v2

32 views
Skip to first unread message

Dima

unread,
Jun 28, 2019, 11:49:08 PM6/28/19
to AdWords API and Google Ads API Forum
Hi!
1) Now we have it like every campaign has unique budget object, but we have not saved them.
How we can get all budgets?

2) what does update google.ads.googleads.v2 mean? do we have to update our library?

Thanks a lot!

Google Ads API Forum Advisor Prod

unread,
Jul 1, 2019, 2:46:32 PM7/1/19
to adwor...@googlegroups.com
Hello Dima,

In order to fetch all the campaign budgets and the campaigns associated to them you can use campaign_budget resource name and can use the below query for example. 

Query: "SELECT campaign_budget.id, campaign_budget.name, campaign.id, campaign_budget.amount_micros, campaign_budget.period FROM campaign_budget"

The v2 is the latest version of Google Ads API, you can upgrade to that version from the client libraries here. Here is the guide to migrate from v1 to v2. Please give it a try and let me know if you have any further questions.

Regards,
Sai Teja, Google Ads API Team

ref:_00D1U1174p._5001UCa6om:ref
Reply all
Reply to author
Forward
0 new messages