hi,
This is Avinash, we are also trying to do the same, can you please 
elaborate on how we can get metrics.cost_micros connected to the campaign 
as I tried to get data from the following 
SELECT campaign.name,segments.geo_target_state,metrics.cost_micros FROM 
geographic_view WHERE campaign.name = 'xxxx' AND segments.date BETWEEN 20230601 
AND 20230630"
i get the data but it does not match the bill



On Tuesday, December 24, 2019 at 1:44:36 AM UTC+5:30 Google Ads API Forum 
Advisor Prod wrote:

> Hi Romar,
>
> Thank you for reaching out. The InvoiceService.ListInvoices() 
> <https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v2.services#google.ads.googleads.v2.services.InvoiceService>
>  
> does not support the monthly spend retrieval on the campaign level. The 
> alternative way to do it is to query the metrics.cost_micros 
> <https://developers.google.com/google-ads/api/fields/v2/campaign#metrics.cost_micros>
>  
> field from the campaign 
> <https://developers.google.com/google-ads/api/fields/v2/campaign> 
> resource and set the date range to be a monthly range. Please let me know 
> if you have any further questions.
>
> Thanks and regards,
> Xiaoming, Google Ads API Team
>
>  
>
>  
>
> ref:_00D1U1174p._5001UOF5Us: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/1c55d62b-bcf8-4dbd-8319-27176c93ef8dn%40googlegroups.com.
  • Re... Avinash Bhatt
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to