I am not able to get total budget and spent cost of a campaign.

78 views
Skip to first unread message

Seventh Foundation

unread,
Jan 9, 2018, 11:04:24 PM1/9/18
to AdWords API Forum
Can you please let me know, how I can get the total budget and spent cost campaign.

Vincent Racaza (AdWords API Team)

unread,
Jan 10, 2018, 3:10:49 AM1/10/18
to AdWords API Forum
Hi,

You can use the Cost and Amount metrics of Campaign Performance Report in getting the cost and daily total budget of your campaign. You can refer to this guide on how to generate reports via the API and to these Java reporting examples (available to other languages that we support) for reference.

Let me know if you have further clarifications.

Thanks,
Vincent
AdWords API Team

Seventh Foundation

unread,
Jan 10, 2018, 7:58:59 PM1/10/18
to AdWords API Forum
I want to get following thing in campaign
total_budget=the total budget that should have been spent in this campaign up till now
total_spent=the total budget that was really spent in this campaign up till now.

I am able to get daily budget but not able to get total budget and total spent cost of a campaign up till now

Vincent Racaza (AdWords API Team)

unread,
Jan 11, 2018, 2:17:34 AM1/11/18
to AdWords API Forum
Hi,

My apologies for the confusion. In a campaign, you can only get the daily budget via the Amount metric as I have previously said. You cannot get the total running budget on a campaign via the Campaign Performance Report. However, you can get the account's total budget using BudgetOrderService. Check this guide for more information regarding this.

In regards to the total spent/cost of a campaign, the Campaign Performance Report will automatically sum your cost based on your date range. For example, If your date range is a one month range, then the Cost metric will return the total of your one month cost for that campaign.
Reply all
Reply to author
Forward
0 new messages