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

@@ -321,6 +321,10 @@ def update_ad_batch(
321
321
  campaign_ids: list = None,
322
322
  adgroup_feed_id: int = None,
323
323
  adgroup_feed_ids: list = None,
324
+
325
+ promotion_id: int = None,
326
+ promotion_ids: list = None,
327
+
324
328
  operate: str = "disable",
325
329
 
326
330
  end_point: str = None,
@@ -361,6 +365,14 @@ def update_ad_batch(
361
365
  "adgroup_feed_ids": adgroup_feed_ids,
362
366
  "opt_status": operate
363
367
  }
368
+ elif media_type == "toutiao_upgrade":
369
+ url = "https://cli2.mobgi.com/Toutiao/Promotion/updateStatus"
370
+ if promotion_id and not promotion_ids:
371
+ promotion_ids = [promotion_id]
372
+ post_data = {
373
+ "promotion_ids": promotion_ids,
374
+ "opt_status": operate
375
+ }
364
376
  else:
365
377
  return
366
378
  return lazyrequests.lazy_requests(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lazyad
3
- Version: 0.0.25
3
+ Version: 0.0.26
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=FeoFvE-GP69ukAcIT5UMJUTZFYWmcXOnZ-PiD5Q5APQ,15140
3
+ lazyad/crawlers/chuangliang.py,sha256=Pt1T28Uln2w-B8xc57gmYi2typ4ZcOept0BmfVarhJA,15524
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.25.dist-info/METADATA,sha256=MPIxmZ7ucAb-Ps8TTFPVGxG-Gnx-qhUJpk5vQiAfJow,1695
9
- lazyad-0.0.25.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
10
- lazyad-0.0.25.dist-info/top_level.txt,sha256=RAPjtj4gZYpsKAM3fAQrWyyn84xjdRuaiUS76gx6eNs,7
11
- lazyad-0.0.25.dist-info/RECORD,,
8
+ lazyad-0.0.26.dist-info/METADATA,sha256=RKp1jaamIP24FNHqBIIOUzdn8uzcC66URkM4_gLoYkw,1695
9
+ lazyad-0.0.26.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
10
+ lazyad-0.0.26.dist-info/top_level.txt,sha256=RAPjtj4gZYpsKAM3fAQrWyyn84xjdRuaiUS76gx6eNs,7
11
+ lazyad-0.0.26.dist-info/RECORD,,