From 26ae6e60d3ed11f8420046d60c79c90017186105 Mon Sep 17 00:00:00 2001 From: hgc Date: Tue, 18 Mar 2025 20:58:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B9=BF=E5=91=8A=E6=8E=A5=E5=8F=A3=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E5=A4=9A=E5=BA=97=E9=93=BA=20=E6=9B=B4=E6=96=B05?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/service/AdsInsightService.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/service/AdsInsightService.php b/app/service/AdsInsightService.php index 7500d0f..7a6dab3 100644 --- a/app/service/AdsInsightService.php +++ b/app/service/AdsInsightService.php @@ -501,7 +501,7 @@ class AdsInsightService 'A1' => 'Ad Sets', 'B1' => 'Status', 'C1' => 'Ad Platform', // 修正为 Ad Platform - 'D1' => 'Ad Accounts', // 修正为 Ad Accounts + 'D1' => 'Ad Campaigns', 'E1' => 'Platform Purchases', 'F1' => 'Best Pixel Purchases', 'G1' => 'ROAS', @@ -532,7 +532,8 @@ class AdsInsightService $sheet->setCellValue('A' . $row, $adset['name']); // Ad Campaigns $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->setCellValueExplicit('D' . $row, (string)$adset['account_id'], \PhpOffice\PhpSpreadsheet\Cell\DataType::TYPE_STRING); + $sheet->setCellValue('D' . $row, $adset['campaign_name']); $sheet->setCellValue('E' . $row, $adset['platform_purchase']); $sheet->setCellValue('F' . $row, $adset['pixel_purchase']); $sheet->setCellValue('G' . $row, $adset['roas']); // ROAS