数据格式
This commit is contained in:
parent
700e96d880
commit
195a78ef16
@ -106,7 +106,7 @@ class GoogleAdsReportService
|
||||
'revenue' => '-',
|
||||
'roas' => '-',
|
||||
'profit' => '-',
|
||||
'spend' => array_sum(array_column($allAds, 'spend')) ?: '0.00',
|
||||
'spend' => number_format(array_sum(array_column($allAds, 'spend')),2) ?: '0.00',
|
||||
'be_roas' => '-'
|
||||
];
|
||||
// 获取查询结果
|
||||
@ -412,7 +412,7 @@ class GoogleAdsReportService
|
||||
$statistics = [
|
||||
'results' => '-',
|
||||
'reach' => array_sum(array_column($allCampaigns, 'reach')) ?: 0,
|
||||
'spend' => array_sum(array_column($allCampaigns, 'spend')) ?: '0.00',
|
||||
'spend' => number_format(array_sum(array_column($allCampaigns, 'spend')),2) ?: '0.00',
|
||||
'revenue' => '-',
|
||||
'roas' => '-',
|
||||
'profit' => '-',
|
||||
@ -477,7 +477,7 @@ class GoogleAdsReportService
|
||||
$dateCondition = "d.date = '" . date('Y-m-d', strtotime('-1 day')) . "'";
|
||||
break;
|
||||
case 'Last Week':
|
||||
$dateCondition = "d.date >= '" . date('Y-m-d', strtotime('-1 week')) . "'";
|
||||
$dateCondition = "d.date >= ' " . date('Y-m-d', strtotime('-1 week')) . "'";
|
||||
break;
|
||||
case 'Last Month':
|
||||
$dateCondition = "d.date >= '" . date('Y-m-d', strtotime('-1 month')) . "'";
|
||||
@ -732,7 +732,7 @@ class GoogleAdsReportService
|
||||
$statistics = [
|
||||
'results' => '-',
|
||||
'reach' => array_sum(array_column($allAdGroups, 'reach')) ?: 0,
|
||||
'spend' => array_sum(array_column($allAdGroups, 'spend')) ?: '0.00',
|
||||
'spend' => number_format(array_sum(array_column($allAdGroups, 'spend')),2)?: '0.00',
|
||||
'revenue' => '-',
|
||||
'roas' => '-',
|
||||
'profit' => '-',
|
||||
|
Loading…
Reference in New Issue
Block a user