Hello Josh,

I just noticed that there is no approval_prompt under in the OAuth 
Playground <https://developers.google.com/oauthplayground>,
Instead it is *prompt=consent* or *prompt=select_account* or it can be 
*prompt=none*

So I guess Now *approval_prompt = Auto / Force* is deprecated..

Please provide your input on this.

*prompt=consent is working as a **approval_prompt = Force*

Thanks,
 

On Wednesday, 19 October 2016 23:18:33 UTC+5:30, cv wrote:
>
> Hello Josh,
>
> I will try with older version again and inform owner with library to look 
> into it.
>
> Thanks,
>
>
> On Wednesday, 19 October 2016 19:02:42 UTC+5:30, Josh Radcliff (AdWords 
> API Team) wrote:
>>
>> Hi,
>>
>> Thanks for confirming you're passing the correct *offline* value.
>>
>> This is looking like a client library issue. I just experimented with the 
>> *approval_prompt* in the OAuth Playground 
>> <https://developers.google.com/oauthplayground>, and it seems to be 
>> behaving properly.
>>
>> Have you recently tried it again with v10.0.0 of the client library and 
>> confirmed it still works with that version? If so, please open an issue in 
>> the PHP client library on this page 
>> <https://github.com/googleads/googleads-php-lib/issues>, and the client 
>> library owner will respond.
>>
>> Thanks,
>> Josh, AdWords API Team
>>
>> On Wednesday, October 19, 2016 at 12:56:06 AM UTC-4, cv wrote:
>>>
>>> Hello Josh,
>>>
>>> Yes, I am passing offline to true.
>>>
>>> My main concern is approval prompt is not prompting users to authorised 
>>> app forcefully.
>>>
>>> Please check this thread  for more info : 
>>> https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!topic/adwords-api/GTClxukrLCE
>>>
>>> It was working fine prior to client library v13.1.0
>>> I was using v10.0.0.
>>>
>>> My code : 
>>>         $offline = TRUE;
>>>         $extra_para = array();
>>>         $extra_para['approval_prompt'] = 'force';
>>>         $extra_para['state'] = 'info_page';
>>>
>>>         
>>>         $OAuth2Handler = $user->GetOAuth2Handler();
>>>         $authorizationUrl = 
>>> $OAuth2Handler->GetAuthorizationUrl($user->GetOAuth2Info(), $redirectUri, 
>>> $offline, $extra_para);
>>>
>>> Thanks,
>>>
>>>
>>> On Tuesday, 18 October 2016 19:57:24 UTC+5:30, Josh Radcliff (AdWords 
>>> API Team) wrote:
>>>>
>>>> Hi,
>>>>
>>>> When you get the authorization URL, do you pass *true* for the 
>>>> *offline* argument, as shown in the GetRefreshToken.php example 
>>>> <https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/Auth/GetRefreshToken.php#L46>
>>>> ?
>>>>
>>>> Without that argument set to true, you'll only be given back an *access 
>>>> token*.
>>>>
>>>> Thanks,
>>>> Josh, AdWords API Team
>>>>
>>>> On Tuesday, October 18, 2016 at 2:29:55 AM UTC-4, cv wrote:
>>>>>
>>>>> Hello All,
>>>>>
>>>>>
>>>>> The 'approval_prompt' => 'force' argument with oauth callback url is 
>>>>> not working as expected.
>>>>> If I pass the 'approval_prompt' => 'force', it is not asking user to 
>>>>> authorise app forcefully If I had login with already authorized adwords 
>>>>> account.
>>>>>
>>>>> Also It is not returning refresh_token with $user->GetOAuth2Info() 
>>>>> under below code.
>>>>>
>>>>> $OAuth2Handler = $user->GetOAuth2Handler();
>>>>>
>>>>> $user->SetOAuth2Info($OAuth2Handler->GetAccessToken($user->GetOAuth2Info(),
>>>>>  
>>>>> $code, $redirectUri));
>>>>> $user->GetOAuth2Info();
>>>>>
>>>>> Thanks,
>>>>>
>>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/6cf63b48-ddcc-4a97-91e1-2b554e0aad2d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Oauth2.0 'approva... cv
    • Re: Oauth2.0... 'Josh Radcliff (AdWords API Team)' via AdWords API Forum
      • Re: Oaut... cv
        • Re: ... 'Josh Radcliff (AdWords API Team)' via AdWords API Forum
          • ... cv
            • ... cv
              • ... 'Josh Radcliff (AdWords API Team)' via AdWords API Forum
                • ... cv
                • ... 'Josh Radcliff (AdWords API Team)' via AdWords API Forum
                • ... cv
                • ... 'Josh Radcliff (AdWords API Team)' via AdWords API Forum

Reply via email to