Re: Authorization problem

2022-02-23 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi Laurent,

For authenticating in desktop application flow, the credentials generated in 
the GCP project are for a desktop app. You can generate a client ID and secret 
by following the linked instructions and try with those credentials.

Regards,

Aryeh
Google Ads API Team
ref:_00D1U1174p._5004Q2WwZFQ: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 
"Google Ads API and AdWords 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/U6QRA0R7RLKE00WLsUtAwNSt2d1eG8pDyj2g%40sfdc.net.


Re: Authorization problem

2022-02-23 Thread Laurent Petr
Hello,

On Github, they said to see with API support...
They said also, I shoud use AuthenticateInDesktopApplication.php even with 
a web app, and not AuthenticateInWebApplication.php

I tryed again with  AuthenticateInDesktopApplication.php and I have the 
message :
"Erreur 400 : redirect_uri_mismatch
The redirect URI in the request, urn:ietf:wg:oauth:2.0:oob, can only be 
used by a Client ID for native application. It is not allowed for the WEB 
client type. You can create a Client ID for native application at 
https://console.developers.google.com/apis/credentials/oauthclient;

Best regards
Laurent
Le lundi 21 février 2022 à 20:28:11 UTC+1, adsapi a écrit :

> Hi Laurent,
>
> The way the web flow works is that the app is listening in on the port 
> sent to the server when authenticating, so the code is sent directly to the 
> app via the redirect instead of having to paste the code in. I would 
> suggest you reach out to the author of the PHP client library instead via 
> this link . Different 
> client libraries state different types of redirect URL's.
>
> Regards,
>
> [image: Google Logo] 
> Aryeh 
> Google Ads API Team 
>   
>  
>
> ref:_00D1U1174p._5004Q2WwZFQ: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 
"Google Ads API and AdWords 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/67982174-f5e4-4420-8328-b3000ef489cdn%40googlegroups.com.


Re: Authorization problem

2022-02-21 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi Laurent,

The way the web flow works is that the app is listening in on the port sent to 
the server when authenticating, so the code is sent directly to the app via the 
redirect instead of having to paste the code in. I would suggest you reach out 
to the author of the PHP client library instead via this link. Different client 
libraries state different types of redirect URL's.

Regards,

Aryeh
Google Ads API Team
ref:_00D1U1174p._5004Q2WwZFQ: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 
"Google Ads API and AdWords 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/r9SFb0R7O61X00znsCBEfZR82PbBAPVsk-Gg%40sfdc.net.


Re: Authorization problem

2022-02-21 Thread Laurent Petr

Hi Ernie

Ok, I will post on the other group.

But could you help me to understand how the authorization should work?
I want to create a small web app.
According to your documentation 
(https://developers.google.com/google-ads/api/docs/client-libs/php/oauth-web?hl=en), 
I need to execute the authorization URL from my browser ("visit the 
following URL"), so my browser is redirected to the script that should 
deliver the refreshToken.
But I'm redirected to 127.0.0.1, so to my own computer, but as it's a 
web app, I have nothing on my computer and it can't work...


Thanks!

Best regards
Laurent

Le 21/02/2022 à 08:26, Google Ads API Forum Advisor a écrit :

Hi Laurent,

I am also a member of the Google Ads API team and let me provide 
support to your concern.


Upon checking your concern, it appears that this is more client 
library related. With this, I am afraid that our team could not 
provide further support here as it is outside of our expertise 
already. With this, I would suggest to reach out to author of the PHP 
client library instead via this link 
 as they are more 
equipped on this topic.


Regards,
Google Logo 
Ernie John
Google Ads API Team



ref:_00D1U1174p._5004Q2WwZFQ: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 "Google Ads API and AdWords 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/2062df33-d746-0fc2-14d1-5cdf97121002%40gmail.com.


Re: Authorization problem

2022-02-20 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi Laurent,

I am also a member of the Google Ads API team and let me provide support to 
your concern.

Upon checking your concern, it appears that this is more client library 
related. With this, I am afraid that our team could not provide further support 
here as it is outside of our expertise already. With this, I would suggest to 
reach out to author of the PHP client library instead via this link as they are 
more equipped on this topic.

Regards,

Ernie John
Google Ads API Team
ref:_00D1U1174p._5004Q2WwZFQ: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 
"Google Ads API and AdWords 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/MmKSc0R7N8O900ea3YqIG8RGCPf_BkrLvi1A%40sfdc.net.


Re: Authorization problem

2022-02-18 Thread Laurent Petr
Peter,

I've red 
: 
https://developers.google.com/google-ads/api/docs/client-libs/php/oauth-web?hl=en
So I added http://localhost/oauth2callback and 
http://127.0.0.1:44807/oauth2callback to authozized redirections.
The error is solved and I could validate the authorization, but I was 
redirected to http://127.0.0.1:44807/oauth2callback
But this URI doesn't exists, so it's an error page.

Thanks
Laurent
Le vendredi 18 février 2022 à 11:12:37 UTC+1, Laurent Petr a écrit :

> Hi Peter,
>
> Thanks!
>
> "php AuthenticateInDesktopApplication.php" is whats I tried yesterday.
> But, as my app is a web app, I've just tryed "php 
> AuthenticateInWebApplication.php".
> The detailed message doesn't speak of king of app now, It's a problem of 
> authorized URI :
> "Erreur 400 : redirect_uri_mismatch
> Vous ne pouvez pas vous connecter à cette appli, car elle ne respecte pas 
> le règlement OAuth 2.0 de Google.
> Si vous êtes le développeur de l'appli, enregistrez l'URI de redirection 
> dans Google Cloud Console."
>
> The URI is with authorization problem is: 
>
>- redirect_uri: http://127.0.0.1:44807/oauth2callback
>
> I tryed to replace 127.0.0.1 by the domain name I have authorized in the 
> console, but the error is the same.
>
> Best regards
> Laurent
>
> Le vendredi 18 février 2022 à 04:22:18 UTC+1, adsapi a écrit :
>
>> Hi Laurent,
>>
>> Thank you for reaching out to our API support team.
>>
>> If you wish to follow the desktop app flow, you may follow this guide 
>> 
>>  
>> for PHP instead. Should you continue to encounter issues, you may write 
>> back to our team and specify which step in the guide the issue was 
>> encountered.
>>
>> Best regards,
>>
>> [image: Google Logo] 
>> Peter Laurence 
>> Google Ads API Team 
>>   
>>
>> ref:_00D1U1174p._5004Q2WwZFQ: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 
"Google Ads API and AdWords 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/dd106e3e-a36c-4694-a2fe-8bf1bbdc5945n%40googlegroups.com.


Re: Authorization problem

2022-02-18 Thread Laurent Petr
Hi Peter,

Thanks!

"php AuthenticateInDesktopApplication.php" is whats I tried yesterday.
But, as my app is a web app, I've just tryed "php 
AuthenticateInWebApplication.php".
The detailed message doesn't speak of king of app now, It's a problem of 
authorized URI :
"Erreur 400 : redirect_uri_mismatch
Vous ne pouvez pas vous connecter à cette appli, car elle ne respecte pas 
le règlement OAuth 2.0 de Google.
Si vous êtes le développeur de l'appli, enregistrez l'URI de redirection 
dans Google Cloud Console."

The URI is with authorization problem is: 
   
   - redirect_uri: http://127.0.0.1:44807/oauth2callback

I tryed to replace 127.0.0.1 by the domain name I have authorized in the 
console, but the error is the same.

Best regards
Laurent

Le vendredi 18 février 2022 à 04:22:18 UTC+1, adsapi a écrit :

> Hi Laurent,
>
> Thank you for reaching out to our API support team.
>
> If you wish to follow the desktop app flow, you may follow this guide 
> 
>  
> for PHP instead. Should you continue to encounter issues, you may write 
> back to our team and specify which step in the guide the issue was 
> encountered.
>
> Best regards,
>
> [image: Google Logo] 
> Peter Laurence 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2WwZFQ: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 
"Google Ads API and AdWords 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/e9528f21-849e-4dd8-b204-a7d2d72227dfn%40googlegroups.com.


RE: Authorization problem when connecting GAds to BigQuery

2019-02-06 Thread googleadsapi-forumadvisor via AdWords API and Google Ads API Forum


Hi Pablo,

Our team could only provide support on issues/concerns related to AdWords
API only. For issues/concerns related to Google Ads Scripts, I would
suggest to post it on the Google Ads Scripts Forum
 as they are
better equipped to assist you here.

Thanks and regards,
Luis
AdWords API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

On 02/07/19 02:49:01 pablomarcobla...@gmail.com wrote:

Hi,

I am trying to connect to BigQuery from Google Ads Script for the first
time. I am trying to export some data from my accounts, after some
treatment with the script.
I am using "Export Google Ads Reports into BigQuery - Single Account" as
inspiration.

I have already:

- Created an account and a project in Bigquery
- Authorised Bigquery in the script in "Advanced APIs"
- Authorised Bigquery in the project I am trying to use in google developer
console.

When the script reaches this line:

dataSet = BigQuery.Datasets.insert(dataSet, bqProjectId);

I get the following error message:

BigQuery API has not been used in project 467746953204 before or it is
disabled. Enable it by visiting
https://console.developers.google.com/apis/api/bigquery-json.googleapis.com/overview?project=467746953204
then retry. If you enabled this API recently, wait a few minutes for the
action to propagate to our systems and retry. (file Code.gs, line 304)

Thanks for your help!

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/dccaf73c-0dbe-4bc8-af5e-12a9e0e8dd41%40googlegroups.com

.
For more options, visit https://groups.google.com/d/optout.

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ujqug1pjsg00o98mce007r18giy6smj6dhp74o30c1g68q3ichg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.