Re: when does oAuth access token expire?

2011-10-25 Thread Anash P. Oommen
Hi Bhavin,

I thought Java library with v201109 support was already out, looks like it 
isn't there yet. I believe the latest version will be released soon with 
README and OAuth support, otherwise feel free to ping this thread: 
http://code.google.com/p/google-api-adwords-java/issues/detail?id=50

Managing client accounts as MCCs using OAuth is pretty similar to how you do 
it using ClientLogin. First, do the OAuth dance and obtain access token 
using the MCC credentials. Then make calls to API server with the OAuth 
headers in place and clientCustomerId SOAP header set.

Here are some more useful material on OAuth in general : 

A technical preso: 
http://www.slideshare.net/leahculver/oauth-open-api-authentication
OAuth Playground: http://googlecodesamples.com/oauth_playground/. Pretty 
useful in understanding how OAuth works.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

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


Re: when does oAuth access token expire?

2011-10-24 Thread bhavin
Hi Anash,

We use Java Client Libraries but I believe API team is yet to add support 
for for oAuth for it as mentioned at the end of 
thisdiscussion.

The documentation available in getting started section does not mention 
anything about using oAuth, it would be very helpful if some literature is 
available there, especially guiding MCCs on how to go about authenticating 
on behalf of user.

Thanks and regards,
Bhavin

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


Re: when does oAuth access token expire?

2011-10-23 Thread Anash P. Oommen
Hi Bhavin,

If you are using a client library to make calls, then most client
libraries support switching from ClientLogin to AuthToken using a
configuration key. If you don't, then you have to start by finding an
oauth library that suits your needs and is on OAuth 1.0a. Some amount
of intro material on OAuth is available at 
http://code.google.com/apis/accounts/docs/OAuth.html,
and is linked to other relevant material. Essentially, you do the
oauth dance, sign the SOAP request using the access token, and set the
signature on the HTTP authorization header of the outgoing SOAP
request.

Hope this helps. Feel free to ask if you have more questions.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

On Oct 24, 7:55 am, Bhavin Shah  wrote:
> Thanks for the response Oldskool and Anash. Until now we were using
> auth-tokens in requests to various APIs. We are starting to migrate to
> v201109 and hope to use oAuth. Can you please point to couple of examples
> that use oAuth. I am unable to find, how do you supply oAuth-token in
> requests to APIs.
>
> Regards,
> Bhavin
>
> On Mon, Oct 24, 2011 at 8:05 AM, Anash P. Oommen <
>
>
>
>
>
>
>
> anash.p.oommen+fo...@google.com> wrote:
> > Hi Bhavin,
>
> > If an OAuth token is invalid / expired / revoked, you will get an
> > authentication error with appropriate error code in the API call response.
> > You can use that to take remedial actions. See
> >http://code.google.com/apis/adwords/docs/reference/v201101/CampaignSe...for
> > details.
>
> > Cheers,
> > Anash P. Oommen,
> > AdWords API Advisor.
>
> >  --
> > =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> > 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

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


Re: when does oAuth access token expire?

2011-10-23 Thread Bhavin Shah
Thanks for the response Oldskool and Anash. Until now we were using
auth-tokens in requests to various APIs. We are starting to migrate to
v201109 and hope to use oAuth. Can you please point to couple of examples
that use oAuth. I am unable to find, how do you supply oAuth-token in
requests to APIs.

Regards,
Bhavin


On Mon, Oct 24, 2011 at 8:05 AM, Anash P. Oommen <
anash.p.oommen+fo...@google.com> wrote:

> Hi Bhavin,
>
> If an OAuth token is invalid / expired / revoked, you will get an
> authentication error with appropriate error code in the API call response.
> You can use that to take remedial actions. See
> http://code.google.com/apis/adwords/docs/reference/v201101/CampaignService.AuthenticationError.html
>  for
> details.
>
> Cheers,
> Anash P. Oommen,
> AdWords API Advisor.
>
>  --
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> 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
>

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


Re: when does oAuth access token expire?

2011-10-23 Thread Anash P. Oommen
Hi Bhavin,

If an OAuth token is invalid / expired / revoked, you will get an 
authentication error with appropriate error code in the API call response. 
You can use that to take remedial actions. See 
http://code.google.com/apis/adwords/docs/reference/v201101/CampaignService.AuthenticationError.html
 for 
details.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

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


Re: when does oAuth access token expire?

2011-10-21 Thread Oldskool
An oAuth token doesn't expire by itself. The user can choose to revoke
access to your app/service whenever they want to. Until that time, the
token remains valid.

On 21 okt, 12:50, bhavin  wrote:
> Hi, with the new v201109 release of API adwords now supports oAuth1.0. But,
> I could not figure out when does an access token expire. Is there any
> time-frame associated with access-tokens? What are the best-practices
> related to it?
> Thanks in advance.

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


when does oAuth access token expire?

2011-10-21 Thread bhavin
Hi, with the new v201109 release of API adwords now supports oAuth1.0. But, 
I could not figure out when does an access token expire. Is there any 
time-frame associated with access-tokens? What are the best-practices 
related to it?
Thanks in advance.

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