Hello ,
So the below query returns a list of customer clients
Query = "SELECT
customer.id,customer.descriptive_name,customer_client.resource_name,
customer_client.descriptive_name,customer_client.client_customer,customer_client.level,customer_client.hidden
FROM customer_client"
But when i try to a customerService.GetCustomer(x) for each
customerClient, if fails for one customer_client in the iteration with the
following error
Failure:
Message: Status(StatusCode=PermissionDenied, Detail="The caller does not
have permission")
Failure: { "errors": [ { "errorCode": { "authorizationError":
"CUSTOMER_NOT_ENABLED" }, "message": "The customer can't be used because it
isn't enabled." } ] }
Then why does it bring it in the first place from Customer_Clients if i do
not have access? Even if it does how can i check the permission before i do
a GetCustomer call on it so i can prevent the call from crashing and
halting my application?
Thanks,
Vinitha.
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/be13d84b-c552-4dc5-87ad-4cf8bf2eea1c%40googlegroups.com.