Hi Ivan,

Can you confirm you've followed the instructions listed in the OAuth2 wiki 
page <https://code.google.com/p/google-api-ads-ruby/wiki/OAuth2>? 
Unfortunately this error doesn't show much information on what the issue 
is. Are you able to make a successful request using OAuth2? Can you enable 
logging<https://code.google.com/p/google-api-ads-ruby/source/browse/adwords_api/README#123>and
 provide us with a recent 
requestId to allow us to investigate further.

Regards,

- Paul, AdWords API Team.

On Tuesday, 10 September 2013 06:37:20 UTC+1, Ivan Bondarenko wrote:
>
> *Hi, all!*
> *I want get next request:*
>
> *google =  AdwordsApi::Api.new
> *
> *srv = google.service(:ManagedCustomerService, :v201306)
> *
> *selector = {:fields => ['CustomerId']}
> *
> *graph = g.use_mcc() {srv.get(selector)}*
>
> *My adwords_api.yml :*
> *---*
> *:authentication:*
> *  :method: OAUTH2_JWT*
> *  :oauth2_issuer: <Email address from Service account in my Google APIs 
> Console>*
> *  :oauth2_secret: notasecret*
> *  :oauth2_keyfile: <path to my private key>*
> *  :developer_token: <dev token>*
> *  :client_customer_id: <id from my Google Adwords account>*
> *  :user_agent: <some name>*
> *:service:*
> *  :environment: PRODUCTION*
>
> *But I have in response ** the next exception:*
> AdwordsApi::V201306::ManagedCustomerService::ApiException: 
> AdwordsApi::V201306::ManagedCustomerService::ApiException
> from 
> /home/bond/.rvm/gems/ruby-1.9.3-p448@rails3/gems/google-ads-common-0.9.3/lib/ads_common/savon_service.rb:113:in
>  
> `handle_errors'
> from 
> /home/bond/.rvm/gems/ruby-1.9.3-p448@rails3/gems/google-ads-common-0.9.3/lib/ads_common/savon_service.rb:83:in
>  
> `execute_action'
> from 
> /home/bond/.rvm/gems/ruby-1.9.3-p448@rails3/gems/google-adwords-api-0.9.3/lib/adwords_api/v201306/managed_customer_service.rb:21:in
>  
> `get'
> from (irb):29:in `block in irb_binding'
> from 
> /home/bond/.rvm/gems/ruby-1.9.3-p448@rails3/gems/google-adwords-api-0.9.3/lib/adwords_api.rb:187:in
>  
> `call'
> from 
> /home/bond/.rvm/gems/ruby-1.9.3-p448@rails3/gems/google-adwords-api-0.9.3/lib/adwords_api.rb:187:in
>  
> `run_with_temporary_flag'
> from 
> /home/bond/.rvm/gems/ruby-1.9.3-p448@rails3/gems/google-adwords-api-0.9.3/lib/adwords_api.rb:92:in
>  
> `use_mcc'
> from (irb):29
> from 
> /home/bond/.rvm/gems/ruby-1.9.3-p448@rails3/gems/railties-3.2.14/lib/rails/commands/console.rb:47:in
>  
> `start'
> from 
> /home/bond/.rvm/gems/ruby-1.9.3-p448@rails3/gems/railties-3.2.14/lib/rails/commands/console.rb:8:in
>  
> `start'
> from 
> /home/bond/.rvm/gems/ruby-1.9.3-p448@rails3/gems/railties-3.2.14/lib/rails/commands.rb:41:in
>  
> `<top (required)>'
> from script/rails:6:in `require'
> from script/rails:6:in `<main>'
>
> *When I try another request for get some data from Google Adwords API 
> (e.g. from :CampaignService) I get similar exception.*
> *Why so? Any ideas?
> *
> *Thanks!*
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to