Re: redirect_uri_mismatch Application

2018-04-16 Thread 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum
Hi, 

You will have to make sure that the redirect uri for the credentials of 
type *Web* is set correctly in the Google API Console Credentials page 
 and it matches the 
one set in your code 

 (please 
check the link for Java code sample). If it is not same, could you please 
update this and retry? If you are still facing issues, could you please 
create a new thread as this a very old thread? 

Thanks,
Sreelakshmi, AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/f4155c2a-c523-47b1-b72e-678fd5c3484a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: redirect_uri_mismatch Application

2018-04-16 Thread 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum
Hi, 

Re-posting your question without the screenshot as it contained OAuth 
credentials. In the future, please make sure that sensitive information is 
not shared on the public forum. Please check this post 

 for 
the guidelines while posting on this forum. 

*"I have generated API token through google console. In that I have added a 
Reidrect URL. But when I am running command from generating refresh token 
for google adwords APi. I am getting redirect_url_mismatch error. Below I 
have attached screenshot of it."*

Thanks,
Sreelakshmi, AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/4b89ae00-4ea7-4921-b98a-6ae976f0f1d2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: redirect_uri_mismatch Application

2018-04-16 Thread khanjanadword1
Hi Anash,

I have generated API token through google console. In that I have added a 
Reidrect URL. But when I am running command from generating refresh token 
for google adwords APi. I am getting redirect_url_mismatch error. Below I 
have attached screenshot of it.




On Friday, March 27, 2015 at 1:31:08 AM UTC+5:30, Anash P. Oommen (AdWords 
API Team) wrote:
>
> Hi Michael,
>
> I would recommend checking your OAuth2 console project once more - ensure 
> that it is of type "Installed application" as mentioned on 
> https://github.com/googleads/googleads-php-lib/wiki/Using-OAuth-2.0#creating-an-application-identifier
> .
>
> Cheers,
> Anash P. Oommen,
> AdWords API Advisor.
>
> On Tuesday, March 24, 2015 at 1:38:04 PM UTC-4, Michael Barlow wrote:
>>
>> Hope someone can help.
>>
>> Im attempting to set up a test environment to interact with Google adword 
>> campaigns using php.
>>
>> I've downloaded the Google Ads APIs Client Library for PHP and entered my 
>> developerToken, userAgent, clientCustomerId, client_id and client_secret as 
>> per the instructions (https://github.com/googleads/googleads-php-lib)
>>
>> I've ran GetRefreshToken.php via php in console and visited the link it 
>> generated but it just says
>>
>> 400. That’s an error. Error: redirect_uri_mismatch Application: Google 
>> Statistics
>>
>> I researched the error and it said i needed to have the correct REDIRECT 
>> URIS in my Google Developer Console. I've tried lots of variations but 
>> nothing seems to work. It's currently set at:
>>
>> http://localhost:/
>>
>> I'm running the API on localhost using MAMP, what should the redirect URI 
>> be?
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/cacfbd6b-1306-418f-807e-627e2baaf05b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: redirect_uri_mismatch Application

2015-03-26 Thread Anash P. Oommen (AdWords API Team)
Hi Michael,

I would recommend checking your OAuth2 console project once more - ensure 
that it is of type Installed application as mentioned 
on 
https://github.com/googleads/googleads-php-lib/wiki/Using-OAuth-2.0#creating-an-application-identifier.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

On Tuesday, March 24, 2015 at 1:38:04 PM UTC-4, Michael Barlow wrote:

 Hope someone can help.

 Im attempting to set up a test environment to interact with Google adword 
 campaigns using php.

 I've downloaded the Google Ads APIs Client Library for PHP and entered my 
 developerToken, userAgent, clientCustomerId, client_id and client_secret as 
 per the instructions (https://github.com/googleads/googleads-php-lib)

 I've ran GetRefreshToken.php via php in console and visited the link it 
 generated but it just says

 400. That’s an error. Error: redirect_uri_mismatch Application: Google 
 Statistics

 I researched the error and it said i needed to have the correct REDIRECT 
 URIS in my Google Developer Console. I've tried lots of variations but 
 nothing seems to work. It's currently set at:

 http://localhost:/

 I'm running the API on localhost using MAMP, what should the redirect URI 
 be?


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/2d53af87-0883-45a3-bbb2-acf23593d3cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: redirect_uri_mismatch Application

2015-03-25 Thread Thanet Knack Praneenararat (AdWords API Team)
Hi Michael,

It's highly likely that you have problems with setting up you OAuth2 stuff.
Please double-check the guide 
https://github.com/googleads/googleads-php-lib/wiki/Using-OAuth-2.0 and 
follow carefully again.

Typically, you shouldn't need to fiddle with redirect URIs, it should just 
be the default when you create a project on the developer's console.
You may need to check your developer console settings again.

Unfortunately as this is related to security issues, we cannot diagnose 
OAuth2 problems from our side.
However, I suspect that there might be some mistakes in settings of 
developer console and/or OAuth2 steps themselves,
as the error Application: Google Statistics seems not related to AdWords 
API.

Please let me know if you have any other issues.

Cheers,
Thanet, AdWords API Team

On Wednesday, March 25, 2015 at 2:38:04 AM UTC+9, Michael Barlow wrote:

 Hope someone can help.

 Im attempting to set up a test environment to interact with Google adword 
 campaigns using php.

 I've downloaded the Google Ads APIs Client Library for PHP and entered my 
 developerToken, userAgent, clientCustomerId, client_id and client_secret as 
 per the instructions (https://github.com/googleads/googleads-php-lib)

 I've ran GetRefreshToken.php via php in console and visited the link it 
 generated but it just says

 400. That’s an error. Error: redirect_uri_mismatch Application: Google 
 Statistics

 I researched the error and it said i needed to have the correct REDIRECT 
 URIS in my Google Developer Console. I've tried lots of variations but 
 nothing seems to work. It's currently set at:

 http://localhost:/

 I'm running the API on localhost using MAMP, what should the redirect URI 
 be?


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/449a0b54-557f-4c03-a6cf-68ae9edb0f87%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.