使用YouTube api进行多个Invideo推广

使用YouTube api进行多个Invideo推广,youtube,youtube-data-api,Youtube,Youtube Data Api,我必须更新特定频道的多个invideo促销详细信息。 我的要求如下: var requestOptions={ part: 'invideoPromotion', onBehalfOfContentOwner: 'contentOwner', resource:{ id: channelId, invideoPromotion: { "defaultTiming": { "offsetMs": 2000, "

我必须更新特定频道的多个invideo促销详细信息。 我的要求如下:

var requestOptions={
part: 'invideoPromotion',   
onBehalfOfContentOwner: 'contentOwner',         
resource:{          
  id: channelId,

  invideoPromotion: {

    "defaultTiming": {
      "offsetMs": 2000,
      "type": "offsetFromStart"
    },

    "items": [
      {
        "promotedByContentOwner": true,
        "timing":
        {
            "offsetMs":4000,
            "duration" : 5000,
            "type":"offsetFromStart"
        },
        "id":{
            "videoId": videoid1,
            "type": "video"
        }
      },
      {
        "promotedByContentOwner": true,
        "timing":
        {
            "offsetMs":11000,
            "duration" : 5000,
            "type":"offsetFromStart"
        },
        "id":{
            "videoId": videoId2,
            "type": "video"
        }
      }
    ],
    "position": {
      "type": "corner",
      "cornerPosition": "topLeft"
    }
  }
}
};
console.log(requestOptions);
var request = gapi.client.youtube.channels.update(requestOptions);
request.execute(function (response) {});
但是当我尝试执行这个时,我得到了错误

0: {error:{code:500}, id:gapiRpc}
error: {code:500}
code: 500
id: "gapiRpc"
甚至当我尝试使用youtube api浏览器进行此操作时 , 我收到内部服务器错误。
谁能告诉我哪里出了问题。

你不能推广多个视频。我也尝试了同样的方法,但出现了一个错误“超过了升级项目的数量”。所以一次只能推广一个视频