Hi Jade,

Thank you for reaching out to our API support team.

However, I had to delete your initial post as your attachment contains your 
user/email address information. I will be reposting the rest of your post below 
for reference :

I was able to get the campaign report report response via API by explicitly 
calling 1 customer client id, following this example python.

How to get cost for all campaigns under 1 MCC account so that I can replicate 
the api response same with the campaign view on google ads UI (See the attached 
snapshot). I guess I should use loop to get all campaigns starting from MCC 
account to sub manager, then client customer id. Knowing that the max depth 
under MCC is 5.

Referemce:
# Script 1: get campaign performance report for 1 client customer id
https://github.com/googleads/google-ads-python/blob/master/examples/reporting/get_campaign_stats_to_csv.py

# Script 2: iterate all client customer under MCC
https://github.com/googleads/google-ads-python/blob/master/examples/account_management/get_account_hierarchy.py

Moving forward, you are correct that you can use the get_account_hierarchy 
feature first and for every client account returned, trigger a report request 
using the campaign view to retrieve the metrics.cost_micros. I hope this helps.

Best regards,

Peter Laurence Napa Oliquino
Google Ads API Team
ref:_00D1U1174p._5004Q2Iwy8C: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 
"AdWords API and Google Ads 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/32sOe000000000000000000000000000000000000000000000QV3FA100J1ldKEB1T6a62WPqUkiaIg%40sfdc.net.

Reply via email to