我打电话给
await analyticsDataClient.runRealtimeReport({
entity: {
propertyId: propertyId,
},
dateRanges: [
{
startDate: '2020-03-31',
endDate: 'today',
},
],
dimensions: [
{
name: 'city',
},
],
metrics: [
{
name: 'activeUsers',
},
],
});
但这会返回以下错误:
A property in the form 'properties/1234' where '1234' is a GA4 property Id is required
我认为这是因为我的runRealtimeReport
函数中的对象是错误的,但我不知道如何放入。