Hi Nadine,
Still my refresh token is empty.
My logs:
AdsClientLibs.RequestInfoLogs Information: 1 : host=
accounts.google.com,url=/o/oauth2/token,Content-Type: application/x-www-form-urlencoded, Host:
accounts.google.com, TimeStamp: Wed, 08 Apr 2015 15:56:00 GMT, code=4%2feZigbElUJzTfPvRzDcgvxolkIZFJ30jLAGbA3tmn_mY.snhw8qCGuzkbYFZr95uygvUB4KEymQI&client_id=524.....29-lsp7.......
6seth.apps.googleusercontent.com&client_secret=******&redirect_uri=http%3a%2f%2flocalhost%3a50246%2fOAuthLogin.aspx&grant_type=authorization_code&refresh_token=******,Result=Success
AdsClientLibs.SoapXmlLogs Information: 1 :
-----------------BEGIN API CALL---------------------
Request
-------
POST /o/oauth2/token
Content-Type: application/x-www-form-urlencoded
TimeStamp: Wed, 08 Apr 2015 15:56:00 GMT
code=4%2feZ.....QI&client_id=524....029-l......
h.apps.googleusercontent.com&client_secret=******&redirect_uri=http%3a%2f%2flocalhost%3a50246%2fOAuthLogin.aspx&grant_type=authorization_code&refresh_token=******
Response
--------
Pragma: no-cache
Content-Disposition: attachment; filename="json.txt"; filename*=UTF-8''json.txt
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Alternate-Protocol: 443:quic,p=0.5
Vary: Accept-Encoding
Transfer-Encoding: chunked
Accept-Ranges: none
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Content-Type: application/json; charset=utf-8
Date: Wed, 08 Apr 2015 13:56:01 GMT
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Server: GSE
TimeStamp: Wed, 08 Apr 2015 15:56:01 GMT
{"access_token":"******","token_type":"Bearer","expires_in":"3599","id_token":"eyJ...........................................................................................lSHBP3pZMtNCT6oSsOnaKbGUldOA"}
-----------------END API CALL-----------------------
In my opinion, the server is not sending the refresh token back.
I have a few questions.
Parameter "access_type" should not be "offline"?
In request, Post should not be "/o/oauth2/auth". In my request is "/o/oauth2/token"
Thank you for help.