authenticate_in_web_application
This example will create an OAuth2 refresh token for the Google Ads API using the Web application flow.
You must add http://localhost:PORT/oauth2callback to the "Authorize redirect URIs" list in your Google Cloud Console project before running this example, where PORT defaults to 8080.
authenticate_in_web_application.pl [options]
-help Show the help message. -client_id The OAuth2 client id. -client_secret The OAuth2 client secret -additional_scopes [optional] Additional OAuth2 scopes seperated by comma.
To install Google::Ads::GoogleAds::Client, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Google::Ads::GoogleAds::Client
CPAN shell
perl -MCPAN -e shell install Google::Ads::GoogleAds::Client
For more information on module installation, please visit the detailed CPAN module installation guide.