Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ssis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/71.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如何将adsense添加到flowplayer?_Javascript_Adsense - Fatal编程技术网

Javascript 如何将adsense添加到flowplayer?

Javascript 如何将adsense添加到flowplayer?,javascript,adsense,Javascript,Adsense,我有下一个问题,flowplayer有下一个文档: <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 pl

我有下一个问题,flowplayer有下一个文档:

<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>

flowplayer(“#图像_文本”{
//为此播放器配置AdSense插件
ima:{
//测试安装时必须设置
adtest:是的,
//让谷歌机器人抓取当前页面
description_url:location.href,
//广告配置
广告:[{
//强制性:安排广告时间
//这里:视频播放3秒
时间:3,,
//请求图像或文本类型的广告
广告类型:“图像文字”
}]
},
飞溅:是的,
比率:5/12,
rtmp:“rtmp://s3b78u0kbtx79q.cloudfront.net/cfx/st",
剪辑:{
资料来源:[
{类型:“视频/webm”,
src://stream.flowplayer.org/bauhaus.webm“},
{类型:“视频/mp4”,
src://stream.flowplayer.org/bauhaus.mp4“},
{类型:“视频/flash”,src:“mp4:bauhaus”}
]
}
});
我们为adsense添加空块,并为此块写入添加一些脚本?但是我需要在哪里写广告代码呢?请帮助我,我如何将谷歌广告添加到flowplayer中,对不起,英语太差了