lazyad 0.0.54__tar.gz → 0.0.56__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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lazyad
3
- Version: 0.0.54
3
+ Version: 0.0.56
4
4
  Summary: 基于Python的懒人包-适用于广告投放模块
5
5
  Home-page: https://gitee.com/ZeroSeeker/lazyad
6
6
  Author: ZeroSeeker
@@ -49,7 +49,8 @@ def auth(
49
49
 
50
50
 
51
51
  def options(
52
- cookie: str
52
+ cookie: str,
53
+ query: list = None
53
54
  ):
54
55
  """
55
56
  获取系统的基本选项
@@ -68,8 +69,19 @@ def options(
68
69
  scheme = "https"
69
70
  host = "ss-api.mintegral.com"
70
71
  filename = "/api/v1/options/_batch"
72
+ if not query:
73
+ query = [
74
+ "offer",
75
+ "campaign",
76
+ "offer-status",
77
+ "billing-type",
78
+ "country",
79
+ "timezone",
80
+ "country-region-city",
81
+ "bid-type"
82
+ ]
71
83
  params = {
72
- "query": "offer,campaign,offer-status,billing-type,country,timezone,country-region-city"
84
+ "query": ",".join(query)
73
85
  }
74
86
  url = f"{scheme}://{host}{filename}"
75
87
  headers = copy.deepcopy(default_headers)
@@ -245,7 +245,8 @@ def get_offer(
245
245
  limit: int = 10,
246
246
  campaign_id: str = None,
247
247
  offer_id: str = None,
248
- package_name: str = None
248
+ package_name: str = None,
249
+ ext_fields: list = None
249
250
  ):
250
251
  """
251
252
  获取广告单元列表
@@ -257,6 +258,7 @@ def get_offer(
257
258
  :param campaign_id: 广告 ID,多个用,隔开
258
259
  :param offer_id: 广告单元 ID,多个用,隔开
259
260
  :param package_name: 包名,支持模糊查询
261
+ :param ext_fields: 扩展查询,target_app:该字段用于屏蔽或者定向具体的应用
260
262
  :return:
261
263
  """
262
264
  url = "https://ss-api.mintegral.com/api/open/v1/offers"
@@ -274,6 +276,8 @@ def get_offer(
274
276
  params["offer_id"] = offer_id
275
277
  if package_name:
276
278
  params["package_name"] = package_name
279
+ if ext_fields:
280
+ params["ext_fields"] = ",".join(ext_fields)
277
281
 
278
282
  return lazyrequests.lazy_requests(
279
283
  method="GET",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lazyad
3
- Version: 0.0.54
3
+ Version: 0.0.56
4
4
  Summary: 基于Python的懒人包-适用于广告投放模块
5
5
  Home-page: https://gitee.com/ZeroSeeker/lazyad
6
6
  Author: ZeroSeeker
@@ -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.54",
16
+ version="0.0.56",
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