google ads api降频

This commit is contained in:
huangguancheng 2025-02-08 20:57:44 +08:00
parent a1c0b6edb9
commit 579856b403

View File

@ -25,7 +25,7 @@ class UpdateGoogleAdsTask
// 每15分钟执行一次
new Crontab('10 */13 * * * *', function () {
new Crontab('10 15 */2 * * *', function () {
$dayBeforeYesterdayStart = date('Y-m-d', strtotime('-2 day'));
dump($dayBeforeYesterdayStart . '更新' . GoogleAdsDateDatas::event . '开始');
@ -35,7 +35,7 @@ class UpdateGoogleAdsTask
);
// 每15分钟执行一次
new Crontab('20 */13 * * * *', function () {
new Crontab('20 14 */2 * * *', function () {
$yesterdayStart = date('Y-m-d', strtotime('-1 day'));
dump($yesterdayStart . '更新' . GoogleAdsDateDatas::event . '开始');
Event::emit(GoogleAdsDateDatas::event, ['date' => $yesterdayStart]);
@ -43,7 +43,7 @@ class UpdateGoogleAdsTask
);
// 每15分钟执行一次
new Crontab('30 */12 * * * *', function () {
new Crontab('30 13 */2 * * *', function () {
//获取今天的 0 点的YYYY - MM - DD格式
$todayStart = date('Y-m-d', strtotime('0 day'));
dump($todayStart . '更新' . GoogleAdsDateDatas::event . '开始');
@ -51,7 +51,7 @@ class UpdateGoogleAdsTask
}
);
// 每15分钟执行一次
new Crontab('15 */12 * * * *', function () {
new Crontab('15 12 */2 * * *', function () {
dump(date('Y-m-d H:i:s') . '更新' . GoogleAdsAssetRelations::event . '开始');
Event::emit(GoogleAdsAssetRelations::event, []);
@ -59,7 +59,7 @@ class UpdateGoogleAdsTask
);
// 每15分钟执行一次
new Crontab('30 */12 * * * *', function () {
new Crontab('30 * */2 * * *', function () {
dump(date('Y-m-d H:i:s') . '更新' . GoogleAdsGroups::event . '开始');
Event::emit(GoogleAdsGroups::event, []);
@ -69,7 +69,7 @@ class UpdateGoogleAdsTask
);
// 每15分钟执行一次
new Crontab('5 */11 * * * *', function () {
new Crontab('5 * */2 * * *', function () {
dump(date('Y-m-d H:i:s') . '更新' . GoogleAdsAds::event . '开始');
Event::emit(GoogleAdsAds::event, []);
}
@ -82,7 +82,7 @@ class UpdateGoogleAdsTask
Event::emit(GoogleAdsCreatives::event, []);
}
);
new Crontab('25 */14 * * * *', function () {
new Crontab('25 11 */2 * * *', function () {
dump(date('Y-m-d H:i:s') . '更新' . GoogleAdsAssets::event . '开始');
Event::emit(GoogleAdsAssets::event, []);
}