google ads api降频2
This commit is contained in:
parent
579856b403
commit
e8f957698d
@ -76,7 +76,7 @@ class UpdateGoogleAdsTask
|
|||||||
|
|
||||||
);
|
);
|
||||||
// 每15分钟执行一次
|
// 每15分钟执行一次
|
||||||
new Crontab('25 */15 * * * *', function () {
|
new Crontab('25 12 */3 * * *', function () {
|
||||||
|
|
||||||
dump(date('Y-m-d H:i:s') . '更新' . GoogleAdsCreatives::event . '开始');
|
dump(date('Y-m-d H:i:s') . '更新' . GoogleAdsCreatives::event . '开始');
|
||||||
Event::emit(GoogleAdsCreatives::event, []);
|
Event::emit(GoogleAdsCreatives::event, []);
|
||||||
|
@ -9,6 +9,7 @@ use app\event\GoogleAdsAds;
|
|||||||
use app\event\GoogleAdsAssets;
|
use app\event\GoogleAdsAssets;
|
||||||
use app\event\GoogleAdsDateDatas;
|
use app\event\GoogleAdsDateDatas;
|
||||||
use app\event\GoogleAdsAssetRelations;
|
use app\event\GoogleAdsAssetRelations;
|
||||||
|
use app\event\GoogleAdsCreatives;
|
||||||
use Webman\Event\Event;
|
use Webman\Event\Event;
|
||||||
use Webman\RedisQueue\Consumer;
|
use Webman\RedisQueue\Consumer;
|
||||||
|
|
||||||
@ -36,6 +37,8 @@ class GoogleAdsCustomerInitQueue implements Consumer
|
|||||||
Event::emit(GoogleAdsAssets::event, $data);
|
Event::emit(GoogleAdsAssets::event, $data);
|
||||||
//新绑定的客户,立即同步素材关系绑定
|
//新绑定的客户,立即同步素材关系绑定
|
||||||
Event::emit(GoogleAdsAssetRelations::event, $data);
|
Event::emit(GoogleAdsAssetRelations::event, $data);
|
||||||
|
//新绑定的客户,立即同步素材关系绑定
|
||||||
|
Event::emit(GoogleAdsCreatives::event, $data);
|
||||||
//新绑定的客户,立即同步最近3天的广告报表
|
//新绑定的客户,立即同步最近3天的广告报表
|
||||||
$data['date'] = date('Y-m-d', strtotime('-2 day'));
|
$data['date'] = date('Y-m-d', strtotime('-2 day'));
|
||||||
Event::emit(GoogleAdsDateDatas::event, $data);
|
Event::emit(GoogleAdsDateDatas::event, $data);
|
||||||
|
Loading…
Reference in New Issue
Block a user