Hi everybody,

I am trying to get a list of client accounts in sandbox using the following 
ruby code

serviced_account_srv = @adwords.service(:ServicedAccountService, :v201101)
graph = serviced_account_srv.get(selector)
accounts = graph[:accounts]
accounts ? accounts.select { |account| !account[:can_manage_clients] 
}.map{|account| account[:login] } : []

Expected to see 5 accounts that are created automatically. But get this 
error instead
     AdwordsApi::Errors::ApiException:
       AuthenticationError.CLIENT_EMAIL_REQUIRED @ 
 Service[ServicedAccountService.get]

Providing one of client emails Ex. [email protected] eliminates error 
but I get no client accounts. That makes sense. 

The same code works just fine when run against MCC accounts. It returns all 
client accounts correctly. But i need the same working against sandbox 
environment. Please help!

Here is my credentials configuration.

:authentication:
  :developer_token : [email protected]++usa
  :password : password
  :user_agent : something
  :email : [email protected]
  :client_email : '[email protected]' # with this line I sure get 0 
client accounts... removing it causes error to be thrown by server
:service:
  :environment : SANDBOX 
  :use_ruby_names : true

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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

Reply via email to