Google 分析 BatchGet 报告 |报告名称

Google Analytics BatchGet Report | Report Names

在制作 report:batchGet 时给报告命名的最佳解决方案是什么?

var url = Google.Common.Configuration.Endpoints.ReportBatchGet;
var reportRequest = JsonConvert.SerializeObject(_reportRequests);

try
{
    var tReports = await gc.PostAsyncTask(url,reportRequest);

    int cnt = 0;
    foreach (var report in tReports.reports)
    {
        if (report != null)
        {
            DataTable dt =  Google.Utils.ReportHandler.GoolgeBatchReportCreateDataTable(report,
                            _reportRequests.reportRequests.FirstOrDefault().viewId, **"REPORT_NAME"**);
                            Utils.ReportHandler.DataSetCellHandler(dt);

        }
    }

我有一组报告,我将其转换为 Json 并制作 post 来获取数据,结果很好。 我想在 DataTable 中转换结果时为 DataTable 命名,但 Google Analytics 不接受 batchGet.

中的报告名称或别名

有什么想法吗?

无法在批处理请求中为每个报告添加报告名称。转到 Google 分析报告 API。

这已经是我发现的问题,我已请求他们将其添加到 API。该团队接受了我的请求,但没有确定何时添加此功能。