lazyad 0.0.43__tar.gz → 0.0.44__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.43
3
+ Version: 0.0.44
4
4
  Summary: 基于Python的懒人包-适用于广告投放模块
5
5
  Home-page: https://gitee.com/ZeroSeeker/lazyad
6
6
  Author: ZeroSeeker
@@ -347,3 +347,32 @@ def update_budget(
347
347
  "mtgid": mtgid
348
348
  }
349
349
  )
350
+
351
+
352
+ def get_campaign(
353
+ api_key: str,
354
+ access_key: str,
355
+ page: int = 1,
356
+ limit: int = 50
357
+ ):
358
+ """
359
+ 获取广告
360
+ https://adv.mintegral.com/doc/cn/guide/campaign/getCampaign.html
361
+ :param api_key:
362
+ :param access_key:
363
+ :param page:
364
+ :param limit:
365
+ :return:
366
+ """
367
+ url = "https://ss-api.mintegral.com/api/open/v1/campaign"
368
+ token_info = make_token(api_key=api_key)
369
+ params = {"access-key": access_key}
370
+ params.update(token_info)
371
+ params["page"] = page
372
+ params["limit"] = limit
373
+ return lazyrequests.lazy_requests(
374
+ method="GET",
375
+ url=url,
376
+ params=params
377
+ )
378
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lazyad
3
- Version: 0.0.43
3
+ Version: 0.0.44
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.43",
16
+ version="0.0.44",
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