|
@@ -18,77 +18,125 @@ from SB.mysql_datainsert_sb_keywordsbid_recommendations_v3 import SbkeywordsBidR
|
|
|
from SB.mysql_datainsert_sbtarget_v3 import SbTargets
|
|
|
from SB.mysql_datainsert_sbtargetbid_recommendations_v3 import SbtargetsBidRecommendations
|
|
|
|
|
|
+import time
|
|
|
+
|
|
|
+
|
|
|
+def protime(start_time):
|
|
|
+ end_time = time.time()
|
|
|
+ run_time = end_time - start_time
|
|
|
+ minutes = int(run_time / 60)
|
|
|
+ seconds = int(run_time % 60)
|
|
|
+ print(f'程序运行时间: {minutes} 分钟 {seconds} 秒')
|
|
|
+ time.sleep(5)
|
|
|
+
|
|
|
+
|
|
|
+start_time = time.time()
|
|
|
pf = Portfolios("3006125408623189")
|
|
|
pfo = pf.updata_create()
|
|
|
print("Portfolios", pfo)
|
|
|
+protime(start_time)
|
|
|
|
|
|
+start_time = time.time()
|
|
|
spc = SpCampaign(profile_id="3006125408623189")
|
|
|
spco = spc.updata_create()
|
|
|
print("SpCampaign", spco)
|
|
|
+protime(start_time)
|
|
|
|
|
|
+start_time = time.time()
|
|
|
spg = SpGroup(profile_id="3006125408623189")
|
|
|
spgo = spg.updata_create()
|
|
|
print("SpGroup", spgo)
|
|
|
+protime(start_time)
|
|
|
|
|
|
+start_time = time.time()
|
|
|
spk = SpKeyword(profile_id="3006125408623189")
|
|
|
spko = spk.updata_create()
|
|
|
print("SpKeyword", spko)
|
|
|
+protime(start_time)
|
|
|
|
|
|
+start_time = time.time()
|
|
|
spa = SpAds(profile_id="3006125408623189")
|
|
|
spao = spa.updata_create()
|
|
|
print("SpAds", spao)
|
|
|
+protime(start_time)
|
|
|
|
|
|
+start_time = time.time()
|
|
|
spbr = SpBudgetRecommendation(profile_id="3006125408623189")
|
|
|
spbro = spbr.updata_create()
|
|
|
print("SpBudgetRecommendation", spbro)
|
|
|
+protime(start_time)
|
|
|
|
|
|
+start_time = time.time()
|
|
|
sptb = SpTargetsBidRecommendations(profile_id="3006125408623189")
|
|
|
sptbo = sptb.updata_create()
|
|
|
print("SpTargetsBidRecommendations", sptbo)
|
|
|
+protime(start_time)
|
|
|
|
|
|
+start_time = time.time()
|
|
|
spt = SpTargets(profile_id="3006125408623189")
|
|
|
spto = spt.updata_create()
|
|
|
print("SpTargets", spto)
|
|
|
+protime(start_time)
|
|
|
|
|
|
+start_time = time.time()
|
|
|
sptbv2 = SpTargetsBidRecommendationsV2(profile_id="3006125408623189")
|
|
|
sptbv2o = sptbv2.updata_create()
|
|
|
print("SpTargetsBidRecommendationsV2", sptbv2o)
|
|
|
+protime(start_time)
|
|
|
|
|
|
+start_time = time.time()
|
|
|
spnt = SpNegativeTarget(profile_id="3006125408623189")
|
|
|
spnto = spnt.updata_create()
|
|
|
print('SpNegativeTarget', spnto)
|
|
|
+protime(start_time)
|
|
|
|
|
|
+start_time = time.time()
|
|
|
spnk = SpNegativeKeyword(profile_id="3006125408623189")
|
|
|
spnko = spnk.updata_create()
|
|
|
print('SpNegativeKeyword', spnko)
|
|
|
+protime(start_time)
|
|
|
|
|
|
|
|
|
+start_time = time.time()
|
|
|
sbc = SbCampaign(profile_id="3006125408623189")
|
|
|
sbco = sbc.updata_create()
|
|
|
print("SbCampaign", sbco)
|
|
|
+protime(start_time)
|
|
|
|
|
|
+start_time = time.time()
|
|
|
sbg = SbGroup(profile_id="3006125408623189")
|
|
|
sbgo = sbg.updata_create()
|
|
|
print("SbGroup", sbgo)
|
|
|
+protime(start_time)
|
|
|
|
|
|
+start_time = time.time()
|
|
|
sbk = SbKeyword(profile_id="3006125408623189")
|
|
|
sbko = sbk.updata_create()
|
|
|
print("SbKeyword", sbko)
|
|
|
+protime(start_time)
|
|
|
|
|
|
+start_time = time.time()
|
|
|
sba = SbAds(profile_id="3006125408623189")
|
|
|
sbao = sba.updata_create()
|
|
|
print("SbAds", sbao)
|
|
|
+protime(start_time)
|
|
|
|
|
|
+start_time = time.time()
|
|
|
sbkbr = SbkeywordsBidRecommendations(profile_id="3006125408623189")
|
|
|
sbkbro = sbkbr.updata_create()
|
|
|
print("SbkeywordsBidRecommendations", sbkbro)
|
|
|
+protime(start_time)
|
|
|
|
|
|
+start_time = time.time()
|
|
|
sbt = SbTargets(profile_id="3006125408623189")
|
|
|
sbto = sbt.updata_create()
|
|
|
print("SbTargets", sbto)
|
|
|
+protime(start_time)
|
|
|
|
|
|
+start_time = time.time()
|
|
|
sbtbr = SbtargetsBidRecommendations(profile_id="3006125408623189")
|
|
|
sbtbro = sbtbr.updata_create()
|
|
|
print("SbtargetsBidRecommendations", sbtbro)
|
|
|
+protime(start_time)
|
|
|
|
|
|
|