0
ChannelBannerResource chBannerResource = new ChannelBannerResource();
chBannerResource.setKind("youtube#channelBannerResource");
chBannerResource.setEtag("JcMoTLb1iDZi7UYDRZDsYNLPWNA/X7zrV-CaEaRAq1KbyVYs4KQu6MU"); chBannerResource.setUrl("http://myimage.com/ram/channelbaner.jpg");
YouTube.ChannelBanners.Insert chbannerresponse = youtube.channelBanners().insert(chBannerResource);ChannelBannerResource res= chbannerresponse.execute();
Error :- GoogleJsonResponseException code: 400 : contentDetails
com.google.api.client.googleapis.json.GoogleJsonResponseException: 400 Bad Request
{
"code" : 400,
"errors" : [ {
"domain" : "youtube.part",
"location" : "part",
"locationType" : "parameter",
"message" : "contentDetails",
"reason" : "unexpectedPart"
} ],
"message" : "contentDetails"
}
請幫我..........如何在Java中使用v3 Data Api插入YouTube頻道橫幅廣告?