如何自动为youtube视频启用获利功能。我正在尝试以下无法正常工作的代码:
VideoMonetizationDetails videoMonetizationDetail = new videoMonetizationDetails();
AccessPolicy accessPolicy = new AccessPolicy();
accessPolicy.setAllowed(true);
videoMonetizationDetail.setAccess(accessPolicy);
ytvideo.setMonetizationDetails(videoMonetizationDetail);
显示以下错误:
java.net.SocketTimeoutException: connect timed out at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
有什么方法可以自动为youtube视频启用获利??