NAME

authenticate_in_web_application

DESCRIPTION

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.

SYNOPSIS

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.