Interesting. Thanks for reporting. I'll check if something has changed with 
the new signet version.


-Danial.


On Tuesday, April 14, 2015 at 7:01:24 PM UTC+3, Seth wrote:
>
> Ok so i refreshed and im getting the same error. However, when I change 
> `issued_at` back to blank the request works.
>
> On Tuesday, April 14, 2015 at 11:54:41 AM UTC-4, Danial Klimkin wrote:
>>
>> Hello Seth,
>>
>>
>> I suggest re-generating your refresh token. From the error below it looks 
>> like the refresh is triggered correctly but the token was not valid.
>>
>>
>> -Danial.
>>
>>
>> On Tuesday, April 14, 2015 at 6:47:16 PM UTC+3, Seth wrote:
>>>
>>> Ok now im getting `rescue in refresh_token!': OAuth2 token refresh 
>>> failed (AdsCommon::Errors::AuthError)
>>>
>>> On Tuesday, April 14, 2015 at 11:40:16 AM UTC-4, Danial Klimkin wrote:
>>>>
>>>> Try setting it to the timestamp of token generation, or to an old date. 
>>>> Eg.:
>>>>
>>>>     :oauth2_token:
>>>>     :access_token: ****
>>>>     :refresh_token: ****
>>>>     :issued_at: 2014-05-13 14:29:18.110177979 +04:00
>>>>
>>>>
>>>> -Danial.
>>>>
>>>> On Tuesday, April 14, 2015 at 6:34:30 PM UTC+3, Seth wrote:
>>>>>
>>>>> right now its blank
>>>>>
>>>>> On Tuesday, April 14, 2015 at 11:31:40 AM UTC-4, Danial Klimkin wrote:
>>>>>>
>>>>>> Do you also have :issued_at: defined? What is its value?
>>>>>>
>>>>>>
>>>>>> -Danial.
>>>>>>
>>>>>> On Tuesday, April 14, 2015 at 6:12:28 PM UTC+3, Seth wrote:
>>>>>>>
>>>>>>> Yes, so when I go on OAuth 2.0 Playground and get new tokens my app 
>>>>>>> runs (using both tokens in my yml file).  However, once the token 
>>>>>>> expires 
>>>>>>> it stops working and i'm getting the 
>>>>>>> AuthenticationError.OAUTH_TOKEN_INVALID error.
>>>>>>>
>>>>>>> Not sure if this makes a difference, but, I am keeping the 
>>>>>>> `adwords_api.yml` in my apps root directory and passing as a param like 
>>>>>>> this `AdwordsApi::Api.new("./adwords_api.yml")`. 
>>>>>>>
>>>>>>> On Tuesday, April 14, 2015 at 11:02:43 AM UTC-4, Danial Klimkin 
>>>>>>> wrote:
>>>>>>>>
>>>>>>>> I'll try to create a fresh setup and reproduce.
>>>>>>>>
>>>>>>>> In the meanwhile, can you describe the original issue in more 
>>>>>>>> detail? Did some of the request succeed but then stop?
>>>>>>>>
>>>>>>>>
>>>>>>>> -Danial.
>>>>>>>>
>>>>>>>>
>>>>>>>> On Tuesday, April 14, 2015 at 5:57:45 PM UTC+3, Seth wrote:
>>>>>>>>>
>>>>>>>>> Sorry i meant `access_token`, I always had both the `access_token` 
>>>>>>>>> and `refresh_token`. I also just created a sample app with a fresh 
>>>>>>>>> install 
>>>>>>>>> of everything and its not working without the `access_token`
>>>>>>>>>
>>>>>>>>> On Tuesday, April 14, 2015 at 10:53:25 AM UTC-4, Danial Klimkin 
>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>> Yes, you do need refresh_token on the config.
>>>>>>>>>>
>>>>>>>>>> Please let me also now the ads-common and signet gem versions you 
>>>>>>>>>> are using.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> -Danial.
>>>>>>>>>>
>>>>>>>>>> On Tuesday, April 14, 2015 at 5:48:32 PM UTC+3, Seth wrote:
>>>>>>>>>>>
>>>>>>>>>>> Yeah, thats all the same. But until now i always had the 
>>>>>>>>>>> `refresh_token` as well. When did that change?
>>>>>>>>>>>
>>>>>>>>>>> On Tuesday, April 14, 2015 at 10:45:45 AM UTC-4, Danial Klimkin 
>>>>>>>>>>> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>> Hi Seth,
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Did you make any changes to the configuration file between 
>>>>>>>>>>>> versions? There were no auth-affecting changes so the new version 
>>>>>>>>>>>> should 
>>>>>>>>>>>> work the same way with the same configuration file.
>>>>>>>>>>>>
>>>>>>>>>>>> Make sure you still have 
>>>>>>>>>>>>   :oauth2_client_id
>>>>>>>>>>>>   :oauth2_client_secret
>>>>>>>>>>>>   :oauth2_token
>>>>>>>>>>>>     :refresh_token
>>>>>>>>>>>>
>>>>>>>>>>>> defined.
>>>>>>>>>>>>
>>>>>>>>>>>> Note, refresh token is a subkey of oauth2_token.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> -Danial, AdWords API Team.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On Tuesday, April 14, 2015 at 5:40:10 PM UTC+3, Seth wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>> now im getting this 
>>>>>>>>>>>>> error AuthenticationError.OAUTH_TOKEN_HEADER_INVALID
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Tuesday, April 14, 2015 at 10:32:54 AM UTC-4, Danial 
>>>>>>>>>>>>> Klimkin wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Please make sure you don't have access_token specified in the 
>>>>>>>>>>>>>> adwords_api.yml, just the refresh_token.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> -Danial.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Tuesday, April 14, 2015 at 5:26:26 PM UTC+3, Seth wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Ruby
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On Tuesday, April 14, 2015 at 10:25:34 AM UTC-4, Seth wrote:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> google-adwords-api (0.14.2)
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On Tuesday, April 14, 2015 at 10:21:23 AM UTC-4, Danial 
>>>>>>>>>>>>>>>> Klimkin wrote:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Hello Seth,
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> What client library are you using?
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> -Danial, AdWords API Team.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> On Monday, April 13, 2015 at 11:48:47 PM UTC+3, Seth wrote:
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Hey,
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> I just updated my app to V201502 a few days ago and now 
>>>>>>>>>>>>>>>>>> the access token no longer gets automatically refreshed. Any 
>>>>>>>>>>>>>>>>>> idea why that 
>>>>>>>>>>>>>>>>>> might be?
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Thanks,
>>>>>>>>>>>>>>>>>> Seth
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/f73b4aac-2265-4fda-82b0-d2423b5ef059%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to