我正在尝试使用google doubleclick bid manager API(版本1)创建查询。我的要求是
POST https://www.googleapis.com/doubleclickbidmanager/v1/query?fields=metadata(dataRange%2CgoogleDrivePathForLatestReport)%2Cparams(filters%2CgroupBys)%2CqueryId&key= {YOUR_API_KEY}
{
"kind": "doubleclickbidmanager#query",
"params": {
"metrics": [
"METRIC_BILLABLE_COST_ADVERTISER",
"METRIC_IMPRESSIONS"
],
"type": "TYPE_GENERAL",
"filters": [
{
"type": "FILTER_LINE_ITEM_TYPE",
"value": "RTB_VIDEO"
}
]
},
"metadata": {
"dataRange": "MONTH_TO_DATE",
"format": "CSV"
},
"schedule": {
"frequency": "ONE_TIME"
}
}
我收到以下错误。
cache-control: private, max-age=0
content-encoding: gzip
content-length: 122
content-type: application/json; charset=UTF-8
date: Tue, 17 Jan 2017 12:16:07 GMT
expires: Tue, 17 Jan 2017 12:16:07 GMT
server: GSE
vary: Origin, X-Origin
{
"error": {
"errors": [
{
"domain": "global",
"reason": "backendError",
"message": "Backend Error"
}
],
"code": 500,
"message": "Backend Error"
}
}
导致错误的原因是什么?是通过安排在Google云中运行和创建报告来访问DBM报告的唯一方法吗?
答案 0 :(得分:0)
当我传递一个虚拟queryID时,错误消失了。这是一个有效的请求。
vi