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

@@ -319,7 +319,10 @@ def update_ad_batch(
319
319
  advertiser_ids: list = None,
320
320
  campaign_id: int = None,
321
321
  campaign_ids: list = None,
322
- field: str = "disable"
322
+ adgroup_feed_id: int = None,
323
+ adgroup_feed_ids: list = None,
324
+ field: str = "disable",
325
+ operate: str = "disable"
323
326
  ):
324
327
  """
325
328
  暂停广告
@@ -354,6 +357,15 @@ def update_ad_batch(
354
357
  }
355
358
  else:
356
359
  return
360
+ elif media_type == "baidu":
361
+ url = "https://cli2.mobgi.com/Baidu/AdGroup/batchUpdate"
362
+ if not adgroup_feed_ids:
363
+ adgroup_feed_ids = [adgroup_feed_id]
364
+ post_data = {
365
+ "adgroup_feed_ids": adgroup_feed_ids,
366
+ "opt_status": operate
367
+ }
368
+
357
369
  else:
358
370
  return
359
371
  return lazyrequests.lazy_requests(
@@ -392,7 +404,7 @@ def get_material_report(
392
404
  :param data_type:
393
405
  :param sort_direction:
394
406
  :param sort_field:
395
- :param time_dim:
407
+ :param time_dim: 时间维度的数据汇总方式,days:分日,sum:汇总
396
408
  :param conditions:
397
409
  :param kpis:
398
410
  :param relate_dims:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lazyad
3
- Version: 0.0.23
3
+ Version: 0.0.24
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=WWE4SKVOajbMRJaxtz5kZh8VvD9BoA0W_TkIiL_VR5k,14934
3
+ lazyad/crawlers/chuangliang.py,sha256=M6_myz1SHJhhoPhhpEBX9WFCUYdPNxQ-tF3HhzcrZ6M,15405
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.23.dist-info/METADATA,sha256=2apvOdiMU0o8pvgo_vQrA3J4K6d1BLG__eLKnZphHRc,1695
9
- lazyad-0.0.23.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
10
- lazyad-0.0.23.dist-info/top_level.txt,sha256=RAPjtj4gZYpsKAM3fAQrWyyn84xjdRuaiUS76gx6eNs,7
11
- lazyad-0.0.23.dist-info/RECORD,,
8
+ lazyad-0.0.24.dist-info/METADATA,sha256=l70qohDxNuN4Yn3mMtcb0OC6c4E321zpPWTh5Zj2mKY,1695
9
+ lazyad-0.0.24.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
10
+ lazyad-0.0.24.dist-info/top_level.txt,sha256=RAPjtj4gZYpsKAM3fAQrWyyn84xjdRuaiUS76gx6eNs,7
11
+ lazyad-0.0.24.dist-info/RECORD,,