The title mainly says it all, but we are migrating from clientLogin to
OAuth2 for our AdWords code and I don't see anywhere in the Perl client
library where I can refresh my token programmatically, here is what I have
at the moment:
$self->{google_client} = Google::Ads::AdWords::Client->new(
{ email => $self->{email},
password => $self->{password},
client_id => $self->{client_id},
user_agent => $self->{user_agent},
developer_token => $self->{developer_token},
alternate_url => $self->{url},
version => "v201302",
}
);
# set OAUTH2_PARAMS
$self->{google_client}->get_oauth_2_handler()->set_client_id(
OAUTH2_CLIENTID()
);
$self->{google_client}->get_oauth_2_handler()->set_client_secret(
OAUTH2_CLIENTSECRET()
);
$self->{google_client}->get_oauth_2_handler()->set_access_token(
OAUTH2_REFRESHTOKEN()
);
$self->{google_client}->get_oauth_2_handler()->set_refresh_token(
'<SOME_TOKEN>'
);
1) Is there some way to use this already created object to refresh my
access token?
2) What about processes that might execute *longer* than the lifetime of an
access_token, what is the best practice for handling that token refresh?
Thanks.
Hunter.
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.