常用参数汇总 - acelan86/whatthefuck GitHub Wiki

{
      element: document.getElementById("sinaads"), //用于实际广告节点与加载顺序不一 [dom]
      params:{
          /*通用参数*/
          sinaads_ad_width : 100, //广告宽度, [number][px]
          sinaads_ad_height : 100, //广告高度,[number][px]
          sinaads_ad_pdps : 'PDPS012345678910', //资源码 [string][pdps]
          sinaads_ad_delay : 5, //广告展现延迟时间,只针对非嵌入式块状广告 [number][s]
          sinaads_success_handler: function () {}, //广告加载成功回调 [function]
          sinaads_fail_handler: function () {}, //广告加载失败回调 [function]
          sinaads_frequence: 10*60, //频次限制, 设定时间内不再请求 [number][s]
          sinaads_ad_zindex: 10000, //相对/绝对定位广告层级, [number][10000+]
          sinaads_ad_fullview: 1, //移动端广告尺寸100%自适应, 仅支持图片 [boolean]
          sinaads_ad_tpl: '#{src} #{link} ...#{src1}', [string]

          /*跨栏*/
          sinaads_couple_top: 46, //跨栏广告距离顶部高度 [number][px]

          /*对联*/
          sinaads_float_top : 10, //对联广告距离顶部高度 [number][px]

          /*随行*/
          sinaads_follow_top: 40, //随行广告主素材距离顶部高度 [number][px]
          sinaads_follow_mini_top: 200, //随行广告回收位距离顶部高度 [number][px]

          /*全屏*/
          sinaads_fullscreen_close: 1, //全屏广告是否带重复播放按钮 [boolean]

          /*TIP*/
          sinaads_tip_top: 98, //博客tip广告距离顶部 [number][px]
          sinaads_tip_left: 270, //博客tip广告距离左侧 [number][px]

          /*翻牌*/
          sinaads_turning_flip_duration : 10, //翻页动画时间 [number][s]
          sinaads_turning_flip_delay : 10, //翻页间隔秒数 [number][s]
          sinaads_turning_wait : 10 //等待时间 [number][s]
      }
}

PS:以上均为示例, 请勿配置与广告类型不匹配的参数~