|
|
@@ -9,6 +9,7 @@ import com.moka.gdtauto.entity.AdAutoConf;
|
|
|
import com.moka.gdtauto.entity.AdAutoExecuteLog;
|
|
|
import com.moka.gdtauto.entity.AdPlan;
|
|
|
import com.moka.gdtauto.entity.AdPlanConf;
|
|
|
+import com.tencent.ads.model.v3.ConfiguredStatus;
|
|
|
|
|
|
import lombok.AllArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
@@ -135,6 +136,11 @@ public class AdAutoExecutor {
|
|
|
if (plans.isEmpty()) {
|
|
|
break;
|
|
|
}
|
|
|
+ plans = plans.stream()
|
|
|
+ .filter(plan -> {
|
|
|
+ return plan.getConfiguredStatus().equals("") || plan.getConfiguredStatus().equals(ConfiguredStatus.SUSPEND.getValue());
|
|
|
+ }).collect(Collectors.toList());
|
|
|
+
|
|
|
adCount += plans.size();
|
|
|
|
|
|
for (AdPlan plan : plans) {
|