Search code examples
youtube-apiyoutube-channels

channels.list response body has no invideoPromotion object


in revision of August 15, 2013 says that "The API now supports the ability to specify a website as a promoted item." reflecting details with "invideoPromotion" object.I need to get the items set. However when i call the method as below,almost for 10 channels, none of them has the mentioned promoted item. https://www.googleapis.com/youtube/v3/channels?part=id,status,snippet,brandingSettings,contentDetails,invideoPromotion,statistics,topicDetails&forUsername={CHANNEL}&key={API-KEY} Is there a specific query parameter for it?


Solution

  • I believe you can only get your own channel's invideoPromotion settings.

    Here's a video talking about invideoPromotion.

    Also here's a JAVA Sample code.