google-ads-php SDK and OAuth OOB deprecation

480 views
Skip to first unread message

funny_ha_ha

unread,
May 4, 2022, 2:01:23 PM5/4/22
to Google Ads API and AdWords API Forum
Hello,

I'm using https://github.com/googleads/google-ads-php version 15.0 (most recent version as of time of writing) and recently got an email from google with the information that OAuth out-of-band (OOB) flow will be deprecated and "Our records indicate you have OAuth clients that used the OAuth OOB flow in the past.".

I am unsure if I need to so something ...

The OAuth 2.0-Client-ID I have in my Google Cloud Platform Console is of type "Desktop".

I basically use the SDKs example script (https://github.com/googleads/google-ads-php/blob/main/examples/Authentication/GenerateUserCredentials.php) to get a refreshToken ONCE on my workstation, put this token inside the google_ads_php.ini on my server and use it to access the API via my serverside application.

Do I need to do a thing now, or am I good? The information in the email and in the blog post does not make it clear, neither does the README of the PHP SDK.

Best
Marco

Guillaume Thomas

unread,
May 5, 2022, 8:01:24 AM5/5/22
to Google Ads API and AdWords API Forum
Hello,

I've received the same email, and I was asking myslef the same questions.

If you find more informations, let me know.

Google Ads API Forum Advisor

unread,
May 5, 2022, 2:45:53 PM5/5/22
to guig...@gmail.com, adwor...@googlegroups.com

Hello Guillaume,

Thanks for reaching out to the Google Ads API support. Yes, still you need to do that same process. Please verify all the steps used to obtain credentials for the Google Ads API once by following the link.
Feel free to reply back if you have any follow up questions.

Best regards,

Google Logo
Jakeia Sabrina
Google Ads API Team
 

ref:_00D1U1174p._5004Q2aQNr2:ref

Guillaume Thomas

unread,
May 9, 2022, 6:52:39 AM5/9/22
to Google Ads API and AdWords API Forum
Hello adsapi,

I think you didn't understand our question ...

Matteo Medda

unread,
May 9, 2022, 7:02:32 AM5/9/22
to Google Ads API and AdWords API Forum
Hello,
we also received the same email, but honestly we don't understand what we have to do ... we also use sdk-php and a "desktop" type oauth2.

Should we switch to a "service" type oauth2? or what do we have to do "concretely" to migrate that oauth2 desktop?

Regards,
Matteo

Matteo Medda

unread,
May 9, 2022, 4:43:48 PM5/9/22
to Google Ads API and AdWords API Forum
Hello,
we are using php-sdk v15 (https://github.com/googleads/google-ads-php/releases/tag/v15.0.0) and we are retrying the "GenerateUserCredentials" script

We tried to create new credentials on the google cloud console, and set them at the GenerateUserCredentials prompt, but when we are redirected to the web interface, the "old" clientID appears selected and there is no way to change (even if in query string the clientID set is "the new one").

This situation is very strange, it seems like a bug to us.

Is it better to create a new project id and a new client id? We don't want to have problems with the credentials we already use in production.

Regards,
Matteo

Google Ads API Forum Advisor

unread,
May 11, 2022, 5:28:25 AM5/11/22
to m.m...@doveconviene.com, adwor...@googlegroups.com
Hi everyone,

Thank you for raising this concern. 

Allow me to reach out to the rest of our API support team to clarify this communication and discuss what steps to take to avoid issues. We'll reach back to you once we have more details.

Best regards,

Google Logo
Peter Laurence
Google Ads API Team
 


ref:_00D1U1174p._5004Q2aQNr2:ref

Matteo Medda

unread,
May 11, 2022, 9:41:31 AM5/11/22
to Google Ads API and AdWords API Forum
Hi Peter,
thank you very much, we look forward to receiving your feedback.

Regards,
Matteo

Google Ads API Forum Advisor

unread,
May 12, 2022, 5:58:21 AM5/12/22
to m.m...@doveconviene.com, adwor...@googlegroups.com
Hi everyone,

As per feedback received from our team, you can refer to the https://developers.googleblog.com/2022/02/making-oauth-flows-safer.html for details.

We have also updated the PHP guide here: https://developers.google.com/google-ads/api/docs/client-libs/php/oauth-web. As long as customers use the new GenerateCredentials example for generating new refresh tokens, all should be good.

I hope this helps.

Matteo Medda

unread,
May 13, 2022, 1:07:40 PM5/13/22
to Google Ads API Forum Advisor, adwor...@googlegroups.com
Thank you for the information. 

Matteo

Matteo Medda

EN - Tech Lead

shopfully.com

Follow us on LinkedIn


Notice. The information contained in this message is intended only for use of the individuals named above. The message may contain confidential, proprietary or legally privileged information. If you are not the intended recipient of this message, you must not use, disseminate or copy it in any form or take any action in reliance of it. If you have received this message in error, please delete it and notify the sender immediately. This e-mail address is not a private address and, therefore, its use is regulated.


Google Ads API Forum Advisor

unread,
May 13, 2022, 2:31:36 PM5/13/22
to m.m...@shopfullygroup.com, adwor...@googlegroups.com

Hi Mateo,

Should you have additional clarifications with the APIs, please write back by opening new post for seperate issue and we'll be happy to assist you.

Thanks,

Google Logo
Yasar
Google Ads API Team
 


ref:_00D1U1174p._5004Q2aQNr2:ref
Reply all
Reply to author
Forward
0 new messages