googleads / google-ads-php

Google Ads API Client Library for PHP
https://developers.google.com/google-ads/api/docs/client-libs/php
Apache License 2.0
280 stars 260 forks source link

bug #1031

Closed devorel closed 2 months ago

devorel commented 2 months ago

https://github.com/googleads/google-ads-php/blob/7ff9c4685a037e59d15b1774cc972d27d07e7a8c/examples/Planning/GenerateForecastMetrics.php#L130

in the midnight , the system of google return an error. i think i because timezone server not comperable to timezone googleAds. i think you have add a per test before you send the request.

my server tiime 0 => 1717710591 //Thu Jun 06 2024 21:49:51 GMT+0000 1 => "UTC"

fiboknacky commented 2 months ago

Could you elaborate more? Do you have request and response logs? The time zone shouldn't be a problem here and it should be handled by the server. It'll treat your specified dates based on your account's time zone preferences.