java - YouTube API v3 `getMonetizationDetails` returning null -
i trying acces monetization details within java application using youtube api v3 in order change monetization details particular videos.
my youtube , google accounts set work google adsense , monetization feature enabled via youtube web frontend. still cannot retrieve monetization details video
. returned videomonetizationdetails
null
.
youtube.videos.list listvideosrequest = m_youtube.videos().list("snippet,status").setid(_svideoid); videolistresponse listresponse = listvideosrequest.execute(); list<video> videolist = listresponse.getitems(); if (!videolist.isempty()) { video video = videolist.get(0); videomonetizationdetails vmd = video.getmonetizationdetails(); // vmd null }
i have tried values list filter already: contentdetails, filedetails, id, livestreamingdetails, localizations, player, processingdetails, recordingdetails, snippet, statistics, status, suggestions, topicdetails
how retrieve , set monetization details videos using youtube api v3?
Comments
Post a Comment