lazyad 0.0.28__tar.gz → 0.0.30__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.28
3
+ Version: 0.0.30
4
4
  Summary: 基于Python的懒人包-适用于广告投放模块
5
5
  Home-page: https://gitee.com/ZeroSeeker/lazyad
6
6
  Author: ZeroSeeker
@@ -397,6 +397,40 @@ def update_ad_batch(
397
397
  )
398
398
 
399
399
 
400
+ def update_creative_batch(
401
+ cookie,
402
+ media_type: str,
403
+
404
+ creative_ids: list = None,
405
+ advertiser_ids: list = None,
406
+
407
+ operate: str = "creative_disable"
408
+ ):
409
+ """
410
+ 修改创意状态
411
+ :return:
412
+ """
413
+ headers = copy.deepcopy(default_headers)
414
+ headers["Cookie"] = cookie
415
+ if media_type == "gdt_upgrade":
416
+ url = "https://cli2.mobgi.com/Gdt/MainList/updateCreativeBatchV1"
417
+ post_data = {
418
+ "advertiser_ids": advertiser_ids,
419
+ "creative_ids": creative_ids,
420
+ "value": "",
421
+ "field": operate
422
+ }
423
+
424
+ else:
425
+ return
426
+ return lazyrequests.lazy_requests(
427
+ method="POST",
428
+ url=url,
429
+ json=post_data,
430
+ headers=headers
431
+ )
432
+
433
+
400
434
  def get_material_report(
401
435
  cookie: str,
402
436
  start_date: str = None,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lazyad
3
- Version: 0.0.28
3
+ Version: 0.0.30
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.28",
16
+ version="0.0.30",
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