lazyad 0.0.49__tar.gz → 0.0.51__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.49
3
+ Version: 0.0.51
4
4
  Summary: 基于Python的懒人包-适用于广告投放模块
5
5
  Home-page: https://gitee.com/ZeroSeeker/lazyad
6
6
  Author: ZeroSeeker
@@ -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
@@ -280,8 +281,18 @@ def reports(
280
281
  d7LevelCompleteRate
281
282
  d14LevelCompleteRate
282
283
  :param breakdowns:
283
- app,campaign,country,creativePack,
284
- creativePackType,osVersion,platform,sourceAppId,store,targetGame,eventType,eventName
284
+ app,
285
+ campaign,
286
+ country,
287
+ creativePack,
288
+ creativePackType,
289
+ osVersion,
290
+ platform,
291
+ sourceAppId,
292
+ store,
293
+ targetGame,
294
+ eventType,
295
+ eventName
285
296
  :return:
286
297
  """
287
298
  authorization = f"Basic {keyid}:{secret_key}"
@@ -306,16 +317,11 @@ def reports(
306
317
  params["end"] = end
307
318
 
308
319
  headers = {"Authorization": authorization}
309
- response = lazyrequests.lazy_requests(
320
+ return lazyrequests.lazy_requests(
310
321
  method="GET",
311
322
  url=url,
312
323
  params=params,
313
- headers=headers
324
+ headers=headers,
325
+ return_json=False,
326
+ timeout=timeout
314
327
  )
315
-
316
- status = response.get("status")
317
- if status is None:
318
- data = response.get("data")
319
- return data
320
- else:
321
- return response
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lazyad
3
- Version: 0.0.49
3
+ Version: 0.0.51
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.49",
16
+ version="0.0.51",
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