Hi,

I'm trying to generate the oAuth refresh token using a WebAPI call. This is
my code for the same

string GOOGLE_ADS_API_SCOPE = "https://www.googleapis.com/auth/adwords";;

            ClientSecrets secrets = new ClientSecrets()
            {
                ClientId = "
601400560108-va5j26mkq14b8amp62rhv4j468j1tje9.apps.googleusercontent.com",
                ClientSecret = "thlCfmifpGv4vv8RrXpA3Oiu"
            };

            try
            {
                Task<UserCredential> task =
GoogleWebAuthorizationBroker.AuthorizeAsync(
                    secrets,
                    new string[] { GOOGLE_ADS_API_SCOPE },
                    String.Empty,
                    CancellationToken.None,
                    new NullDataStore()
                );
                //return task.Result;
            }

I've included http://127.0.0.1/authorize and http://localhost/authorize as
my re-direct URIs in my OAuth Client ID. But still I got "*Error:
redirect_uri_mismatch*" error.
This is my Request details

Request Details

   - access_type=offline
   - response_type=code
   - client_id=
   601400560108-qcmdfolb51pu1q85gpgficah1rbmeu8h.apps.googleusercontent.com
   - redirect_uri=http://127.0.0.1:65393/authorize/
   - scope=https://www.googleapis.com/auth/adwords


please help me with this.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/CAFPoT5xTkOi1BwtR2GkDiuvKad1yT34rZUTTaf6nk962Fk-hnA%40mail.gmail.com.

Reply via email to