lazyad 0.0.23__tar.gz → 0.0.24__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.23 → lazyad-0.0.24}/PKG-INFO +1 -1
- {lazyad-0.0.23 → lazyad-0.0.24}/lazyad/crawlers/chuangliang.py +14 -2
- {lazyad-0.0.23 → lazyad-0.0.24}/lazyad.egg-info/PKG-INFO +1 -1
- {lazyad-0.0.23 → lazyad-0.0.24}/setup.py +1 -1
- {lazyad-0.0.23 → lazyad-0.0.24}/README.md +0 -0
- {lazyad-0.0.23 → lazyad-0.0.24}/lazyad/__init__.py +0 -0
- {lazyad-0.0.23 → lazyad-0.0.24}/lazyad/crawlers/__init__.py +0 -0
- {lazyad-0.0.23 → lazyad-0.0.24}/lazyad/crawlers/oceanengine.py +0 -0
- {lazyad-0.0.23 → lazyad-0.0.24}/lazyad/crawlers/qq.py +0 -0
- {lazyad-0.0.23 → lazyad-0.0.24}/lazyad/open/__init__.py +0 -0
- {lazyad-0.0.23 → lazyad-0.0.24}/lazyad/open/qq.py +0 -0
- {lazyad-0.0.23 → lazyad-0.0.24}/lazyad.egg-info/SOURCES.txt +0 -0
- {lazyad-0.0.23 → lazyad-0.0.24}/lazyad.egg-info/dependency_links.txt +0 -0
- {lazyad-0.0.23 → lazyad-0.0.24}/lazyad.egg-info/requires.txt +0 -0
- {lazyad-0.0.23 → lazyad-0.0.24}/lazyad.egg-info/top_level.txt +0 -0
- {lazyad-0.0.23 → lazyad-0.0.24}/setup.cfg +0 -0
|
@@ -319,7 +319,10 @@ def update_ad_batch(
|
|
|
319
319
|
advertiser_ids: list = None,
|
|
320
320
|
campaign_id: int = None,
|
|
321
321
|
campaign_ids: list = None,
|
|
322
|
-
|
|
322
|
+
adgroup_feed_id: int = None,
|
|
323
|
+
adgroup_feed_ids: list = None,
|
|
324
|
+
field: str = "disable",
|
|
325
|
+
operate: str = "disable"
|
|
323
326
|
):
|
|
324
327
|
"""
|
|
325
328
|
暂停广告
|
|
@@ -354,6 +357,15 @@ def update_ad_batch(
|
|
|
354
357
|
}
|
|
355
358
|
else:
|
|
356
359
|
return
|
|
360
|
+
elif media_type == "baidu":
|
|
361
|
+
url = "https://cli2.mobgi.com/Baidu/AdGroup/batchUpdate"
|
|
362
|
+
if not adgroup_feed_ids:
|
|
363
|
+
adgroup_feed_ids = [adgroup_feed_id]
|
|
364
|
+
post_data = {
|
|
365
|
+
"adgroup_feed_ids": adgroup_feed_ids,
|
|
366
|
+
"opt_status": operate
|
|
367
|
+
}
|
|
368
|
+
|
|
357
369
|
else:
|
|
358
370
|
return
|
|
359
371
|
return lazyrequests.lazy_requests(
|
|
@@ -392,7 +404,7 @@ def get_material_report(
|
|
|
392
404
|
:param data_type:
|
|
393
405
|
:param sort_direction:
|
|
394
406
|
:param sort_field:
|
|
395
|
-
:param time_dim:
|
|
407
|
+
:param time_dim: 时间维度的数据汇总方式,days:分日,sum:汇总
|
|
396
408
|
:param conditions:
|
|
397
409
|
:param kpis:
|
|
398
410
|
:param relate_dims:
|
|
@@ -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.24",
|
|
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
|