0

我有从托管服务返回的数据。

[{ 媒体:instagram,附属机构:乔治,日期:2019 年 2 月 1 日,花费:20.00,cart_assists:2,销售额:3},

{ 媒体:instagram,附属机构:tina,日期:02/01/2019,花费:10.00,cart_assists:1,销售额:0},

{ 媒体:instagram,附属:乔治,日期:2019 年 2 月 2 日,花费:30.00,cart_assists:12,销售额:4},

{ 媒体:instagram,附属机构:tina,日期:2019 年 2 月 2 日,花费:40.00,cart_assists:0,销售额:1}]

我正在尝试使用谷歌应用程序脚本来透视数据,我添加了 javascript 标记,因为任何 javascript 解决方案都可以在谷歌应用程序脚本中使用。

我希望数据如下所示,但我无法提出解决方案。

<table>
<th>media</th>
<th>affiliate</th>
<th>spend: 02/01/2019</th>
<th>spend: 02/02/2019</th>
<th>cart_assists: 02/01/2019</th>
<th>cart_assists: 02/02/2019</th>
<th>sales: 02/01/2019</th>
<th>sales: 02/02/2019</th>
</table>

4

0 回答 0