gads_token: Produce configured token

View source: R/gads_auth.R

gads_tokenR Documentation

Produce configured token


For internal use or for those programming around the Google Ads API. Returns a token pre-processed with httr::config(). Most users do not need to handle tokens "by hand" or, even if they need some control, gads_auth() is what they need. If there is no current token, gads_auth() is called to either load from cache or initiate OAuth2.0 flow. If auth has been deactivated via gads_deauth(), gads_token() returns NULL.




A request object (an S3 class provided by httr).

See Also

Other low-level API functions: gads_has_token()

rgoogleads documentation built on April 19, 2022, 5:09 p.m.