lazyad 0.0.25__tar.gz → 0.0.26__tar.gz
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-0.0.25 → lazyad-0.0.26}/PKG-INFO +1 -1
- {lazyad-0.0.25 → lazyad-0.0.26}/lazyad/crawlers/chuangliang.py +12 -0
- {lazyad-0.0.25 → lazyad-0.0.26}/lazyad.egg-info/PKG-INFO +1 -1
- {lazyad-0.0.25 → lazyad-0.0.26}/setup.py +1 -1
- {lazyad-0.0.25 → lazyad-0.0.26}/README.md +0 -0
- {lazyad-0.0.25 → lazyad-0.0.26}/lazyad/__init__.py +0 -0
- {lazyad-0.0.25 → lazyad-0.0.26}/lazyad/crawlers/__init__.py +0 -0
- {lazyad-0.0.25 → lazyad-0.0.26}/lazyad/crawlers/oceanengine.py +0 -0
- {lazyad-0.0.25 → lazyad-0.0.26}/lazyad/crawlers/qq.py +0 -0
- {lazyad-0.0.25 → lazyad-0.0.26}/lazyad/open/__init__.py +0 -0
- {lazyad-0.0.25 → lazyad-0.0.26}/lazyad/open/qq.py +0 -0
- {lazyad-0.0.25 → lazyad-0.0.26}/lazyad.egg-info/SOURCES.txt +0 -0
- {lazyad-0.0.25 → lazyad-0.0.26}/lazyad.egg-info/dependency_links.txt +0 -0
- {lazyad-0.0.25 → lazyad-0.0.26}/lazyad.egg-info/requires.txt +0 -0
- {lazyad-0.0.25 → lazyad-0.0.26}/lazyad.egg-info/top_level.txt +0 -0
- {lazyad-0.0.25 → lazyad-0.0.26}/setup.cfg +0 -0
|
@@ -321,6 +321,10 @@ def update_ad_batch(
|
|
|
321
321
|
campaign_ids: list = None,
|
|
322
322
|
adgroup_feed_id: int = None,
|
|
323
323
|
adgroup_feed_ids: list = None,
|
|
324
|
+
|
|
325
|
+
promotion_id: int = None,
|
|
326
|
+
promotion_ids: list = None,
|
|
327
|
+
|
|
324
328
|
operate: str = "disable",
|
|
325
329
|
|
|
326
330
|
end_point: str = None,
|
|
@@ -361,6 +365,14 @@ def update_ad_batch(
|
|
|
361
365
|
"adgroup_feed_ids": adgroup_feed_ids,
|
|
362
366
|
"opt_status": operate
|
|
363
367
|
}
|
|
368
|
+
elif media_type == "toutiao_upgrade":
|
|
369
|
+
url = "https://cli2.mobgi.com/Toutiao/Promotion/updateStatus"
|
|
370
|
+
if promotion_id and not promotion_ids:
|
|
371
|
+
promotion_ids = [promotion_id]
|
|
372
|
+
post_data = {
|
|
373
|
+
"promotion_ids": promotion_ids,
|
|
374
|
+
"opt_status": operate
|
|
375
|
+
}
|
|
364
376
|
else:
|
|
365
377
|
return
|
|
366
378
|
return lazyrequests.lazy_requests(
|
|
@@ -13,7 +13,7 @@ with open("README.md", "r", encoding='utf-8') as fh:
|
|
|
13
13
|
|
|
14
14
|
setuptools.setup(
|
|
15
15
|
name="lazyad",
|
|
16
|
-
version="0.0.
|
|
16
|
+
version="0.0.26",
|
|
17
17
|
description="基于Python的懒人包-适用于广告投放模块",
|
|
18
18
|
long_description=long_description,
|
|
19
19
|
long_description_content_type="text/markdown",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|