[英]google analytics reporting api v4 not show isDataGolden
I am using Python example to do a query.我正在使用 Python 示例进行查询。 Here is my requests:
这是我的要求:
body={
'reportRequests': [
{
'viewId': VIEW_ID,
'dateRanges': [{'startDate': '2018-01-01', 'endDate': '2018-01-16'}],
'metrics': [{'expression': 'ga:sessions'}],
'dimensions': [{'name': 'ga:country'}],
'samplingLevel' : 'LARGE'
}]
}
In the response, I checked and there are valid data from the response, however, I am looking for the "isDataGolden" field in the ReportData object and it's not present;在响应中,我检查了响应中的有效数据,但是,我正在寻找 ReportData object 中的“isDataGolden”字段,但它不存在; only these fields are present 'totals', 'rowCount', 'rows', 'minimums', 'maximums'.
只有这些字段存在“总计”、“行计数”、“行”、“最小值”、“最大值”。
Does anyone have any thoughts on why field is not present?有人对为什么字段不存在有任何想法吗? Google's documentation shows that it suppose to be there.
谷歌的文档显示它应该在那里。
Thanks.谢谢。
If any boolean field is absent, you can assume its value is false.如果任何 boolean 字段不存在,则可以假定其值为 false。
From the documentation :从文档中:
Note: When parsing the response body, if a boolean field is absent, you can assume its value is false.
注意:在解析响应体时,如果 boolean 字段不存在,则可以假设其值为 false。 Only boolean fields with true value are shown in the response;
响应中仅显示具有真值的 boolean 字段; for example, the isDataGolden field will be in the response if its value is true.
例如,如果 isDataGolden 字段的值为 true,它将在响应中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.