If you are trying to run cross client reports by using the Managed Customer
Service, make sure you include CanManageClients as a field in your selector
and check this value to see if the ManagedCustomer is an MCC.
This code is for v201209.
AdWordsAppConfig config = new AdWordsAppConfig();
AdWordsUser user = new AdWordsUser();
ManagedCustomerService saSvc =
(ManagedCustomerService)user.GetService(AdWordsService.v201209.ManagedCustomerService);
Selector selector = new Selector();
selector.fields = new String[] { "Login", "CustomerId",
"Name", "CanManageClients" };
// Get serviced account graph.
ManagedCustomerPage page = saSvc.get(selector);
foreach (ManagedCustomer account in page.entries)
{
if (!account.canManageClients)
{
// do some stuff
}
}
On Thursday, February 16, 2012 11:29:29 PM UTC-8, Sri wrote:
>
> Hi,
> I am also having a similar issue. This is the response I get:
>
> !!!2|||-1|||[ReportDefinitionError.CUSTOMER_SERVING_TYPE_REPORT_MISMATCH @
> selector]???
>
> How do I know if my clientCustomerId is an MCC account? and how do I get
> around this issue.
>
> Any help is really appreciated.
>
> Sri.
>
>
>
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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