'How do I create my own Oauth app for R script?
Hey im using the 'rgoogleads' library in R. https://github.com/selesnow/rgoogleads
The problem im facing is that the app is able to access the googleads api from my local but not from my remote server. I believe the issue is -
By default, gargle caches user tokens centrally, at the user level, and their keys or labels also convey which Google identity is associated with each token. Token storage relies on serialized R objects. That is, tokens are stored locally on your PC in the form of RDS files. This is probably why only my local has access and runs my app sucessfully.
How do I get the json file below? for gads_auth_configure?. Where do i find appname,key?
app <- httr::oauth_app(appname = "app name", key = "app id", secret = "app secret")
gads_auth_configure(app = app)
# or from json file
gads_auth_configure(path = 'D:/ga_auth/app.json')
# run authorization
gads_auth('[email protected]')
Solution 1:[1]
gads_auth() this will prompt pop up for authentication in remote server. Once this is done. Check allow 3rd party app to access GoogleAds and it will work
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Jay Janardhan |
