API

67 views
Skip to first unread message

Eden Zhou

unread,
Jun 24, 2025, 10:07:47 PM6/24/25
to Google Ads API and AdWords API Forum
Why can't my API get thcost of Google ads?

Google Ads API Forum Advisor

unread,
Jun 25, 2025, 1:02:29 AM6/25/25
to edenzh...@gmail.com, adwor...@googlegroups.com
Hi,

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

Can you confirm whether you are trying to use the Google Ads API for retrieving the cost from your Google Ads account? If yes, I would recommend you to use the customer resource to fetch the account level cost using the Google Ads API. However, I am providing the sample GAQL query as per your requirement:
SELECT customer.id, customer.descriptive_name, customer.resource_name, metrics.cost_micros FROM customer
Note that the above GAQL query will fetch the total account level costs using the API. You can use the search or searchStream methods in making the API calls while retrieving the 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.

However, it's important to note that costs in a Google Ads account are recorded at various levels such as campaign, ad group, ad, asset, etc. To retrieve cost data for each of these levels, you’ll need to use the corresponding resources provided by the Google Ads API. So in order to assist you the correct resource, I would request you to provide an uncropped UI screenshot of your Google Ads account (with visible customer ID) by highlighting the costs and fields that you are trying to retrieve using the Google Ads API. 

You can send the details via Reply privately to the author option, or direct private reply to this email.
 

Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-06-25 05:01:43Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01rgDy9:ref" (ADR-00315635)



Sanjay bhai kushwah official Kushwah

unread,
Jun 25, 2025, 1:04:30 AM6/25/25
to ads...@forumsupport.google, edenzh...@gmail.com, adwor...@googlegroups.com

Instagram ads hide


--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups "Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/adwords-api/CYV5M000000000000000000000000000000000000000000000SYEBAV00PcvmvynsS6-f2MzttLdSUg%40sfdc.net.

Google Ads API Forum Advisor

unread,
Jun 25, 2025, 1:13:08 AM6/25/25
to sanjaybhaikushw...@gmail.com, adwor...@googlegroups.com
Hi,

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

Kindly note that the ads related issues are out of scope for the Google Ads API support team as our team specializes in Google Ads API related concerns and technical implementations only. So, I would recommend you to refer to this How to report an ad help center article and if blocking the ad isn't working then you should reach out by filling this form.


Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5

[2025-06-25 05:12:01Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01rgDy9:ref" (ADR-00315635)



Reply all
Reply to author
Forward
0 new messages