Closed alfie-max closed 8 years ago
The get_account_hierarchy.rb example is using the ManagedCustomerService, not the CustomerService. The ManagedCustomerService requires that you specify a Client Customer ID for the Manager account that has the client accounts within it that you want to fetch.
This doesn't seem to be a Ruby library specific issue, so I'm going to close this. Please use our forum for general AdWords API assistance.
Using the said example setup_oauth2.rb updated the adwords_api.yml with the oauth_token.
Then executing get_account_hierarchy.rb gives the following error:
Might be a duplicate of Issue #54. But updating the gem didn't help. Currently using the latest version 0.22.0
I need to call
CustomerService.get
which i believe is whatget_account_hierarchy.rb
does (Correct me if i'm wrong). So that i can get the Customer ID of the authenticated user's adwords account.