It is necessary to set the time to turn off the advertising campaign, I get the time in unixtime as follows:
function stopTime(){ $h = date("H"); $min= date("i"); $other = date("dmY"); return strtotime($h.":".$min." ".$other); } But apparently due to a delay or other factors I get
Some ads error occured: Указанное время остановки уже прошло If you increase the current time + 1 or +5 minutes also does not work. If you increase the +1 hour - then everything is ok.