Hi.
I'm trying to use OAuth 2 for DownloadClientReport in adwords, but i'm not
getting Authorization.
The error is Authorization Error.USER PERMISSION DENIED!
My code:
private static void DoAuth2Authorization(AdWordsUser user)
{
// Since we are using a console application, set the callback
url to null.
user.Config.OAuth2RedirectUri = null;
AdsOAuthProviderForApplications oAuth2Provider =
(user.OAuthProvider as AdsOAuthProviderForApplications);
// Get the authorization url.
string authorizationUrl = oAuth2Provider.GetAuthorizationUrl();
Console.WriteLine("Open a fresh web browser and navigate to
\n\n{0}\n\n. You will be " +
"prompted to login and then authorize this application to
make calls to the " +
"AdWords API. Once approved, you will be presented with an
authorization code.",
authorizationUrl);
// Accept the OAuth2 authorization code from the user.
Console.Write("Enter the authorization code :");
string authorizationCode = Console.ReadLine();
// Fetch the access and refresh tokens.
oAuth2Provider.FetchAccessAndRefreshTokens(authorizationCode);
}
when i trying
Somebody help me?
Tks
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.