如何将adsense添加到flowplayer?

时间:2016-06-27 07:38:20

标签: javascript adsense

我有下一个问题,流媒体有下一个文档:

<div id="image_text" class="flowplayer functional"></div>

<!-- install the player with ima AdSense configuration -->
<script>
flowplayer("#image_text", {
  // configure the AdSense plugin for this player
  ima: {
    // must be set when testing your installation
    adtest: true,
    // make the Google robots crawl the current page
    description_url: location.href,

    // adverts configuration
    ads: [{
      // mandatory: schedule ad time
      // here: 3 seconds into the video
      time: 3,

      // request an advert of type image or text type
      ad_type: "image_text"
    }]
  },

  splash: true,
  ratio: 5/12,
  rtmp: "rtmp://s3b78u0kbtx79q.cloudfront.net/cfx/st",
  clip: {
    sources: [
      { type: "video/webm",
        src:  "//stream.flowplayer.org/bauhaus.webm" },
      { type: "video/mp4",
        src:  "//stream.flowplayer.org/bauhaus.mp4" },
      { type: "video/flash", src: "mp4:bauhaus" }
    ]
  }
});
</script>

我们为adsense添加空块,并为此块写入一些脚本?但我需要写广告码?请帮助我,如何将Google广告添加到流量播放器,抱歉最糟糕的英语。

0 个答案:

没有答案