The search_term view report metrics differ from campaign metrics

16 views
Skip to first unread message

Márcio Galeno

unread,
Jan 9, 2025, 9:58:26 PM (12 hours ago) Jan 9
to Google Ads API and AdWords API Forum
I'm trying to get the cost and number of clicks per search term using search_term_view. However, I noticed that the metrics in the total sum adding all clicks and cost of search term do not match the campaign metrics report.

Example:

Campaign Metrics:

Campaign ID 22045300920 (Customer ID 6429714750) on 2024-12-28 has a total of 74 clicks with a cost of R$ 215.09.

Search term metrics:

Campaign ID 22045300920 (Customer ID 6429714750) on 2024-12-28 has a total of 36 clicks with a cost of R$ 105.11.

Google Ads API Forum Advisor

unread,
3:36 AM (7 hours ago) 3:36 AM
to marcio...@gmail.com, adwor...@googlegroups.com
Hi,

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

After verifying your account '6429714750' for the Campaign level data and Search term view level data. I couldn't observe any discrepancy and the Google Ads API is returning the same values as the UI. As you are trying to compare the campaign level data with Search term view level data which are different resources. So that is the reason you are seeing the difference in metric level data.   

I have observed that you are comparing the metric data in the wrong way. Note that you should not compare metrics of the two different resources as they serve for different purposes. As the Campaign and Search term view are distinct and serve different purposes in the API. As the campaign resource provides the campaign level metrics data and the search term view with metrics aggregated by search term at the ad group level.

For example:
  • I have executed the query for the campaign '22045300920' and observed the results below which are the same as in the UI:
"query":"SELECT campaign.id, metrics.clicks, metrics.cost_micros, segments.date FROM campaign WHERE segments.date = '"'"'2024-12-28'"'"' AND campaign.id = 22045300920"
  • I have executed for Search term view also and observed the results same as in the UI:
"query":"SELECT campaign.id, segments.date, metrics.clicks, metrics.cost_micros FROM search_term_view WHERE segments.date = '"'"'2024-12-28'"'"' AND campaign.id = 22045300920","summaryRowSetting":"SUMMARY_ROW_ONLY"

I hope this helps.

 
This message is in relation to case "ref:!00D1U01174p.!5004Q02vGutY:ref" (ADR-00283755)

Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5


 




 

Reply all
Reply to author
Forward
0 new messages