Accounts、Campaigns、Ad Sets 、Ads 数据字段新增 platform_purchase、pixel_purchase ;删除assisted_purchases、last_clicked_purchases 2
This commit is contained in:
parent
e5332da1f3
commit
29b2f2584b
@ -388,8 +388,8 @@ class AdsInsightService
|
||||
$sheet->setCellValue('B' . $row, self::$statusMapping[$campaign['status']]); // Status
|
||||
$sheet->setCellValue('C' . $row, self::$platformMapping[$campaign['platform_type']]); // Platform Type
|
||||
$sheet->setCellValueExplicit('D' . $row, (string)$campaign['account_id'], \PhpOffice\PhpSpreadsheet\Cell\DataType::TYPE_STRING);
|
||||
$sheet->setCellValue('E' . $row, $campaign['platform_purchase']); // Assisted Purchases
|
||||
$sheet->setCellValue('F' . $row, $campaign['pixel_purchase']); // Last-clicked Purchases
|
||||
$sheet->setCellValue('E' . $row, $campaign['platform_purchase']);
|
||||
$sheet->setCellValue('F' . $row, $campaign['pixel_purchase']);
|
||||
$sheet->setCellValue('G' . $row, $campaign['roas']); // ROAS
|
||||
$sheet->setCellValue('H' . $row, $campaign['spend']); // Amount Spent
|
||||
$sheet->setCellValue('I' . $row, $campaign['impressions']); // Impressions
|
||||
@ -520,8 +520,8 @@ class AdsInsightService
|
||||
$sheet->setCellValue('B' . $row, self::$statusMapping[$adset['status']]); // Status
|
||||
$sheet->setCellValue('C' . $row, self::$platformMapping[$adset['platform_type']]); // Platform Type
|
||||
$sheet->setCellValueExplicit('D' . $row, (string)$adset['account_id'], \PhpOffice\PhpSpreadsheet\Cell\DataType::TYPE_STRING);
|
||||
$sheet->setCellValue('E' . $row, $adset['platform_purchase']); // Assisted Purchases
|
||||
$sheet->setCellValue('F' . $row, $adset['pixel_purchase']); // Last-clicked Purchases
|
||||
$sheet->setCellValue('E' . $row, $adset['platform_purchase']);
|
||||
$sheet->setCellValue('F' . $row, $adset['pixel_purchase']);
|
||||
$sheet->setCellValue('G' . $row, $adset['roas']); // ROAS
|
||||
$sheet->setCellValue('H' . $row, $adset['spend']); // Amount Spent
|
||||
$sheet->setCellValue('I' . $row, $adset['impressions']); // Impressions
|
||||
@ -544,8 +544,8 @@ class AdsInsightService
|
||||
$statistics = $adsetList['statistics'];
|
||||
$statisticsRow = $row; // 统计信息从当前行开始
|
||||
$sheet->setCellValue('D' . $statisticsRow, 'Totals'); // 统计信息标题
|
||||
$sheet->setCellValue('E' . $statisticsRow, $statistics['platform_purchase']); // Assisted Purchases
|
||||
$sheet->setCellValue('F' . $statisticsRow, $statistics['pixel_purchase']); // Last-clicked Purchases
|
||||
$sheet->setCellValue('E' . $statisticsRow, $statistics['platform_purchase']);
|
||||
$sheet->setCellValue('F' . $statisticsRow, $statistics['pixel_purchase']);
|
||||
$sheet->setCellValue('G' . $statisticsRow, $statistics['roas']); // ROAS
|
||||
$sheet->setCellValue('H' . $statisticsRow, $statistics['amount_spend']); // Amount Spent
|
||||
$sheet->setCellValue('I' . $statisticsRow, $statistics['impressions']); // Impressions
|
||||
@ -652,8 +652,8 @@ class AdsInsightService
|
||||
$sheet->setCellValue('B' . $row, self::$statusMapping[$ad['status']]); // Status
|
||||
$sheet->setCellValue('C' . $row, self::$platformMapping[$ad['platform_type']]); // Platform Type
|
||||
$sheet->setCellValueExplicit('D' . $row, (string)$ad['account_id'], \PhpOffice\PhpSpreadsheet\Cell\DataType::TYPE_STRING);
|
||||
$sheet->setCellValue('E' . $row, $ad['platform_purchase']); // Assisted Purchases
|
||||
$sheet->setCellValue('F' . $row, $ad['pixel_purchase']); // Last-clicked Purchases
|
||||
$sheet->setCellValue('E' . $row, $ad['platform_purchase']);
|
||||
$sheet->setCellValue('F' . $row, $ad['pixel_purchase']);
|
||||
$sheet->setCellValue('G' . $row, $ad['roas']); // ROAS
|
||||
$sheet->setCellValue('H' . $row, $ad['spend']); // Amount Spent
|
||||
$sheet->setCellValue('I' . $row, $ad['impressions']); // Impressions
|
||||
@ -676,8 +676,8 @@ class AdsInsightService
|
||||
$statistics = $adList['statistics'];
|
||||
$statisticsRow = $row; // 统计信息从当前行开始
|
||||
$sheet->setCellValue('D' . $statisticsRow, 'Totals'); // 统计信息标题
|
||||
$sheet->setCellValue('E' . $statisticsRow, $statistics['platform_purchase']); // Assisted Purchases
|
||||
$sheet->setCellValue('F' . $statisticsRow, $statistics['pixel_purchase']); // Last-clicked Purchases
|
||||
$sheet->setCellValue('E' . $statisticsRow, $statistics['platform_purchase']);
|
||||
$sheet->setCellValue('F' . $statisticsRow, $statistics['pixel_purchase']);
|
||||
$sheet->setCellValue('G' . $statisticsRow, $statistics['roas']); // ROAS
|
||||
$sheet->setCellValue('H' . $statisticsRow, $statistics['amount_spend']); // Amount Spent
|
||||
$sheet->setCellValue('I' . $statisticsRow, $statistics['impressions']); // Impressions
|
||||
@ -1057,8 +1057,8 @@ class AdsInsightService
|
||||
'A1' => 'Ad Account Id',
|
||||
'B1' => 'Advertiser Name',
|
||||
'C1' => 'Ad Platform',
|
||||
'D1' => 'Assisted Purchases',
|
||||
'E1' => 'Last-clicked Purchases',
|
||||
'D1' => 'Platform Purchases',
|
||||
'E1' => 'Best Pixel Purchases',
|
||||
'F1' => 'ROAS',
|
||||
'G1' => 'Amount Spent',
|
||||
'H1' => 'Impressions',
|
||||
@ -1087,8 +1087,8 @@ class AdsInsightService
|
||||
$sheet->setCellValueExplicit('A' . $row, (string)$account['user_id'], \PhpOffice\PhpSpreadsheet\Cell\DataType::TYPE_STRING); // Ad Account Id
|
||||
$sheet->setCellValue('B' . $row, $account['advertiser_name']); // Advertiser Name
|
||||
$sheet->setCellValue('C' . $row, self::$platformMapping[$account['platform_type']]); // Ad Platform
|
||||
$sheet->setCellValue('D' . $row, $account['platform_purchase']); // Assisted Purchases(原 E 列)
|
||||
$sheet->setCellValue('E' . $row, $account['pixel_purchase']); // Last-clicked Purchases(原 F 列)
|
||||
$sheet->setCellValue('D' . $row, $account['platform_purchase']);
|
||||
$sheet->setCellValue('E' . $row, $account['pixel_purchase']);
|
||||
$sheet->setCellValue('F' . $row, $account['roas']); // ROAS(原 G 列)
|
||||
$sheet->setCellValue('G' . $row, $account['spend']); // Amount Spent(原 H 列)
|
||||
$sheet->setCellValue('H' . $row, $account['impressions']); // Impressions(原 I 列)
|
||||
|
Loading…
Reference in New Issue
Block a user