Get ad spend per campaign for vehicle inventory ads

32 views
Skip to first unread message

Nikita Rawat

unread,
Nov 22, 2024, 7:26:40 AM11/22/24
to Google Ads API and AdWords API Forum
Hi,
Can you suggest which metric can give the amount spent on ads for a campaign. As per my research, metrics.amount_served_micros can give this information at the account level but there is no such metric at the campaign level. 

If there is no such metric can this value be calculated as follows:
ad spend = metrics.clicks*metrics.average_cpc + metrics.impressions * metric.average_cpm.

Google Ads API Forum Advisor

unread,
Nov 22, 2024, 12:16:16 PM11/22/24
to nikitar...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

In order to get the amount spent on ads for a specific campaign, you can use the metrics.cost_micros metric. This metric provides the total cost of the campaign in micro-units of the currency associated with the campaign.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02vGlgz:ref" (ADR-00276512)

Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5



Nikita Rawat

unread,
Nov 25, 2024, 3:19:51 AM11/25/24
to Google Ads API and AdWords API Forum
Hi,
The metrics.cost_micros is returning the daily campaign budget. But I need the spend on the campaign and not the daily budget. Is it possible that my campaign is using up the entire daily budget and that is the reason it is equal to the cost_micros?

Google Ads API Forum Advisor

unread,
Nov 25, 2024, 6:35:54 AM11/25/24
to nikitar...@gmail.com, adwor...@googlegroups.com

Hi,

Yes, it's possible that the metrics.cost_micros is returning the daily budget if your campaign is spending up to the set daily budget limit. In order to get the actual spend on a campaign, you can use the metrics.cost_micros over an appropriate time range, like the last 7 days or last 30 days, or a custom range that fits your needs.

I hope this helps!

Reply all
Reply to author
Forward
0 new messages