广告接口支持多店铺 更新5

This commit is contained in:
hgc 2025-03-18 20:58:14 +08:00
parent 349a3d69f5
commit 26ae6e60d3

View File

@ -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