Using Google adwords API. Receive this error. HTTP/1.1 400 Bad Request

200 views
Skip to first unread message

Bray Leino Yucca

unread,
Mar 11, 2016, 8:57:19 AM3/11/16
to AdWords API Forum
The details of the error are

HTTP/1.1 400 Bad Request
< Content-Type: text/xml
< Date: Fri, 11 Mar 2016 10:53:32 GMT
< Expires: Fri, 11 Mar 2016 10:53:32 GMT
< Cache-Control: private, max-age=0
< X-Content-Type-Options: nosniff
< X-Frame-Options: SAMEORIGIN
< X-XSS-Protection: 1; mode=block
< Server: GSE
< Accept-Ranges: none
< Vary: Accept-Encoding
< Transfer-Encoding: chunked
* Connection #0 to host adwords.google.com left intact
Error in `[.default`(xj, i) : 
  only 0's may be mixed with negative subscripts


Could you offer some guidance on what I can do to understand this error better?

I believe I have authenticated the account directly.

My request is
body <- statement(select=c('Clicks','AveragePosition','Cost'),
  report="ACCOUNT_PERFORMANCE_REPORT",
  start="20160301",
  end="20160310")

the error appears after I execute

data <- getData(clientCustomerId=customerID, google_auth=google_auth ,statement=body)

Using R and the RAdwords package.

Could anybody give me a nudge in the right direction?  Or some tips on diagnosing the problem?

Phil,




Yin Niu

unread,
Mar 11, 2016, 9:52:06 AM3/11/16
to AdWords API Forum
Hi Phil, 

We don't support RAdWords package. The error message doesn't seem to be coming from AdWords API. 

Thanks,

Yin, AdWords API Team. 
Reply all
Reply to author
Forward
0 new messages