|
@@ -127,13 +127,14 @@ public class SampleTest {
|
|
|
|
|
|
@Test
|
|
|
public void testLoadBytedanceData() {
|
|
|
- List<UserAllocation> allocations = allocationService.getByParams(435L, null, 0);
|
|
|
+ List<UserAllocation> allocations = allocationService.getByParams(633L, null, 0);
|
|
|
for (UserAllocation allocation : allocations) {
|
|
|
- for (int i = 2; i < 10; i++) {
|
|
|
+// for (int i = 2; i < 10; i++) {
|
|
|
CtopOauthToken token = oauthTokenService.getTokenByAccountId(allocation.getAccountId());
|
|
|
- Date getDate = DateUtils.addDay(new Date(), -i);
|
|
|
- reportService.getAdvertiserReport(token, getDate, getDate, CtopAdConstant.BYTEDANCE_REPORT_TYPE_DAILY);
|
|
|
- }
|
|
|
+ Date getDate = DateUtils.addDay(new Date(), 0);
|
|
|
+// reportService.getAdvertiserReport(token, getDate, getDate, CtopAdConstant.BYTEDANCE_REPORT_TYPE_DAILY);
|
|
|
+ reportService.getAdvertiserReport(token, getDate, getDate, CtopAdConstant.BYTEDANCE_REPORT_TYPE_HOURLY);
|
|
|
+// }
|
|
|
}
|
|
|
}
|
|
|
|