lazyad 0.0.66__tar.gz → 0.0.67__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.66 → lazyad-0.0.67}/PKG-INFO +1 -1
- {lazyad-0.0.66 → lazyad-0.0.67}/lazyad/crawlers/chuangliang.py +5 -3
- {lazyad-0.0.66 → lazyad-0.0.67}/lazyad.egg-info/PKG-INFO +1 -1
- {lazyad-0.0.66 → lazyad-0.0.67}/setup.py +1 -1
- {lazyad-0.0.66 → lazyad-0.0.67}/README.md +0 -0
- {lazyad-0.0.66 → lazyad-0.0.67}/lazyad/__init__.py +0 -0
- {lazyad-0.0.66 → lazyad-0.0.67}/lazyad/crawlers/__init__.py +0 -0
- {lazyad-0.0.66 → lazyad-0.0.67}/lazyad/crawlers/mintegral.py +0 -0
- {lazyad-0.0.66 → lazyad-0.0.67}/lazyad/crawlers/oceanengine.py +0 -0
- {lazyad-0.0.66 → lazyad-0.0.67}/lazyad/crawlers/qq.py +0 -0
- {lazyad-0.0.66 → lazyad-0.0.67}/lazyad/crawlers/wshoto.py +0 -0
- {lazyad-0.0.66 → lazyad-0.0.67}/lazyad/open/__init__.py +0 -0
- {lazyad-0.0.66 → lazyad-0.0.67}/lazyad/open/kuaishou.py +0 -0
- {lazyad-0.0.66 → lazyad-0.0.67}/lazyad/open/mintegral.py +0 -0
- {lazyad-0.0.66 → lazyad-0.0.67}/lazyad/open/qq.py +0 -0
- {lazyad-0.0.66 → lazyad-0.0.67}/lazyad/open/unity.py +0 -0
- {lazyad-0.0.66 → lazyad-0.0.67}/lazyad.egg-info/SOURCES.txt +0 -0
- {lazyad-0.0.66 → lazyad-0.0.67}/lazyad.egg-info/dependency_links.txt +0 -0
- {lazyad-0.0.66 → lazyad-0.0.67}/lazyad.egg-info/requires.txt +0 -0
- {lazyad-0.0.66 → lazyad-0.0.67}/lazyad.egg-info/top_level.txt +0 -0
- {lazyad-0.0.66 → lazyad-0.0.67}/setup.cfg +0 -0
|
@@ -77,6 +77,7 @@ def get_ad_report(
|
|
|
77
77
|
kpis: list = None,
|
|
78
78
|
relate_dims: list = None,
|
|
79
79
|
host: str = default_host,
|
|
80
|
+
db_type: str = "doris"
|
|
80
81
|
):
|
|
81
82
|
"""
|
|
82
83
|
报表-广告报表
|
|
@@ -112,6 +113,7 @@ def get_ad_report(
|
|
|
112
113
|
"data_dim": data_dim,
|
|
113
114
|
"sort_field": sort_field,
|
|
114
115
|
"sort_direction": sort_direction,
|
|
116
|
+
"db_type": db_type
|
|
115
117
|
}
|
|
116
118
|
if media_type == "baidu":
|
|
117
119
|
if not conditions:
|
|
@@ -134,7 +136,7 @@ def get_ad_report(
|
|
|
134
136
|
if not relate_dims:
|
|
135
137
|
relate_dims = ["advertiser_id"]
|
|
136
138
|
|
|
137
|
-
elif media_type
|
|
139
|
+
elif media_type in ["gdt_new", "gdt_upgrade"]:
|
|
138
140
|
if not conditions:
|
|
139
141
|
conditions = {
|
|
140
142
|
"keyword": "",
|
|
@@ -191,8 +193,8 @@ def get_ad_report(
|
|
|
191
193
|
relate_dims = ["advertiser_id"]
|
|
192
194
|
|
|
193
195
|
else:
|
|
194
|
-
showlog.warning("
|
|
195
|
-
|
|
196
|
+
showlog.warning("未知媒体类型,不指定默认参数")
|
|
197
|
+
pass
|
|
196
198
|
|
|
197
199
|
headers = copy.deepcopy(default_headers)
|
|
198
200
|
headers["Cookie"] = cookie
|
|
@@ -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.67",
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|