From 98057f74ac096222185424cf10253a363c7f7b05 Mon Sep 17 00:00:00 2001 From: brian-inspiren Date: Thu, 6 Aug 2026 17:33:01 +0800 Subject: [PATCH] feat: added changes towards spending date checking --- app/Services/GoogleAdsService.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Services/GoogleAdsService.php b/app/Services/GoogleAdsService.php index eeaabd3..dab796c 100644 --- a/app/Services/GoogleAdsService.php +++ b/app/Services/GoogleAdsService.php @@ -22,7 +22,7 @@ use Google\Ads\GoogleAds\V22\Enums\PolicyReviewStatusEnum\PolicyReviewStatus; use Google\Ads\GoogleAds\V22\Services\SearchGoogleAdsRequest; use Illuminate\Support\Facades\Log as FacadesLog; - +use Carbon\Carbon; class GoogleAdsService { protected $oAuth2Credential; @@ -161,7 +161,8 @@ public function listCampaignsMetrics(string $clientCustomerId, string $campaignI $service = $client->getGoogleAdsServiceClient(); $customerId = str_replace('-', '', $clientCustomerId); - + $startDate = Carbon::parse($startDate)->timezone('Asia/Kuala_Lumpur')->format('Y-m-d'); + $endDate = Carbon::parse($endDate)->timezone('Asia/Kuala_Lumpur')->format('Y-m-d'); $query = <<