[paid] Searching someone to guide me for my first PHP API call

2022-08-14 Thread Laurent Petr
Hi all,
I have posted several times here, but I never succeded to do my first API 
call :'-(
Mainly for problems of tokens.
Now I know that Google API support can't help me, *I'm searching someone to 
guide me*. *I can pay for that*.
For the moment I just need to list campaigns and activate or disable them, 
in PHP.
Probably with a playground token.

Please, contact me.
Thank you very much
Laurent

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/716ad36c-6dbe-4090-b777-54b938a918a3n%40googlegroups.com.


Someone to help me for my first API call?

2022-08-13 Thread Laurent Petr
Hi all,
I have posted several times here, but I never succeded to do my first API 
call :'-(
Mainly for problems of tokens.
Now I know that Google API support can't help me, I'm searching someone to 
guide me. I can pay for that.
For the moment I just need to list campaigns and activate or disable them, 
probably woth a playground token.
Please, contact me.
Thank you very much
Laurent

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/4f1058c2-04be-4a61-9ea0-c072e0a6498cn%40googlegroups.com.


Uncaught GuzzleHttp\Exception\ClientException / invalid_grant

2022-03-04 Thread Laurent Petr
Hi all,

I'm still trying to use the API for the first time.
I have created the identification keys in the console.
I didn't succeed making work example/Authentification php scripts, but I 
could get a refresh token with my own script, 
with "https://www.googleapis.com/auth/adwords; as scope and "offline" as 
type.

I inserted all the keys / tokens in google_ads_php.ini and tryed a first 
account access.
I tryed with the sample GetCampaigns.php and with my own script, but 
when searchStream is executed, I have the error :
*Fatal error*: Uncaught GuzzleHttp\Exception\ClientException: Client error: 
`POST https://oauth2.googleapis.com/token` resulted in a `400 Bad Request` 
response: { "error": "invalid_grant", "error_description": "Bad Request" } 

The account witch I use the customer ID in searchStream is a child account 
of the admin account witch I use the developper token.

I tryed to delete the keys in the console and to create new, but the 
problem is the same.

How should I do?
Thanks!
Laurent




-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/517b6de2-a5c7-4dfc-8af9-cbbc35a38e4fn%40googlegroups.com.


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 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-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 
>> <https://developers.google.com/google-ads/api/docs/client-libs/php/oauth-desktop?hl=en>
>>  
>> 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.


Authorization problem

2022-02-17 Thread Laurent Petr
Hi all,

I'm trying for the first time to use Google Ads API and I'm following these 
instructions :
https://github.com/googleads/google-ads-php/blob/HEAD/README.md#getting-started

I have a problem with "Run the AuthenticateInDesktopApplication 

 example, 
which will prompt you for your OAuth2 client ID and secret".
After having asked me for OAuth2 client ID and  OAuth2 client secret, it 
tells me to visit an URL. But this URL says:
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

Yet, when I created my client id, I have choosen "Web application"...

What can I do?
Thanks!
Laurent


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/fa1390ef-cc90-4d94-b1d5-775869d00537n%40googlegroups.com.