Google ads query adgroup

40 views
Skip to first unread message

Jonathan Moura

unread,
Apr 23, 2024, 7:51:00 AM4/23/24
to Google Ads API and AdWords API Forum
Hi,

Is there anyway to query Google Ads and see what the spend is for an ad group proactively?

So instead of counting the spend based on the inbound clicks and subtracting, we would just go read and ad group every x minutes and get the updated spend and click count


Google Ads API Forum Advisor

unread,
Apr 23, 2024, 1:00:57 PM4/23/24
to jonatha...@getitllc.com, adwor...@googlegroups.com
Hi,

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

Upon checking your concern, I understand that you are looking for guidance to retrieve the cost and click data from an ad_group using the Google Ads API. I would recommend you to kindly refer to the ad_group resource to retrieve the data within the Google Ads API. Please find the sample GAQL query as per your requirement:
SELECT ad_group.id, ad_group.name, ad_group.status, metrics.cost_micros, metrics.clicks FROM ad_group
You can utilize the search or searchStream methods and try making the API request to retrieve the cost and click data. Additionally, you can utilize the Google Ads Query Builder and Query Validator to build and validate the queries for retrieving the data from the Google Ads API.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02tPHhi:ref" (ADR-00232277)

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages