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 Ads API Team


Feedback
How was our support today?


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

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/adwords-api/CYV5M000000000000000000000000000000000000000000000SYEBAV00PcvmvynsS6-f2MzttLdSUg%40sfdc.net.
  • AP... Eden Zhou
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... Sanjay bhai kushwah official Kushwah
        • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to