Hi

We're in the process of migrating from AdWords API to the new Google Ads 
API. Our Python tool currently loops over all accounts under the MCC root 
account and downloads various reports for all accounts on a daily basis.

>From what I understand, we also have to place calls for each account again 
with the Google Ads API. Therefore, we also need to know all accounts under 
the root level MCC account, but I'm already struggling with this.

In the AdWords API we would do something like this: I would use 
ManagedCustomerService.get(selector) with an appropriate selector and then 
loop over the pages (see also here 
<https://developers.google.com/adwords/api/docs/guides/accounts-overview#managedcustomerservice>)
 
to get all accounts under the root MCC.

How would I do this with the new Google Ads API? The Python examples 
<https://github.com/googleads/google-ads-python/> do not (yet) show how to 
do this. Or is there a better way to pull reports over all accounts, which 
are not managed accounts?

FYI: Credentials & token are working (we're using the same tokens as before 
for AdWords [see here 
<https://developers.google.com/google-ads/api/docs/migration/carryover>]) 
and I can successfully pull the accessible customers 
via customer_service.list_accessible_customers().

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/0d7a3c7e-4fc9-47d0-8628-7fca4889dcde%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Migrati... Marcel Zemp
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
      • ... Marcel Zemp
        • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
          • ... Marcel Zemp
          • ... Alexander Belozerov
            • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
              • ... cv
                • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
                • ... cv
                • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum

Reply via email to