lazyad 0.0.18__tar.gz → 0.0.20__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.18 → lazyad-0.0.20}/PKG-INFO +1 -1
- {lazyad-0.0.18 → lazyad-0.0.20}/lazyad/crawlers/chuangliang.py +6 -2
- {lazyad-0.0.18 → lazyad-0.0.20}/lazyad.egg-info/PKG-INFO +1 -1
- {lazyad-0.0.18 → lazyad-0.0.20}/setup.py +1 -1
- {lazyad-0.0.18 → lazyad-0.0.20}/README.md +0 -0
- {lazyad-0.0.18 → lazyad-0.0.20}/lazyad/__init__.py +0 -0
- {lazyad-0.0.18 → lazyad-0.0.20}/lazyad/crawlers/__init__.py +0 -0
- {lazyad-0.0.18 → lazyad-0.0.20}/lazyad/crawlers/oceanengine.py +0 -0
- {lazyad-0.0.18 → lazyad-0.0.20}/lazyad/crawlers/qq.py +0 -0
- {lazyad-0.0.18 → lazyad-0.0.20}/lazyad/open/__init__.py +0 -0
- {lazyad-0.0.18 → lazyad-0.0.20}/lazyad/open/qq.py +0 -0
- {lazyad-0.0.18 → lazyad-0.0.20}/lazyad.egg-info/SOURCES.txt +0 -0
- {lazyad-0.0.18 → lazyad-0.0.20}/lazyad.egg-info/dependency_links.txt +0 -0
- {lazyad-0.0.18 → lazyad-0.0.20}/lazyad.egg-info/requires.txt +0 -0
- {lazyad-0.0.18 → lazyad-0.0.20}/lazyad.egg-info/top_level.txt +0 -0
- {lazyad-0.0.18 → lazyad-0.0.20}/setup.cfg +0 -0
|
@@ -218,7 +218,8 @@ def get_plan_list(
|
|
|
218
218
|
advertiser_id: int = None,
|
|
219
219
|
cdt_start_date: str = None,
|
|
220
220
|
cdt_end_date: str = None,
|
|
221
|
-
kpis: list = None
|
|
221
|
+
kpis: list = None,
|
|
222
|
+
req_source: str = None
|
|
222
223
|
):
|
|
223
224
|
"""
|
|
224
225
|
获取推广计划
|
|
@@ -237,6 +238,7 @@ def get_plan_list(
|
|
|
237
238
|
:param cdt_start_date: 创建开始时间
|
|
238
239
|
:param cdt_end_date: 创建结束时间
|
|
239
240
|
:param kpis:
|
|
241
|
+
:param req_source: 腾讯需要的参数
|
|
240
242
|
:return:
|
|
241
243
|
"""
|
|
242
244
|
if not start_date:
|
|
@@ -246,7 +248,7 @@ def get_plan_list(
|
|
|
246
248
|
if not cdt_start_date:
|
|
247
249
|
cdt_start_date = lazytime.get_date_string(days=-365)
|
|
248
250
|
if not cdt_end_date:
|
|
249
|
-
cdt_end_date =
|
|
251
|
+
cdt_end_date = lazytime.get_date_string(days=0)
|
|
250
252
|
data = {
|
|
251
253
|
"start_date": start_date,
|
|
252
254
|
"end_date": end_date,
|
|
@@ -293,6 +295,8 @@ def get_plan_list(
|
|
|
293
295
|
data["conditions"] = json.dumps(conditions)
|
|
294
296
|
if kpis:
|
|
295
297
|
data["kpis"] = kpis
|
|
298
|
+
if req_source:
|
|
299
|
+
data["req_source"] = req_source
|
|
296
300
|
else:
|
|
297
301
|
return
|
|
298
302
|
headers = copy.deepcopy(default_headers)
|
|
@@ -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.20",
|
|
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
|