lazyad 0.0.43__py3-none-any.whl → 0.0.44__py3-none-any.whl
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/open/mintegral.py
CHANGED
|
@@ -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
|
+
|
|
@@ -5,9 +5,9 @@ lazyad/crawlers/mintegral.py,sha256=vgF1TwnvvqAVvZPqRRJyZ0qo1_9ARVt2f2brKjdkyvU,
|
|
|
5
5
|
lazyad/crawlers/oceanengine.py,sha256=kjBEpCb_h5OpodCTqzvXd5MBBwAuw3Oq5UKWoTCXrQM,4540
|
|
6
6
|
lazyad/crawlers/qq.py,sha256=X_VjdgzAcDfckEAHrvdqBLtnmAuCBHPJVWu2H-IHZBA,5649
|
|
7
7
|
lazyad/open/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
|
-
lazyad/open/mintegral.py,sha256=
|
|
8
|
+
lazyad/open/mintegral.py,sha256=iybtS0u9WFbZwEXnIKeFzDth4peqOfFqZUSl0oKLkiM,11581
|
|
9
9
|
lazyad/open/qq.py,sha256=pru1p4LCjURD9N5ukx-OStYAmDCvrTW4VMB2N0-3i5Q,6904
|
|
10
|
-
lazyad-0.0.
|
|
11
|
-
lazyad-0.0.
|
|
12
|
-
lazyad-0.0.
|
|
13
|
-
lazyad-0.0.
|
|
10
|
+
lazyad-0.0.44.dist-info/METADATA,sha256=xTxAVtdtUPbKET979M0Lf1whm7eGxD2rca0cKjTFjZg,1884
|
|
11
|
+
lazyad-0.0.44.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
|
12
|
+
lazyad-0.0.44.dist-info/top_level.txt,sha256=RAPjtj4gZYpsKAM3fAQrWyyn84xjdRuaiUS76gx6eNs,7
|
|
13
|
+
lazyad-0.0.44.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|