For scenarios where you don't know the customer ID beforehand (e.g. if you're offering a web service to any Adwords user), you also might want to check out the CustomerService. Its "get" method will return the current, authenticated customer.
On Tuesday, June 21, 2016 at 8:07:08 AM UTC+2, Joyce Lava wrote: > > Hi, > > You may use the manager account (MCC) ID as the clientCustomerId > <https://developers.google.com/adwords/api/docs/guides/call-structure#request_headers> > > in the configuration file when running this example > <https://github.com/googleads/googleads-python-lib/blob/194d7ec0076679867a5d6d7660ae1a3e9ecf2712/examples/adwords/v201605/account_management/get_account_hierarchy.py>. > > This will return all client accounts under the MCC ID. In addition, you may > also login to AdWords UI using the MCC ID and in the upper left corner > dropdown will show the client accounts. > > If there is no client account created under the MCC ID yet, you may use > this example > <https://github.com/googleads/googleads-python-lib/blob/master/examples/adwords/v201605/account_management/create_account.py> > to > create a client account. You need to set the MCC ID in the configuration > file as the clientCustomerId when running this example. > > Best Regards, > Joyce, AdWords API Team > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords 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 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/11a16005-3398-441e-9b5f-b1ff6caae0cf%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
