From 8e976601afd10bfbc0312f6562e4049dca0ed69a Mon Sep 17 00:00:00 2001 From: Kara <62033369+kar320@users.noreply.github.com> Date: Wed, 1 Dec 2021 09:23:24 -0700 Subject: [PATCH] Update YoutubeContentId to YouTubeContentId --- advanced/youtubeContentId.gs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/advanced/youtubeContentId.gs b/advanced/youtubeContentId.gs index 9b2b12596..bd7a19954 100644 --- a/advanced/youtubeContentId.gs +++ b/advanced/youtubeContentId.gs @@ -37,7 +37,7 @@ function claimYourVideoWithMonetizePolicy() { 'policy': {'rules': [{'action': 'monetize'}]} }; try { - var claimInserted = YoutubeContentId.Claims.insert(claimToInsert, + var claimInserted = YouTubeContentId.Claims.insert(claimToInsert, {'onBehalfOfContentOwner': onBehalfOfContentOwner}); Logger.log('Claim created on video %s: %s', videoId, claimInserted); } catch (e) { @@ -70,7 +70,7 @@ function updateAssetOwnership() { ] }; try { - var updatedOwnership = YoutubeContentId.Ownership.update(myAssetOwnership, + var updatedOwnership = YouTubeContentId.Ownership.update(myAssetOwnership, assetId, {'onBehalfOfContentOwner': onBehalfOfContentOwner}); Logger.log('Ownership updated on asset %s: %s', assetId, updatedOwnership); } catch (e) { @@ -94,7 +94,7 @@ function releaseClaim() { 'status': 'inactive' }; try { - var claimReleased = YoutubeContentId.Claims.patch(claimToBeReleased, + var claimReleased = YouTubeContentId.Claims.patch(claimToBeReleased, claimId, {'onBehalfOfContentOwner': onBehalfOfContentOwner}); Logger.log('Claim %s was released: %s', claimId, claimReleased); } catch (e) {