0
我試圖將視頻類型更改爲沿着YouTube頻道更新API關聯網站,但只更新了自定義文本。我得到的通知錯誤對Google_Service_YouTube_InvideoPromotion的重載元素進行間接修改沒有任何效果
try{
$responseChannel['invideoPromotion']['items'][0]['type'] = 'website';
$responseChannel['invideoPromotion']['items'][0]['websiteUrl'] ='http://myassociatewebsite.com/';
$responseChannel['invideoPromotion']['items'][0]['customMessage'] = 'Update tex1';
$updateResponse = $youtube->channels->update('invideoPromotion', $responseChannel);
}catch (Google_ServiceException $e) {
$htmlBody .= sprintf('<p>A service error occurred: <code>%s</code></p>',
htmlspecialchars($e->getMessage()));
}
How to fix that issue please confirm it?