|
@@ -7,6 +7,8 @@ import cn.com.ctop.common.module.service.IBindAccountLoginService;
|
|
|
import cn.com.ctop.common.module.service.ICtopOauthTokenService;
|
|
|
import cn.com.ctop.common.module.service.IUserAllocationService;
|
|
|
import cn.com.ctop.common.module.utils.CtopAdConstant;
|
|
|
+import cn.com.ctop.kuaishou.modules.ai.entity.AiKuaishouAccountTargetTemplate;
|
|
|
+import cn.com.ctop.kuaishou.modules.ai.service.IAiKuaishouAccountTargetTemplateService;
|
|
|
import cn.com.ctop.kuaishou.modules.ai.service.IAiKuaishouNewCreateCampaign;
|
|
|
import cn.com.ctop.kuaishou.modules.batch.service.IKuaiShouCommentService;
|
|
|
import cn.com.ctop.kuaishou.modules.batch.service.IKuaiShouDailyReportTaskService;
|
|
@@ -246,8 +248,12 @@ public class SampleTest {
|
|
|
|
|
|
@Test
|
|
|
public void testData11(){
|
|
|
- CtopOauthToken token =tokenService.getTokenByAccountId(1683711016125448L);
|
|
|
- reportService.getAdvertiserPlanRuleData(token,new Date(),new Date(), CtopAdConstant.BYTEDANCE_REPORT_TYPE_DAILY);
|
|
|
+ CtopOauthToken token =tokenService.getTokenByAccountId(9556344L);
|
|
|
+ int dimeDiff = 5;
|
|
|
+ Date now = new Date();
|
|
|
+ String startTime = DateUtils.formatDate("2021-01-11 18:25:00");
|
|
|
+ String endTime = DateUtils.formatDate(now,"2021-01-11 18:35:00");
|
|
|
+ kuaishouInterfaceService.getSuZaoList(token.getAccessToken(), token.getAccountId(), 1, startTime, endTime);
|
|
|
}
|
|
|
|
|
|
@Test
|
|
@@ -453,4 +459,14 @@ public class SampleTest {
|
|
|
|
|
|
@Autowired
|
|
|
IAiKuaishouNewCreateCampaign aiKuaishouNewCreateCampaign;
|
|
|
+ @Autowired
|
|
|
+ private IAiKuaishouAccountTargetTemplateService aiKuaishouAccountTargetTemplateService;
|
|
|
+ @Test
|
|
|
+ public void createPlan(){
|
|
|
+ List<AiKuaishouAccountTargetTemplate> accountTargetTemplates = aiKuaishouAccountTargetTemplateService.getAllEffectTemplate();
|
|
|
+ if(null==accountTargetTemplates||accountTargetTemplates.isEmpty()){
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ accountTargetTemplates.forEach(targetTemplate -> aiKuaishouNewCreateCampaign.kuaishouAiAdsNewMaterialCreativity(targetTemplate));
|
|
|
+ }
|
|
|
}
|