As always, thanks very much for taking the time to help.

Cheers!

On Tuesday, August 20, 2013 3:26:13 PM UTC+1, Takeshi Hagikura (AdWords API 
Team) wrote:
>
> Hi Alan,
>
> > Just one more question  if I may, how long will the refresh_token last 
> for?
> refresh_token never expires unless you explicitly revoke the API access. 
>
> Best,
> - Takeshi, 
>
> On Tuesday, August 20, 2013 9:00:52 PM UTC+9, Alan Coleman wrote:
>>
>> Thanks Takeshi, your help is always appreciated.
>>
>> I was confused about the refresh_token procedure.
>>
>> Just one more question  if I may, how long will the refresh_token last 
>> for?
>>
>> Many thanks. 
>>
>> On Tuesday, August 20, 2013 12:04:36 PM UTC+1, Takeshi Hagikura (AdWords 
>> API Team) wrote:
>>>
>>> As in this 
>>> guide<https://code.google.com/p/google-api-adwords-php/wiki/OAuth2>, 
>>> I recommend to store refresh_token in your auth.ini.
>>> Once you store refresh_token, you'll not be asked for email and password 
>>> pair.
>>>
>>> Please see the "Running OAuth2.0 example" section and run this 
>>> GetRefreshToken.php<https://code.google.com/p/google-api-adwords-php/source/browse/examples/AdWords/Auth/GetRefreshToken.php>
>>>  as 
>>> in the guide.
>>>
>>> When you paste the authentication URL and if you haven't logged in with 
>>> the account, being asked email and password is the normal behavior. 
>>> After you login, you can grant access like in the 
>>> screenshot<https://lh3.googleusercontent.com/-JT98Oob54ro/UGBKTDeCjkI/AAAAAAAAAHM/oU7D0D1nJc0/s716/blog1.png>
>>> .
>>>
>>> After you get refresh_token, update your auth.ini, then it's all set. 
>>> Please run any other examples such as 
>>> GetCampaigns<https://code.google.com/p/google-api-adwords-php/source/browse/examples/AdWords/v201306/BasicOperations/GetCampaigns.php>
>>> .
>>>
>>> > Also, I am correct in thinking that Client Login has been deprecated 
>>> in v201306?
>>> Right. Actually it has been 
>>> deprecated<https://developers.google.com/accounts/docs/AuthForInstalledApps>
>>>  more 
>>> than a year ago.
>>>
>>> Best,
>>> - Takeshi, AdWords API Team
>>>
>>> On Tuesday, August 20, 2013 6:44:44 PM UTC+9, Alan Coleman wrote:
>>>>
>>>> Hi Takeshi,
>>>>
>>>> Thanks for your reply. I'm running a script that verifies an AdWords Ad 
>>>> against the API before storing it locally, simple stuff and it works with 
>>>> my current Client Login set up.
>>>>
>>>> I've been through all the OAuth2 documentation and it all makes sense. 
>>>> I've created the application identifier and added my client_id and 
>>>> client_secret pair to my auth.ini and removed email and password 
>>>> associated 
>>>> with Client Login. Is this all I need to do to implement OAuth2 ? If so, I 
>>>> don't understand why I'm still be ing asked for the email and password 
>>>> pair.
>>>>
>>>> Also, I am correct in thinking that Client Login has been deprecated in 
>>>> v201306?
>>>>
>>>> Many thanks
>>>>
>>>> On Tuesday, August 20, 2013 10:12:19 AM UTC+1, Takeshi Hagikura 
>>>> (AdWords API Team) wrote:
>>>>>
>>>>> Hi Alan, 
>>>>>
>>>>> What script are you running when you see a validation error?
>>>>> Please see this 
>>>>> guide<https://code.google.com/p/google-api-adwords-php/wiki/OAuth2> on 
>>>>> OAuth2 introduction with PHP. 
>>>>> If you have further questions, please let us know.
>>>>>
>>>>> Best,
>>>>> - Takeshi, AdWords API Team
>>>>>
>>>>> On Monday, August 19, 2013 2:50:20 AM UTC+9, Alan Coleman wrote:
>>>>>>
>>>>>> Hello everyone,
>>>>>>
>>>>>> I'm moving my AdWords app from Client Login to OAuth2 authentication 
>>>>>> in preparation to migrate to v201306.
>>>>>>
>>>>>> I've read the documentation and understand the concept of OAuth2 and 
>>>>>> have experimented successfully with a little Google+ login script.
>>>>>>
>>>>>> I'm confused about how my app will use OAuth2 instead of Client 
>>>>>> Login. 
>>>>>>
>>>>>> In *auth.ini* I've replaced the* Client Login'*s *email* and *
>>>>>> password* with *OAuth2*'s *client_id* and *client_secret* from the 
>>>>>> api console but I immediately receive a validation error asking for 
>>>>>> email 
>>>>>> and password values.
>>>>>>
>>>>>> I was under the impression that the existence of client_id and 
>>>>>> client_secret would prompt the use of OAuth2 ?
>>>>>>
>>>>>> As always any pointers would be greatly appreciated.
>>>>>>
>>>>>> I'm using library: adwords_api_php_4.2.5 version: v201302
>>>>>>
>>>>>> Many thanks
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>  
>>>>>>
>>>>>

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

Reply via email to