Hi Leonardo, Thank you for raising this concern to the Google Ads API Forum. We hope you are doing well today.
Please refer to the answer below: How can I get the amount spent on all my campaigns in a specific time period? I was reading the documentation, you guys don't have javascript library. Should I use reports? https://developers.google.com/google-ads/api/fields/v13/campaign#segments.date Or use the rest interface? if the answer is yes to using the rest interface, what is the correct rest resource to get all the campaigns and the amount spent? To answer your question, you can use the campaign report filtering metrics.cost_micros to get the amount spent. You can use the segments.date field specifically in the day not in time period. You may use the search and searchstream requests for REST. On the other hand, you may check this sample code if you want to use the client library. You may just edit the query there. You may also check this guide, as it describes the steps necessary to create and submit a query to the Google Ads API to get back data. If the mentioned reports and fields not getting the data that you are looking for, you may provide us the complete Google Ads UI screenshot that you want to get by API. For security purposes, you can provide it via the Reply privately to author option. If this option is not available, then send it instead on this email address [email protected]. Best regards, Google Ads API Team ref:_00D1U1174p._5004Q2jX9Nx:ref -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 on the web visit https://groups.google.com/d/msgid/adwords-api/k_JQg000000000000000000000000000000000000000000000RR770N00-GLPq_sGR3-ExNIPiTAJZA%40sfdc.net.
