Hi Peter, Thanks for responding, I've just sent debugging info in private message. However it might be not worth to check that details as I'm interested in general adswer:
The problem is I see Failure: {"errors":[{"errorCode":{"authorizationError":"CUSTOMER_NOT_ENABLED"},"message":"The customer can't be used because it isn't enabled."}],"requestId":"*"} only in debug logs. I'm following the code of this official example https://github.com/googleads/google-ads-php/blob/24928aeaf39acdab213f714b61b40828b1b8c8ec/examples/AccountManagement/GetAccountHierarchy.php and I get only 'Given value is not an instance of Google\Protobuf\Any.' message when I try - catch: try { $accounts_hierarchy += $this->createCustomerClientToHierarchy($root_customer_id); } catch (Throwable $error) { print_r($error->getMessage()); -> outputs 'Given value is not an instance of Google\Protobuf\Any.' } I wonder how can I modify the code to get exact error info ""errors":[{"errorCode":{"authorizationError":"CUSTOMER_NOT_ENABLED"},"message":"The customer can't be used because it isn't enabled."}" ? Thanks! On Monday, January 24, 2022 at 7:38:04 AM UTC+2 adsapi wrote: > Hi Oksana, > > Thank you for reaching out and for providing these details. > > However, in order for our team to investigate further the cause of the > CUSTOMER_NOT_ENABLED > <https://developers.google.com/google-ads/api/reference/rpc/v9/AuthorizationErrorEnum.AuthorizationError?hl=en#customer_not_enabled> > > error, could you also provide the complete request > <https://developers.google.com/google-ads/api/docs/concepts/field-service#request> > > and response > <https://developers.google.com/google-ads/api/docs/concepts/field-service#response> > > logs, with the request-id > <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id> > ? > > If you haven't yet, logging can be enabled by referring to this PHP > logging > <https://developers.google.com/google-ads/api/docs/client-libs/php/logging?hl=en> > > guide. You may then send the requested information via the *Reply > privately to author* option, and if this option is not available, you may > send the details directly to our googleadsa...@google.com alias instead. > > In addition, could you also confirm if the account in your API request is > cancelled > or inactive > <https://support.google.com/google-ads/answer/7619129?hl=en#:~:text=Your%20Google%20Ads%20account%20has,your%20inactive%20Google%20Ads%20account.>? > > If yes, you will need to reactivate > <https://support.google.com/google-ads/answer/2375392?hl=en#zippy=%2Cwhat-will-happen-to-my-ads-when-i-reactivate-my-account%2Cwhat-if-i-never-requested-to-cancel-my-account%2Cwhat-if-i-also-deleted-my-google-account%2Cwhat-if-i-dont-see-an-option-to-reactivate> > > them first before you may manage its details via the API. > > Best regards, > > [image: Google Logo] > Peter Laurence Napa Oliquino > Google Ads API Team > > > ref:_00D1U1174p._5004Q2VOH6Z:ref > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 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 "Google Ads API and AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/74ad7489-02ed-4901-9446-2171ae9c052cn%40googlegroups.com.