lazyad 0.0.32__tar.gz → 0.0.33__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.32
3
+ Version: 0.0.33
4
4
  Summary: 基于Python的懒人包-适用于广告投放模块
5
5
  Home-page: https://gitee.com/ZeroSeeker/lazyad
6
6
  Author: ZeroSeeker
@@ -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,19 @@ 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(map(lambda x: {"media_account_id": x, "daily_budget": daily_budget}, media_account_ids))
679
+ else:
680
+ return
681
+ data = {
682
+ "data": inner_data,
676
683
  "time": "now"
677
684
  }
678
685
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lazyad
3
- Version: 0.0.32
3
+ Version: 0.0.33
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.32",
16
+ version="0.0.33",
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