I’m creating videos using the Videos insert API, and the contentDetails.contentRating.ytRating field does not seem to be setting the property correctly.
Using the Java library, I’m doing
new Video()
.setContentDetails(
new VideoContentDetails()
.setContentRating(new ContentRating().setYtRating("ytAgeRestricted"))
);
but the “Age restriction” property is always set to “No” on these created videos. Is there something I should be doing differently?
New contributor
Jack Vallerie is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.