Hello! I'm having an issue while iterating accessible accounts.
I'm using list_accessible_customers() to get all customers user has access to like so:
accessible_customers = customer_service.list_accessible_customers()
Then building the resource_names list as stated in the official documentation:
resource_names = [resource_name for resource_name in accessible_customers.resource_names]
Once I have resource_names i can iterate through each one, either to get_account_hierarchy and print it to console, or get_account_information following the python library example documentation.
It all works OK until I reach an account in resource_names which is either deactivated or not yet enablesd
See error below:
Request made: ClientCustomerId: 1234567890, Host: googleads.googleapis.com, Method: /google.ads.googleads.v15.services.GoogleAdsService/Search, RequestId: uyP7nMha3tO3gol71vC7jA, IsFault: True, FaultMessage: The customer account can't be accessed because it is not yet enabled or has been deactivated.
What is the workaround for this? I've tried to validate account status prior to the call, but it's throwing the same error. What am I missing here?
Thanks in advance for your help.