lazyad 0.0.28__py3-none-any.whl → 0.0.30__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of lazyad might be problematic. Click here for more details.
- lazyad/crawlers/chuangliang.py +34 -0
- {lazyad-0.0.28.dist-info → lazyad-0.0.30.dist-info}/METADATA +1 -1
- {lazyad-0.0.28.dist-info → lazyad-0.0.30.dist-info}/RECORD +5 -5
- {lazyad-0.0.28.dist-info → lazyad-0.0.30.dist-info}/WHEEL +0 -0
- {lazyad-0.0.28.dist-info → lazyad-0.0.30.dist-info}/top_level.txt +0 -0
lazyad/crawlers/chuangliang.py
CHANGED
|
@@ -397,6 +397,40 @@ def update_ad_batch(
|
|
|
397
397
|
)
|
|
398
398
|
|
|
399
399
|
|
|
400
|
+
def update_creative_batch(
|
|
401
|
+
cookie,
|
|
402
|
+
media_type: str,
|
|
403
|
+
|
|
404
|
+
creative_ids: list = None,
|
|
405
|
+
advertiser_ids: list = None,
|
|
406
|
+
|
|
407
|
+
operate: str = "creative_disable"
|
|
408
|
+
):
|
|
409
|
+
"""
|
|
410
|
+
修改创意状态
|
|
411
|
+
:return:
|
|
412
|
+
"""
|
|
413
|
+
headers = copy.deepcopy(default_headers)
|
|
414
|
+
headers["Cookie"] = cookie
|
|
415
|
+
if media_type == "gdt_upgrade":
|
|
416
|
+
url = "https://cli2.mobgi.com/Gdt/MainList/updateCreativeBatchV1"
|
|
417
|
+
post_data = {
|
|
418
|
+
"advertiser_ids": advertiser_ids,
|
|
419
|
+
"creative_ids": creative_ids,
|
|
420
|
+
"value": "",
|
|
421
|
+
"field": operate
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
else:
|
|
425
|
+
return
|
|
426
|
+
return lazyrequests.lazy_requests(
|
|
427
|
+
method="POST",
|
|
428
|
+
url=url,
|
|
429
|
+
json=post_data,
|
|
430
|
+
headers=headers
|
|
431
|
+
)
|
|
432
|
+
|
|
433
|
+
|
|
400
434
|
def get_material_report(
|
|
401
435
|
cookie: str,
|
|
402
436
|
start_date: str = None,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
lazyad/__init__.py,sha256=tnVTFEgdzgMWQI0mZqy3DAueMJjpypPb15DdxJ-9TiU,41
|
|
2
2
|
lazyad/crawlers/__init__.py,sha256=GK3GGpiUJbESc1uGTwSmEnsSUwYDNZfJCxeLYB4CpS4,68
|
|
3
|
-
lazyad/crawlers/chuangliang.py,sha256=
|
|
3
|
+
lazyad/crawlers/chuangliang.py,sha256=wnfWfJ_n-Z8LNeP1NSz5R2_F2Kg5AqCb-VvDJG9t7WQ,16800
|
|
4
4
|
lazyad/crawlers/oceanengine.py,sha256=kjBEpCb_h5OpodCTqzvXd5MBBwAuw3Oq5UKWoTCXrQM,4540
|
|
5
5
|
lazyad/crawlers/qq.py,sha256=mAVOP1TOGVD1juu77uKBauN7vLymukTJ1mJ8uyRh9a8,3230
|
|
6
6
|
lazyad/open/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
lazyad/open/qq.py,sha256=B6HWnBmtF3mbpwto1wqi7j-auK73Kzp8ESxeUpvLHRA,4391
|
|
8
|
-
lazyad-0.0.
|
|
9
|
-
lazyad-0.0.
|
|
10
|
-
lazyad-0.0.
|
|
11
|
-
lazyad-0.0.
|
|
8
|
+
lazyad-0.0.30.dist-info/METADATA,sha256=qsJxeHf857ao6i_uvtt9Ihmt5gZMjMKbCN25eXa9tfk,1695
|
|
9
|
+
lazyad-0.0.30.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
|
10
|
+
lazyad-0.0.30.dist-info/top_level.txt,sha256=RAPjtj4gZYpsKAM3fAQrWyyn84xjdRuaiUS76gx6eNs,7
|
|
11
|
+
lazyad-0.0.30.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|