Hello,

In this webpage <https://support.google.com/google-ads/answer/9237921?hl=en>, 
there's a section that shows how to view a "Billed Cost" report.
That report includes a "Served Cost" value for a campaign for a given date 
range.

Using the Google Ads API, how can I get the "Served Cost" for a campaign?

I have tried querying for the *metrics.cost_micros *(query shown below), 
but that value is slightly lower than what the report shows.
My query:
SELECT campaign.name, metrics.cost_micros
FROM campaign
WHERE segments.date >= '2023-01-02' AND
segments.date < '2023-01-03' AND
campaign.name = 'my_campaign_name'

Also, I set the summary_row_setting to be the SUMMARY_ROW_WITH_RESULTS enum 
value.

Any feedback is appreciated.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/218a10fe-13b2-42b7-9fa9-910ac5630989n%40googlegroups.com.
  • Ho... Chris Sun
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to