1. OAuth2 in the Google Ads API
Send a request to Google's OAuth 2.0 server
To obtain user authorization, send a request to Google's authorization server at https://accounts.google.com/o/oauth2/v2/auth. This endpoint handles active session lookup, authenticates the user, and obtains user consent. The endpoint is only accessible over SSL, and it refuses HTTP (non-SSL) connections. The authorization server supports the following query string parameters for installed applications:
Parameters
Value
Required
scope
https://www.googleapis.com/auth/adwords
Yes
access_type
offline
Yes
include_granted_scopes
true
Yes
response_type
code
Yes
state
state_parameter_passthrough_value
Yes
redirect_uri
http://localhost:3000/callback
Yes
client_id
XXX-XXX.apps.googleusercontent.com
Yes

https://accounts.google.com/o/oauth2/v2/auth?
scope=https://www.googleapis.com/auth/adwords&
access_type=offline&
include_granted_scopes=true&
response_type=code&
state=state_parameter_passthrough_value&
redirect_uri=http://localhost:5001/appgregator/us-central1/googleads/callback&
client_id=329011709740-sq6l548671df39l5bingat6kpd0rmuth.apps.googleusercontent.com
Last updated