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

@@ -656,6 +656,7 @@ def update_budget_batch(
656
656
  cookie: str,
657
657
  media_type: str,
658
658
  media_account_id: str = None,
659
+ media_account_ids: list = None,
659
660
  daily_budget: str = None
660
661
  ):
661
662
  """
@@ -666,13 +667,26 @@ def update_budget_batch(
666
667
  if media_type == "gdt":
667
668
  # 目前只有旧版可以改,新版的无法改
668
669
  url = "https://cli2.mobgi.com/Gdt/MainList/updateBudgetBatch"
669
- data = {
670
- "data": [
670
+ if media_account_id:
671
+ inner_data = [
671
672
  {
672
673
  "media_account_id": media_account_id,
673
674
  "daily_budget": daily_budget
674
675
  }
675
- ],
676
+ ]
677
+ elif media_account_ids:
678
+ inner_data = list()
679
+ for media_account_id_ in media_account_ids:
680
+ inner_data.append(
681
+ {
682
+ "media_account_id": media_account_id_,
683
+ "daily_budget": daily_budget
684
+ }
685
+ )
686
+ else:
687
+ return
688
+ data = {
689
+ "data": inner_data,
676
690
  "time": "now"
677
691
  }
678
692
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lazyad
3
- Version: 0.0.32
3
+ Version: 0.0.34
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=s_0agSrJIvrz4Eke1RolFrr-IRrBKiECdo5nCIBqY98,20428
3
+ lazyad/crawlers/chuangliang.py,sha256=ZwxvRYD50fI6qVSlJl-Q_t2cCQXlSURFkZ83r-_n1_8,20899
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.32.dist-info/METADATA,sha256=ObTWMEsae6RN8JBKkeB74h2j7jqYI6wzSxeGAOM3HBE,1695
9
- lazyad-0.0.32.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
10
- lazyad-0.0.32.dist-info/top_level.txt,sha256=RAPjtj4gZYpsKAM3fAQrWyyn84xjdRuaiUS76gx6eNs,7
11
- lazyad-0.0.32.dist-info/RECORD,,
8
+ lazyad-0.0.34.dist-info/METADATA,sha256=OoOdvWve-FsDi7iSoOq4_h3YhLrTmzL4MVU63m3O2Uk,1695
9
+ lazyad-0.0.34.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
10
+ lazyad-0.0.34.dist-info/top_level.txt,sha256=RAPjtj4gZYpsKAM3fAQrWyyn84xjdRuaiUS76gx6eNs,7
11
+ lazyad-0.0.34.dist-info/RECORD,,