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