Re: Oauth2 issue - referring to Daniel Klimkin

2013-02-14 Thread Danial Klimkin
Answred 
in: https://groups.google.com/d/msg/adwords-api/FFHpS4KpYvQ/WYOJQRbJMMoJ


-Danial.


On Wednesday, February 13, 2013 7:01:06 PM UTC+4, hagay wrote:

 Hi,

 I am writing server side application that using adwords_api, witch mean i 
 should use OAUTH2_JWT, right?

 To create the client id i used the api console with the option of 
  'service_account'. 

 to the config file i am using:
   :authentication = {
 :method: OAUTH2_JWT
 :oauth2_issuer:  the email address i got  within the creation of the 
 this client id 
 :oauth2_secret: *notasecret* #Is it correct?
 :oauth2_keyfile: '/path/to/key.p12' # the file downloaded in the end 
 of the client id creation 
 :developer_token: 'dev_token',
 :client_customer_id: '123-456-7890' # the client_customer_id i used 
 with the adwords api
   } 

 i am getting the error:

 Signet::AuthorizationError: Authorization failed.  Server message:
 {
   error : invalid_grant
 }

 what am i doing wrong?



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




Oauth2 issue - referring to Daniel Klimkin

2013-02-13 Thread hagay
Hi,

I am writing server side application that using adwords_api, witch mean i 
should use OAUTH2_JWT, right?

To create the client id i used the api console with the option of 
 'service_account'. 

to the config file i am using:
  :authentication = {
:method: OAUTH2_JWT
:oauth2_issuer:  the email address i got  within the creation of the 
this client id 
:oauth2_secret: *notasecret* #Is it correct?
:oauth2_keyfile: '/path/to/key.p12' # the file downloaded in the end of 
the client id creation 
:developer_token: 'dev_token',
:client_customer_id: '123-456-7890' # the client_customer_id i used 
with the adwords api
  } 

i am getting the error:

Signet::AuthorizationError: Authorization failed.  Server message:
{
  error : invalid_grant
}

what am i doing wrong?

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