Hi, To get the list of accounts under the MCC, see the get_account_hierarchy.py example <https://github.com/googleads/googleads-python-lib/blob/master/examples/adwords/v201409/account_management/get_account_hierarchy.py>. Once you have that list, between each reporting request you can update the customer ID of your *AdWordsClient* using the mechanism described here <https://github.com/googleads/googleads-python-lib#user-content-how-do-i-change-the-client-customer-id-at-runtime> .
Cheers, Josh, AdWords API Team On Thursday, December 4, 2014 10:29:04 AM UTC-5, Stephen wrote: > > Hi I'm new to the Adwords API. Using Python library to pull Keywords > performance report. > > Works fine when my client_customer_id in YAML file is set to an account id > but when I set it to an MCC client id it throws this error: > > googleads.errors.AdWordsReportBadRequestError: Type: > ReportDefinitionError.CUSTOMER_SERVING_TYPE_REPORT_MISMATCH > Trigger: None > Field Path: selector > > So I understand that I have to inform it that it is an MCC id and to > extract the child Id's within and iterate through them I just don't know > how to do that :( > > I can't seem to find a clear example online of this. Can anyone help? > > Thanks > > MVF Global is a trading name of Marketing VF Limited (MVF), a company > registered in England and Wales with company number 06951544, whose > registered office address is at Ryland House, 24A Ryland Road, London NW5 > 3EH, United Kingdom. VAT number: GB 976 7819 46. > This e-mail (and any attachments) is confidential and may contain personal > views which are not the views of MVF unless specifically stated. If you > have received it in error, please delete it from your system. Do not use, > copy or disclose the information in any way nor act in reliance on it and > notify the sender immediately. Please note that MVF monitors e-mails sent > or received. Further communication will signify your consent to this. -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 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 Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/24c11cfd-7510-4204-9a4c-2998d96167bc%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.