Which ads api should I use?

96 views
Skip to first unread message

Zard W.

unread,
Mar 13, 2024, 11:22:13 PM3/13/24
to Google Ads API and AdWords API Forum
Hello, I want to get these data through API. Even after reading the API documentation, I still don't know which API or APIs to use. Who can help?

1.png

Google Ads API Forum Advisor

unread,
Mar 14, 2024, 2:09:26 AM3/14/24
to zardwa...@gmail.com, adwor...@googlegroups.com
Hi,

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

By reviewing your query, I understand that you need guidance for retrieving the metrics using the Google Ads API. Kindly note that as per your UI screenshot, I understand that these metrics are from the overview page in the Google Ads account. I would recommend you to kindly refer to the campaign resource to retrieve the metrics as per your requirement. Also, please find the sample GAQL query to retrieve the metrics as per your screenshot: 
"query": "SELECT metrics.clicks, metrics.cost_micros, metrics.conversions FROM campaign",
"summaryRowSetting": "SUMMARY_ROW_ONLY"
You can use the "Method: customers.googleAds.search" by passing the client customer ID, developer token and GAQL query for retrieving the data as per your requirement. 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.!5004Q02rzwLy:ref" (ADR-00227213)

Thanks,
 
Google Logo Google Ads API Team

 

Reply all
Reply to author
Forward
0 new messages