如何在google adsense version api 1.4中使用多维和指标值

时间:2015-07-13 14:49:18

标签: google-api adsense adsense-api

从谷歌adsense管理api v 1.4生成报告时,可以在此处列出: https://developers.google.com/adsense/management/v1.4/reference/accounts/reports/generate

我查看了此处给出的指标和维度: https://developers.google.com/adsense/management/metrics-dimensions

我试图在请求中传递这些值,并且它对我来说很好:

startDate=2015-07-07&
endDate=2015-07-12&
dimension=AD_UNIT_NAME&
metric=AD_REQUESTS_CTR

但我应该如何传递多个指标值? 例如,如果我想要度量值:

AD_REQUESTS_RPM , 
AD_REQUESTS_RPM ,
CLICKS , 
EARNINGS etc 

我尝试将它们与正常和网址编码的

值分开
":" 
","
" " (space) 

但是没有什么对我有用,我收到了这个错误:

{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "invalidParameter",
    "message": "Invalid value 'AD_REQUESTS_CTR:AD_REQUESTS_RPM'. Values must match the following regular expression: '[a-zA-Z_]+'",
    "locationType": "parameter",
    "location": "metric[0]"
   }
  ],
  "code": 400,
  "message": "Invalid value 'AD_REQUESTS_CTR:AD_REQUESTS_RPM'. Values must match the following regular expression: '[a-zA-Z_]+'"
 }
}

0 个答案:

没有答案