From e6d3fb9b78952a233039f779054bee6b118041f4 Mon Sep 17 00:00:00 2001 From: huangguancheng Date: Wed, 22 Jan 2025 14:36:00 +0800 Subject: [PATCH] =?UTF-8?q?Accounts=E3=80=81Campaigns=E3=80=81Ad=20Sets=20?= =?UTF-8?q?=E3=80=81Ads=20=E6=95=B0=E6=8D=AE=E5=AD=97=E6=AE=B5=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=20platform=5Fpurchase=E3=80=81pixel=5Fpurchase=20?= =?UTF-8?q?=EF=BC=9B=E5=88=A0=E9=99=A4assisted=5Fpurchases=E3=80=81last=5F?= =?UTF-8?q?clicked=5Fpurchases=203?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/service/AdsInsightService.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/service/AdsInsightService.php b/app/service/AdsInsightService.php index 4bc2ecf..01fc6ca 100644 --- a/app/service/AdsInsightService.php +++ b/app/service/AdsInsightService.php @@ -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']); - $sheet->setCellValue('F' . $row, $campaign['pixel_purchase']); + $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 @@ -544,8 +544,8 @@ class AdsInsightService $statistics = $adsetList['statistics']; $statisticsRow = $row; // 统计信息从当前行开始 $sheet->setCellValue('D' . $statisticsRow, 'Totals'); // 统计信息标题 - $sheet->setCellValue('E' . $statisticsRow, $statistics['platform_purchase']); - $sheet->setCellValue('F' . $statisticsRow, $statistics['pixel_purchase']); + $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']); - $sheet->setCellValue('F' . $row, $ad['pixel_purchase']); + $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']); - $sheet->setCellValue('F' . $statisticsRow, $statistics['pixel_purchase']); + $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