tmarois / laravel-ads-sdk

PHP SDK for Google Ads, Bing Ads, and Facebook Ads API for Laravel
MIT License
113 stars 46 forks source link

Out-of-band (OOB) flow for Google has been removed #55

Open vantezzen opened 2 years ago

vantezzen commented 2 years ago

When using php artisan laravelads:token:generate --service=GoogleAds, the OOB flow will be used by setting the redirect URL to "urn:ietf:wg:oauth:2.0:oob".

This has been deprecated and removed by Google (https://developers.google.com/identity/protocols/oauth2/resources/oob-migration#overview), especially for new apps. Due to this, it's impossible to generate new refresh tokens on apps created after February 28th.

Google's docs recommend switching to custom API endpoint to handle this