0

我一直在尝试使用 连接到 Adwords 帐户RAdwords,但出现以下错误doAuth()

rjson::fromJSON(RCurl::postForm(" https://accounts.google.com/o/oauth2/token ", : STRING_ELT() 只能应用于“字符向量”,而不是“原始”) 中的错误

我有正确的凭据和开发人员的令牌,但我仍然无法解决问题。我使用的是Windows 7。回溯如下:

> traceback()
    4: .Call("fromJSON", json_str, unexpected.escape, simplify, PACKAGE = "rjson")
    3: rjson::fromJSON(RCurl::postForm("https://accounts.google.com/o/oauth2/token", 
       .opts = opts, code = credlist$c.token, client_id = credlist$c.id, 
       client_secret = credlist$c.secret, redirect_uri = "urn:ietf:wg:oauth:2.0:oob", 
       grant_type = "authorization_code", style = "POST"))
    2: loadToken(credentials)
    1: doAuth()

查看并尝试了其他类似问题的所有选项,例如:使用建议),我也安装了这个版本的RAdwords.

install_github('jburkhardt/RAdwords', ref = "refresh_token_raw_data")
4

1 回答 1

1

从以下 GitHub 分支安装RAdwords包,其中包含针对您的问题的错误修复:

require(devtools)
install_github('jburkhardt/RAdwords', ref = "bugfix_char_to_raw")
于 2018-10-30T14:45:09.897 回答