Thanks for your response :)

If we use the search 
<https://developers.google.com/google-ads/api/rest/reference/rest/v13/customers.googleAds/search?hl=en>
 and searchstream 
<https://developers.google.com/google-ads/api/rest/reference/rest/v13/customers.googleAds/searchStream?hl=en>
 requests 
for REST, where can I find the* customerId* path parameter?

Example below: 

[image: questionCustomerId.png]

Em quarta-feira, 8 de março de 2023 às 07:41:29 UTC-3, Google Ads API Forum 
Advisor escreveu:

> 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*
>  
> <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 
> <https://developers.google.com/google-ads/api/fields/v13/campaign>
>  filtering metrics.cost_micros 
> <https://developers.google.com/google-ads/api/fields/v13/campaign#metrics.cost_micros>
>  to 
> get the amount spent. You can use the segments.date 
> <https://developers.google.com/google-ads/api/fields/v13/campaign#segments.date>
>  field 
> specifically in the day not in time period. You may use the search 
> <https://developers.google.com/google-ads/api/rest/reference/rest/v13/customers.googleAds/search?hl=en>
>  and searchstream 
> <https://developers.google.com/google-ads/api/rest/reference/rest/v13/customers.googleAds/searchStream?hl=en>
>  requests 
> for REST.
>
> On the other hand, you may check this sample code 
> <https://developers.google.com/google-ads/api/samples/get-campaigns?hl=en> if 
> you want to use the client library. You may just edit the query there.
>
> You may also check this guide 
> <https://developers.google.com/google-ads/api/docs/reporting/overview>, 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 googleadsa...@google.com.
>
>
> Best regards,
> [image: Google Logo] 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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/a0f2e470-b621-41ba-a608-fefbe9a9c36dn%40googlegroups.com.
  • Ge... Leonardo Lins
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... Leonardo Lins
        • ... Leonardo Lins
          • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
            • ... Leonardo Lins
              • ... Leonardo Lins

Reply via email to