lazyad 0.0.66__py3-none-any.whl → 0.0.67__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.

@@ -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 == "gdt_new":
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
- return
196
+ showlog.warning("未知媒体类型,不指定默认参数")
197
+ pass
196
198
 
197
199
  headers = copy.deepcopy(default_headers)
198
200
  headers["Cookie"] = cookie
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lazyad
3
- Version: 0.0.66
3
+ Version: 0.0.67
4
4
  Summary: 基于Python的懒人包-适用于广告投放模块
5
5
  Home-page: https://gitee.com/ZeroSeeker/lazyad
6
6
  Author: ZeroSeeker
@@ -1,6 +1,6 @@
1
1
  lazyad/__init__.py,sha256=tnVTFEgdzgMWQI0mZqy3DAueMJjpypPb15DdxJ-9TiU,41
2
2
  lazyad/crawlers/__init__.py,sha256=GK3GGpiUJbESc1uGTwSmEnsSUwYDNZfJCxeLYB4CpS4,68
3
- lazyad/crawlers/chuangliang.py,sha256=EofgBxyMYALAjLOy4OSt1-8KeFaCjQ6srfcWyw5Nl7g,28580
3
+ lazyad/crawlers/chuangliang.py,sha256=leg3mfaS0obd3OZ3e5PnBFLd9M3ln8wF0kfOcVOlnnM,28677
4
4
  lazyad/crawlers/mintegral.py,sha256=FNd9CAZd0x_jZdrSKunODYGJJb6EJofmq0kQzSDu2Yg,11154
5
5
  lazyad/crawlers/oceanengine.py,sha256=kjBEpCb_h5OpodCTqzvXd5MBBwAuw3Oq5UKWoTCXrQM,4540
6
6
  lazyad/crawlers/qq.py,sha256=X_VjdgzAcDfckEAHrvdqBLtnmAuCBHPJVWu2H-IHZBA,5649
@@ -10,7 +10,7 @@ lazyad/open/kuaishou.py,sha256=B4wz3XW1hLQy7XR_nDQwrMUrYnm9Djec7OXKXRdiYXc,635
10
10
  lazyad/open/mintegral.py,sha256=BXCaCfnz2iUsR-RtDSA8I27KSK8r4v3xkZfllD9q_vY,12788
11
11
  lazyad/open/qq.py,sha256=pru1p4LCjURD9N5ukx-OStYAmDCvrTW4VMB2N0-3i5Q,6904
12
12
  lazyad/open/unity.py,sha256=A0tEN5k40xq0v1cRnTLwRN5N7CBIe2oAyMRH1uxDAEw,8493
13
- lazyad-0.0.66.dist-info/METADATA,sha256=0Y3Jh7pcdmVxVSEWsI_8V2M8YcVhiz86UIcYbXce3ws,1916
14
- lazyad-0.0.66.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
15
- lazyad-0.0.66.dist-info/top_level.txt,sha256=RAPjtj4gZYpsKAM3fAQrWyyn84xjdRuaiUS76gx6eNs,7
16
- lazyad-0.0.66.dist-info/RECORD,,
13
+ lazyad-0.0.67.dist-info/METADATA,sha256=LebzW06KFu0W9_N6rjl2CqP6ckqTtU21vPDOwMA2Sok,1916
14
+ lazyad-0.0.67.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
15
+ lazyad-0.0.67.dist-info/top_level.txt,sha256=RAPjtj4gZYpsKAM3fAQrWyyn84xjdRuaiUS76gx6eNs,7
16
+ lazyad-0.0.67.dist-info/RECORD,,