lazyad 0.0.50__tar.gz → 0.0.52__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.50
3
+ Version: 0.0.52
4
4
  Summary: 基于Python的懒人包-适用于广告投放模块
5
5
  Home-page: https://gitee.com/ZeroSeeker/lazyad
6
6
  Author: ZeroSeeker
@@ -376,3 +376,25 @@ def get_campaign(
376
376
  params=params
377
377
  )
378
378
 
379
+
380
+ def get_account_balance(
381
+ api_key: str,
382
+ access_key: str,
383
+ ):
384
+ """
385
+ 获取账户余额(含有账户id信息)
386
+ https://adv.mintegral.com/doc/cn/guide/account/getAccountBalance.html
387
+ :param api_key:
388
+ :param access_key:
389
+ :return:
390
+ """
391
+ token_info = make_token(api_key=api_key)
392
+ params = {"access-key": access_key}
393
+ params.update(token_info)
394
+ url = "https://ss-api.mintegral.com/api/open/v1/account/balance"
395
+ return lazyrequests.lazy_requests(
396
+ method="GET",
397
+ url=url,
398
+ params=params
399
+ )
400
+
@@ -205,7 +205,8 @@ def reports(
205
205
  end: str,
206
206
  scale: str = "day",
207
207
  metrics: list = None,
208
- breakdowns: list = None
208
+ breakdowns: list = None,
209
+ timeout: int = 60
209
210
  ):
210
211
  """
211
212
  https://services.docs.unity.com/statistics/index.html#tag/Acquisitions/operation/stats_acquisition
@@ -320,5 +321,7 @@ def reports(
320
321
  method="GET",
321
322
  url=url,
322
323
  params=params,
323
- headers=headers
324
+ headers=headers,
325
+ return_json=False,
326
+ timeout=timeout
324
327
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lazyad
3
- Version: 0.0.50
3
+ Version: 0.0.52
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.50",
16
+ version="0.0.52",
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