RE: getting search keywords and cost from api

27 views
Skip to first unread message

Google Ads API Forum Advisor

unread,
Jul 29, 2025, 8:29:42 AM7/29/25
to adwor...@googlegroups.com
Hi,

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

Yes, you can get the search keywords and cost using the keyword_view report. I would suggest you try the below sample GAQL query : 
SELECT ad_group_criterion.keyword.text,
  campaign.name,
  ad_group.name,
  ad_group_criterion.system_serving_status,
  ad_group_criterion.keyword.match_type,
  ad_group_criterion.approval_status,
  ad_group_criterion.final_urls,
  metrics.clicks,
  metrics.impressions,
  metrics.ctr,
  metrics.average_cpc,
  metrics.cost_micros
FROM keyword_view
WHERE segments.date DURING LAST_7_DAYS 
You can check this Query Cookbook to replicate the Google Ads UI screens via the Google Ads API.  

Additionally, you can utilize the Query Builder and Query Validator to build and validate your queries. To retrieve Google Ads API entities and reporting data, you can use one of these methods like GoogleAdsService.SearchStream or GoogleAdsService.Search.

I hope this helps! Let us know if you have any further questions. 

Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-07-29 12:28:51Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01sx4es:ref" (ADR-00320975)



Reply all
Reply to author
Forward
0 new messages