NAME

generate_user_credentials

DESCRIPTION

This example will create an OAuth2 refresh token for the Google Ads API for either a web or desktop app OAuth client ID.

For web app client types, you must add http://127.0.0.1 to the "Authorize redirect URIs" list in your Google Cloud Console project before running this example, where PORT defaults to 8080. Desktop app client types do not require the local redirect to be explicitly configured in the Cloud console.

SYNOPSIS

generate_user_credentials.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.