Friday, 23 September 2016

Re: CustomerService in v201607

Thanks for confirm it, 


As a Workaround, (If anyone is interested ) 

We can use ManagedCustomerService.get , to achieve info about all Accounts Managed by and MCC . ( If you are implementing webFlow , be sure you include the clientCustomerId of your MCC in the SOAP Headers ) .

It would be something like this ( in Javascript )

    let selector = {
        fields: ['CustomerId', 'Name', 'CompanyName', 'CurrencyCode', 'AccountLabels'],
        ordering: [{field: 'Name', sortOrder: 'ASCENDING'}],
        paging: {startIndex: 0, numberResults: AdwordsConstants.RECOMMENDED_PAGE_SIZE}
    }

    managedCustomerService.get({serviceSelector: selector },(err,result) => {
      if(err) {
        console.error(err);
      } else {
        console.log(result);
      }
    });

Have a good day


El jueves, 22 de septiembre de 2016, 20:39:29 (UTC+2), Anthony Madrigal escribió:
Hello Jorge,

Thanks for the information. Yes, currently you will only get back the Id of the MCC account whether you omit the clientCustomerId or not. We are currently working on making all the client customer Ids returned for future versions. 

Regards,
Anthony
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@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+unsubscribe@googlegroups.com.
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/3f648994-c9e2-479b-ab2f-509f72b4d9fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment