I have one question about how to use 'madeForKids' in 'youtube.liveBroadcasts.insert' API.
When I don't use this parameter, the user interface of youtube will pop up a window to let me choose wether it is made for kids. I don't want it to show this window. I want to set this value with API. But when I added this parameter, it will always response a 500 error.
My codes is based on JS as follows:
this.youtube.liveBroadcasts.insert(
{
auth: this.oauth2Client,
part: "snippet,contentDetails,status",
resource: {
snippet: {
title: title,
scheduledStartTime: scheduledStartTime
},
status: {
madeForKids: "false",
selfDeclaredMadeForKids: "false",
lifeCycleStatus: "live",
privacyStatus: "public"
},
contentDetails: {
rojection: "360",
monitorStream: {
enableMonitorStream: false
}
}
}
},
function (err, response) {
if (err) {
console.log("The API:createLiveBroadCast returned an error: " + err);
reject(new Error(err));
} else {
console.log(response);
resolve(response);
}
}
);
Additionally, I am using the latest googleapis: "^48.0.0".
Can anyone help me ? Thanks a lot !