lazyad 0.0.31__py3-none-any.whl → 0.0.33__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.

@@ -650,3 +650,47 @@ def get_account_report(
650
650
  json=data,
651
651
  headers=headers
652
652
  )
653
+
654
+
655
+ def update_budget_batch(
656
+ cookie: str,
657
+ media_type: str,
658
+ media_account_id: str = None,
659
+ media_account_ids: list = None,
660
+ daily_budget: str = None
661
+ ):
662
+ """
663
+ 修改账户日预算
664
+ :param cookie:
665
+ :return:
666
+ """
667
+ if media_type == "gdt":
668
+ # 目前只有旧版可以改,新版的无法改
669
+ url = "https://cli2.mobgi.com/Gdt/MainList/updateBudgetBatch"
670
+ if media_account_id:
671
+ inner_data = [
672
+ {
673
+ "media_account_id": media_account_id,
674
+ "daily_budget": daily_budget
675
+ }
676
+ ]
677
+ elif media_account_ids:
678
+ inner_data = list(map(lambda x: {"media_account_id": x, "daily_budget": daily_budget}, media_account_ids))
679
+ else:
680
+ return
681
+ data = {
682
+ "data": inner_data,
683
+ "time": "now"
684
+ }
685
+ else:
686
+ showlog.warning("未知媒体类型")
687
+ return
688
+
689
+ headers = copy.deepcopy(default_headers)
690
+ headers["Cookie"] = cookie
691
+ return lazyrequests.lazy_requests(
692
+ method="POST",
693
+ url=url,
694
+ json=data,
695
+ headers=headers
696
+ )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lazyad
3
- Version: 0.0.31
3
+ Version: 0.0.33
4
4
  Summary: 基于Python的懒人包-适用于广告投放模块
5
5
  Home-page: https://gitee.com/ZeroSeeker/lazyad
6
6
  Author: ZeroSeeker
@@ -1,11 +1,11 @@
1
1
  lazyad/__init__.py,sha256=tnVTFEgdzgMWQI0mZqy3DAueMJjpypPb15DdxJ-9TiU,41
2
2
  lazyad/crawlers/__init__.py,sha256=GK3GGpiUJbESc1uGTwSmEnsSUwYDNZfJCxeLYB4CpS4,68
3
- lazyad/crawlers/chuangliang.py,sha256=A0cM_h0VjY1c2OCjZTplCzOGSZroQGFFY3m9v_W4yGA,19541
3
+ lazyad/crawlers/chuangliang.py,sha256=LxKpK5m0gf5__aUn5T7jhCJKpl-qi-dA9dVfqTLQOes,20717
4
4
  lazyad/crawlers/oceanengine.py,sha256=kjBEpCb_h5OpodCTqzvXd5MBBwAuw3Oq5UKWoTCXrQM,4540
5
5
  lazyad/crawlers/qq.py,sha256=mAVOP1TOGVD1juu77uKBauN7vLymukTJ1mJ8uyRh9a8,3230
6
6
  lazyad/open/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  lazyad/open/qq.py,sha256=B6HWnBmtF3mbpwto1wqi7j-auK73Kzp8ESxeUpvLHRA,4391
8
- lazyad-0.0.31.dist-info/METADATA,sha256=O7FikGDmFSBipP2ge7Nlxcjr4VGIcLrYCbaR5Kkhjxk,1695
9
- lazyad-0.0.31.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
10
- lazyad-0.0.31.dist-info/top_level.txt,sha256=RAPjtj4gZYpsKAM3fAQrWyyn84xjdRuaiUS76gx6eNs,7
11
- lazyad-0.0.31.dist-info/RECORD,,
8
+ lazyad-0.0.33.dist-info/METADATA,sha256=vQMlE8mjMlg8KDiVmnka2N2cE7qY9wcDGD4UN19IDE8,1695
9
+ lazyad-0.0.33.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
10
+ lazyad-0.0.33.dist-info/top_level.txt,sha256=RAPjtj4gZYpsKAM3fAQrWyyn84xjdRuaiUS76gx6eNs,7
11
+ lazyad-0.0.33.dist-info/RECORD,,