RE: Authentication problem in Google Ads API

2021-03-01 Thread Google Ads API Forum Advisor Prod
Hi,

I recommend double checking if you followed all the steps that are mentioned in 
the guide: https://developers.google.com/google-ads/api/docs/oauth/cloud-project

I suggest enabling the Google Ads API using the incognito mode of Google Chrome.

Thanks,

Lakshmi Prathipati
Google Ads API Team
ref:_00D1U1174p._5004Q2DJtZh:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/WWrjx0QPB7XA00rVHM2rwIQ_m6_tngO7hTyw%40sfdc.net.


Re: Authentication problem

2018-10-21 Thread honnponn
Hi,

> flow = google_auth_oauthlib.flow.Flow.from_client_secrets_file(
>  'client_secret.json', scope=[oauth2.GetAPIScope('adwords')])

I got the exactly same error.
scope=must bescopes=. s is required.

Jun



2018年8月28日火曜日 5時54分08秒 UTC+9 sshaw@gmail.com:
>
> I'm trying to get started with adwords api but am unable to authenticate.
>
> I am using python.  When I run:
>
> flow = google_auth_oauthlib.flow.Flow.from_client_secrets_file(
> 'client_secret.json', scope=[oauth2.GetAPIScope('adwords')])
> flow.redirect_uri = 'https://www.example.com/oauth2callback'
>
> I get an error
>
> TypeErrorTraceback (most recent call last) in 
> ()  1 flow = 
> google_auth_oauthlib.flow.Flow.from_client_secrets_file(> 2 
> 'client_secret.json', scope=[oauth2.GetAPIScope('adwords')])  3 
> flow.redirect_uri = 'https://www.example.com/oauth2callback'
> TypeError: from_client_secrets_file() takes exactly 3 arguments (2 given)
>
>
>
> I read that sometimes if you download sqlparse it fixes this but I tried that 
> and it didn't work.  My googleads.yaml file is stored on my home directory 
> and I have my client_id, client_secret, and refresh_token filled out.
>
>
> Any idea what is wrong? 
>
>
> Thanks.
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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 and Google Ads 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/2aa9a2b1-099c-45e8-9f74-0022942ed0b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Authentication problem

2018-08-27 Thread 'Luis Xander Talag (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi,

When setting up your OAuth2 credentials 
, we 
recommend the installed application flow 

 app 
type for this. I would suggest to follow the guides on the links that I 
provided. Then, once done with the setup, you may try some basic operations 
here 

 and 
let me know if it works.

Thanks and regards,
Luis
AdWords API Team

On Tuesday, August 28, 2018 at 4:54:08 AM UTC+8, sshaw.losasso wrote:
>
> I'm trying to get started with adwords api but am unable to authenticate.
>
> I am using python.  When I run:
>
> flow = google_auth_oauthlib.flow.Flow.from_client_secrets_file(
> 'client_secret.json', scope=[oauth2.GetAPIScope('adwords')])
> flow.redirect_uri = 'https://www.example.com/oauth2callback'
>
> I get an error
>
> TypeErrorTraceback (most recent call last) in 
> ()  1 flow = 
> google_auth_oauthlib.flow.Flow.from_client_secrets_file(> 2 
> 'client_secret.json', scope=[oauth2.GetAPIScope('adwords')])  3 
> flow.redirect_uri = 'https://www.example.com/oauth2callback'
> TypeError: from_client_secrets_file() takes exactly 3 arguments (2 given)
>
>
>
> I read that sometimes if you download sqlparse it fixes this but I tried that 
> and it didn't work.  My googleads.yaml file is stored on my home directory 
> and I have my client_id, client_secret, and refresh_token filled out.
>
>
> Any idea what is wrong? 
>
>
> Thanks.
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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 and Google Ads 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/f2d2a8a6-8147-466f-84c0-8bcad210f03e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Authentication problem with new app

2013-11-19 Thread Anash P. Oommen (AdWords API Team)
Hi,

Could you check your Google API console project to see if you have set the 
email address for your client? You could find this on the consent screen 
tab of your client. That should fix the invalid_client issue.

Cheers,
Anash

On Wednesday, November 13, 2013 6:30:01 AM UTC-5, 
my...@smallbizexpress.info wrote:
>
> Hi Anash
>
> I am facing same issue, i have created Test MCC account and creates 
> ClientID and secret key as mentioned in documentation. But its giving below 
> error
>
> Log in to your AdWords account and open the following URL: 
> https://accounts.google.com/o/oauth2/auth?response_type=code&client_id=***.apps.googleusercontent.com&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&scope=https%3A%2F%2Fadwords.google.com%2Fapi%2Fadwords%2F&access_type=offlineAfter
>  approving the token enter the authorization code here: Your OAuth2 
> Credentials are incorrect. Please see the GetRefreshToken.php example. { 
> "error" : "invalid_request" } 
>
> Wen i tried to type above URL (
> https://accounts.google.com/o/oauth2/auth?response_type=code&client_id=***.apps.googleusercontent.com&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&scope=https%3A%2F%2Fadwords.google.com%2Fapi%2Fadwords%2F&access_type=offline)
>  
> directly in browser , its giving below error
>
>
> Error: redirect_uri_mismatch
>
> The redirect URI in the request: urn:ietf:wg:oauth:2.0:oob did not match a 
> registered redirect URI
>
> Learn more 
> Request Details
>
>- cookie_policy_enforce=false
>- scope=https://adwords.google.com/api/adwords/
>- response_type=code
>- redirect_uri=urn:ietf:wg:oauth:2.0:oob
>- access_type=offline
>- display=page
>- client_id=.apps.googleusercontent.co
>
> Can you please give us correct instruction to fix this error?
>
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.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
--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Authentication problem with new app

2013-11-13 Thread myapi
Hi Anash

I am facing same issue, i have created Test MCC account and creates 
ClientID and secret key as mentioned in documentation. But its giving below 
error

Log in to your AdWords account and open the following URL: 
https://accounts.google.com/o/oauth2/auth?response_type=code&client_id=***.apps.googleusercontent.com&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&scope=https%3A%2F%2Fadwords.google.com%2Fapi%2Fadwords%2F&access_type=offline
 
After approving the token enter the authorization code here: Your OAuth2 
Credentials are incorrect. Please see the GetRefreshToken.php example. { 
"error" : "invalid_request" } 

Wen i tried to type above URL 
(https://accounts.google.com/o/oauth2/auth?response_type=code&client_id=***.apps.googleusercontent.com&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&scope=https%3A%2F%2Fadwords.google.com%2Fapi%2Fadwords%2F&access_type=offline)
 
directly in browser , its giving below error


Error: redirect_uri_mismatch

The redirect URI in the request: urn:ietf:wg:oauth:2.0:oob did not match a 
registered redirect URI

Learn more 
Request Details
   
   - cookie_policy_enforce=false
   - scope=https://adwords.google.com/api/adwords/
   - response_type=code
   - redirect_uri=urn:ietf:wg:oauth:2.0:oob
   - access_type=offline
   - display=page
   - client_id=.apps.googleusercontent.co

Can you please give us correct instruction to fix this error?



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.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
--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Authentication problem with new app

2013-10-01 Thread Filip Holmberg
I did create a 'Installed App' but could not get it to work and receive the 
described error. I did get a refresh token now when I added a Web app and 
used that id/secret pair.

- Filip

On Tuesday, 1 October 2013 12:36:38 UTC+3, Anash P. Oommen (AdWords API 
Team) wrote:
>
> Hi Filip,
>
> Looks like you created a "Web application" on the Google API Console. For 
> installed application, there's an installed application option on the 
> Google API Console, and urn:ietf:wg:oauth:2.0:oob is a registered 
> callback url in that project.
>
> Cheers,
> Anash P. Oommen
> AdWords API Advisor
>
> On Friday, September 27, 2013 4:53:17 PM UTC+5:30, Filip Holmberg wrote:
>>
>>
>> We are building a adwords tool but we're struggling with the 
>> authentication. Our tool is just for internal use and therefore should be 
>> considered as a "installed app" I assume. So the logic should be as 
>> follows: authenticate with OAuth2.0 once and then just refresh the 
>> authentication as the application is used.
>>
>> Here is what we've done so far.
>> - Applied for API access from our MCC account (devToken is still pending)
>> - Created a test account
>> - Registered our test application in the Google API Console as 'installed 
>> application'
>>
>> When trying to authenticate using the example GetRefreshToken.php google 
>> returns "Error: redirect_uri_mismatch
>> The redirect URI in the request: urn:ietf:wg:oauth:2.0:oob did not match 
>> a registered redirect URI"
>>
>> The script is configured with the client id and secret from the API 
>> console. The production MCC developer token is used as suggested in the 
>> test account docs. 
>>
>> Are we doing something really wrong or what are we missing since the 
>> authentication fails. Seems that most of the documentation and tutorials 
>> we found uses the deprecated sandbox so haven't really found any good 
>> threads discussing similar problems.
>>
>> Appreciate any kind of help, especially since the project schedule is 
>> tight as always :) 
>>
>

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

--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Authentication problem with new app

2013-10-01 Thread Anash P. Oommen (AdWords API Team)
Hi Filip,

Looks like you created a "Web application" on the Google API Console. For 
installed application, there's an installed application option on the 
Google API Console, and urn:ietf:wg:oauth:2.0:oob is a registered callback 
url in that project.

Cheers,
Anash P. Oommen
AdWords API Advisor

On Friday, September 27, 2013 4:53:17 PM UTC+5:30, Filip Holmberg wrote:
>
>
> We are building a adwords tool but we're struggling with the 
> authentication. Our tool is just for internal use and therefore should be 
> considered as a "installed app" I assume. So the logic should be as 
> follows: authenticate with OAuth2.0 once and then just refresh the 
> authentication as the application is used.
>
> Here is what we've done so far.
> - Applied for API access from our MCC account (devToken is still pending)
> - Created a test account
> - Registered our test application in the Google API Console as 'installed 
> application'
>
> When trying to authenticate using the example GetRefreshToken.php google 
> returns "Error: redirect_uri_mismatch
> The redirect URI in the request: urn:ietf:wg:oauth:2.0:oob did not match a 
> registered redirect URI"
>
> The script is configured with the client id and secret from the API 
> console. The production MCC developer token is used as suggested in the 
> test account docs. 
>
> Are we doing something really wrong or what are we missing since the 
> authentication fails. Seems that most of the documentation and tutorials 
> we found uses the deprecated sandbox so haven't really found any good 
> threads discussing similar problems.
>
> Appreciate any kind of help, especially since the project schedule is 
> tight as always :) 
>

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

--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.