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.
- {lazyad-0.0.49 → lazyad-0.0.51}/PKG-INFO +1 -1
- {lazyad-0.0.49 → lazyad-0.0.51}/lazyad/open/unity.py +18 -12
- {lazyad-0.0.49 → lazyad-0.0.51}/lazyad.egg-info/PKG-INFO +1 -1
- {lazyad-0.0.49 → lazyad-0.0.51}/setup.py +1 -1
- {lazyad-0.0.49 → lazyad-0.0.51}/README.md +0 -0
- {lazyad-0.0.49 → lazyad-0.0.51}/lazyad/__init__.py +0 -0
- {lazyad-0.0.49 → lazyad-0.0.51}/lazyad/crawlers/__init__.py +0 -0
- {lazyad-0.0.49 → lazyad-0.0.51}/lazyad/crawlers/chuangliang.py +0 -0
- {lazyad-0.0.49 → lazyad-0.0.51}/lazyad/crawlers/mintegral.py +0 -0
- {lazyad-0.0.49 → lazyad-0.0.51}/lazyad/crawlers/oceanengine.py +0 -0
- {lazyad-0.0.49 → lazyad-0.0.51}/lazyad/crawlers/qq.py +0 -0
- {lazyad-0.0.49 → lazyad-0.0.51}/lazyad/open/__init__.py +0 -0
- {lazyad-0.0.49 → lazyad-0.0.51}/lazyad/open/mintegral.py +0 -0
- {lazyad-0.0.49 → lazyad-0.0.51}/lazyad/open/qq.py +0 -0
- {lazyad-0.0.49 → lazyad-0.0.51}/lazyad.egg-info/SOURCES.txt +0 -0
- {lazyad-0.0.49 → lazyad-0.0.51}/lazyad.egg-info/dependency_links.txt +0 -0
- {lazyad-0.0.49 → lazyad-0.0.51}/lazyad.egg-info/requires.txt +0 -0
- {lazyad-0.0.49 → lazyad-0.0.51}/lazyad.egg-info/top_level.txt +0 -0
- {lazyad-0.0.49 → lazyad-0.0.51}/setup.cfg +0 -0
|
@@ -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,
|
|
284
|
-
|
|
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
|
-
|
|
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
|
|
@@ -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.
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|