Re: Offline Refresh Token Can't Generate

2016-09-09 Thread Bret Williams
Hi Josh - I upgraded our AdWords library from v201601 to v201603 and we're now getting this error. Did the authentication change in this release? System.ArgumentNullException: Value cannot be null. Parameter name: Looks like your application is not configured to use OAuth2 properly.

Re: Offline Refresh Token Can't Generate

2016-04-14 Thread Pravin Yadav
Hi Josh, Yes,You are correct i did'nt set access_type="offline" in a proper manner, its working now. Thanks for your suggestion's,it was very helpful for me. Thanks & Regards, Pravin Yadav -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find

Re: Offline Refresh Token Can't Generate

2016-04-13 Thread 'Josh Radcliff (AdWords API Team)' via AdWords API Forum
Hi Pravin, Since your refresh token is becoming invalid after 3600 seconds = 1 hour, that suggests that you are *not* setting *access_type* to *offline* in your request to generate the refresh token. Please double check the step that generates the initial request

Re: Offline Refresh Token Can't Generate

2016-04-12 Thread Pravin Yadav
Hi Josh, > Ok, But in my application if i generate refresh token manually using "Google AdWords API Project OAuthTokenGenerator" and then stored it in my database and later access it in web service for 3600 (Sec) time it working properly not showing any error

Re: Offline Refresh Token Can't Generate

2016-04-12 Thread 'Josh Radcliff (AdWords API Team)' via AdWords API Forum
Hi Pravin, You mentioned "I want to generate refresh token each time", but you only need to generate a *refresh token* *once* for each user whose credentials you want to use. When generating the refresh token, you should set the *access_type* to offline

Re: Offline Refresh Token Can't Generate

2016-04-12 Thread Pravin Yadav
> > Hi, > Yes i generated it manually using OAuth2 Console's OAuth2ClientId & OAuth2ClientSecret and then it stored it in database and used it in my application but it temporary it's not useful in web service it need to generate automatically after once run Web Service

Re: Offline Refresh Token Can't Generate

2016-04-06 Thread 'Josh Radcliff (AdWords API Team)' via AdWords API Forum
Hi Pravin, The OAuth 2.0 spec provides the following description for that error: * invalid_grant* The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is

Re: Offline Refresh Token Can't Generate

2016-04-06 Thread Zweitze
You want to generate a refreshtoken once, store that in the database, then use that refreshtoken with software you wrote? Consider using OAuth2 for applications. The .NET client library has (or used to have) a sample application called OAuthTokenGenerator. I created some refreshtokens with that

Offline Refresh Token Can't Generate

2016-04-06 Thread Pravin Yadav
Hi, I am using Google AdWords Version v201603 in that taking adwords account data *Offline *using *Dot Net Web Service* that time i trying to *generate tokens* offline using(delegate) and store that in Database and then accessing this tokens for data retrieve that time access token generating