YouTube Content ID পরিষেবা
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
YouTube Content ID পরিষেবা আপনাকে Apps Script-এ YouTube Content ID API ব্যবহার করার অনুমতি দেয়। এই API ডেভেলপারদের YouTube-এর Content ID অধিকার ব্যবস্থাপনা সিস্টেমের সাথে সরাসরি যোগাযোগ করতে দেয়। একজন YouTube অংশীদার হিসেবে, আপনি আপনার সম্পদ, দাবি এবং প্রচারণা তৈরি এবং পরিচালনা করতে API ব্যবহার করতে পারেন।
তথ্যসূত্র
এই পরিষেবা সম্পর্কে বিস্তারিত তথ্যের জন্য, পাবলিক YouTube Content ID API-এর রেফারেন্স ডকুমেন্টেশন দেখুন। Apps Script-এর সমস্ত উন্নত পরিষেবার মতো, উন্নত YouTube Content ID পরিষেবা পাবলিক API-এর মতো একই বস্তু, পদ্ধতি এবং পরামিতি ব্যবহার করে। আরও তথ্যের জন্য, পদ্ধতি স্বাক্ষর কীভাবে নির্ধারণ করা হয় তা দেখুন।
/** * This function creates a partner-uploaded claim on a video with the specified * asset and policy rules. * @see https://developers.google.com/youtube/partner/docs/v1/claims/insert */functionclaimYourVideoWithMonetizePolicy(){// The ID of the content owner that you are acting on behalf of.constonBehalfOfContentOwner="replaceWithYourContentOwnerID";// A YouTube video ID to claim. In this example, the video must be uploaded// to one of your onBehalfOfContentOwner's linked channels.constvideoId="replaceWithYourVideoID";constassetId="replaceWithYourAssetID";constclaimToInsert={videoId:videoId,assetId:assetId,contentType:"audiovisual",// Set the claim policy to monetize. You can also specify a policy ID here// instead of policy rules.// For details, please refer to the YouTube Content ID API Policies// documentation:// https://developers.google.com/youtube/partner/docs/v1/policiespolicy:{rules:[{action:"monetize"}]},};try{constclaimInserted=YouTubeContentId.Claims.insert(claimToInsert,{onBehalfOfContentOwner:onBehalfOfContentOwner,});console.log("Claim created on video %s: %s",videoId,claimInserted);}catch(e){console.log("Failed to create claim on video %s, error: %s",videoId,e.message,);}}
সম্পত্তির মালিকানা আপডেট করুন
এই ফাংশনটি আপনার বিদ্যমান সম্পদের মালিকানা আপডেট করে।
/** * This function updates your onBehalfOfContentOwner's ownership on an existing * asset. * @see https://developers.google.com/youtube/partner/docs/v1/ownership/update */functionupdateAssetOwnership(){// The ID of the content owner that you are acting on behalf of.constonBehalfOfContentOwner="replaceWithYourContentOwnerID";// Replace values with your asset idconstassetId="replaceWithYourAssetID";// The new ownership here would replace your existing ownership on the asset.constmyAssetOwnership={general:[{ratio:100,owner:onBehalfOfContentOwner,type:"include",territories:["US","CA"],},],};try{constupdatedOwnership=YouTubeContentId.Ownership.update(myAssetOwnership,assetId,{onBehalfOfContentOwner:onBehalfOfContentOwner},);console.log("Ownership updated on asset %s: %s",assetId,updatedOwnership);}catch(e){console.log("Ownership update failed on asset %s, error: %s",assetId,e.message,);}}
দাবি ছেড়ে দিন
এই ফাংশনটি আপনার ভিডিওতে থাকা একটি বিদ্যমান দাবি প্রকাশ করে।
/** * This function releases an existing claim your onBehalfOfContentOwner has * on a video. * @see https://developers.google.com/youtube/partner/docs/v1/claims/patch */functionreleaseClaim(){// The ID of the content owner that you are acting on behalf of.constonBehalfOfContentOwner="replaceWithYourContentOwnerID";// The ID of the claim to be released.constclaimId="replaceWithYourClaimID";// To release the claim, change the resource's status to inactive.constclaimToBeReleased={status:"inactive",};try{constclaimReleased=YouTubeContentId.Claims.patch(claimToBeReleased,claimId,{onBehalfOfContentOwner:onBehalfOfContentOwner},);console.log("Claim %s was released: %s",claimId,claimReleased);}catch(e){console.log("Failed to release claim %s, error: %s",claimId,e.message);}}
[[["সহজে বোঝা যায়","easyToUnderstand","thumb-up"],["আমার সমস্যার সমাধান হয়েছে","solvedMyProblem","thumb-up"],["অন্যান্য","otherUp","thumb-up"]],[["এতে আমার প্রয়োজনীয় তথ্য নেই","missingTheInformationINeed","thumb-down"],["খুব জটিল / অনেক ধাপ","tooComplicatedTooManySteps","thumb-down"],["পুরনো","outOfDate","thumb-down"],["অনুবাদ সংক্রান্ত সমস্যা","translationIssue","thumb-down"],["নমুনা / কোড সংক্রান্ত সমস্যা","samplesCodeIssue","thumb-down"],["অন্যান্য","otherDown","thumb-down"]],["2025-12-16 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[]]