সীমিত বিজ্ঞাপন সহ ব্যবহারকারীদের পরিবেশন করুন
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
14 জানুয়ারী 2021 থেকে, IMA HTML5 SDK সীমিত বিজ্ঞাপন পরিবেশন করার অনুমতি দেয় যখন ব্যবহারকারী কুকিতে সম্মতি না দেয়, ব্যবহারকারী কুকিতে সম্মতি অস্বীকার করে বা IMA যখন GDPR এবং ই-প্রাইভেসি অঞ্চলে একটি বৈধ TC স্ট্রিং পায় না IAB TCFv2 ইন্টিগ্রেশনের গ্রেস পিরিয়ড।
DAI SDK-এর জন্য আপনাকে
StreamRequest.adTagParameters
ব্যবহার করে
ltd
প্যারামিটার সেট করতে হবে। আরও তথ্যের জন্য এই
সীমিত বিজ্ঞাপন নির্দেশিকা দেখুন. Google Publisher Tag (GPT) ব্যবহারকারী প্রকাশকদের GPT-সম্পর্কিত কুকি নিষ্ক্রিয় করতে
PrivacySettingsConfig.limitedAds ও সেট করতে হবে। নিম্নলিখিত কোড স্নিপেট দেখায় কিভাবে
IMA-এর সহচর বিজ্ঞাপন নির্দেশিকা অনুসারে এটি করতে হয়:
...
<!-- Register your companion slots -->
<script type='text/javascript'>
googletag.cmd.push(function() {
googletag.pubads().setPrivacySettings({
limitedAds: true,
});
// Supply YOUR_NETWORK and YOUR_UNIT_PATH.
googletag.defineSlot('/YOUR_NETWORK/YOUR_UNIT_PATH', [728, 90], 'companionDiv')
.addService(googletag.companionAds())
.addService(googletag.pubads());
googletag.companionAds().setRefreshUnfilledSlots(true);
googletag.pubads().enableVideoAds();
googletag.enableServices();
});
</script>
...
প্রকাশকরা এখনও স্ট্রিম ম্যানিফেস্টের প্লেব্যাকের জন্য দায়ী৷ ম্যানিফেস্ট URLটি dai.google.com-এর দিকে নির্দেশ করে যা একটি কুকিড ডোমেন এবং কুকি বহন করতে পারে। এই কারণে,
withCredentials=false
ম্যানিফেস্টের সঠিকভাবে অনুরোধ করার জন্য প্লেয়ারকে কনফিগার করতে হবে।
আপনার নির্দিষ্ট প্লেয়ারের জন্য এটি সেট করতে অনুগ্রহ করে নিম্নলিখিত লিঙ্কগুলি দেখুন:
কনসেন্ট ম্যানেজমেন্ট প্ল্যাটফর্ম (CMP) এর সাথে একীভূত করার মাধ্যমে সীমিত বিজ্ঞাপনগুলি স্বয়ংক্রিয়ভাবে সক্ষম করাও সম্ভব। এটি 14 জানুয়ারী 2021 থেকে HTML5 SDK-এর সর্বশেষ সংস্করণে সমর্থিত।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-08-21 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-08-21 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eAs of January 14, 2021, the IMA HTML5 SDK can serve limited ads even when users don't consent to cookies or in GDPR/ePrivacy regions without a valid TC string.\u003c/p\u003e\n"],["\u003cp\u003ePublishers using Google Publisher Tag (GPT) need to configure PrivacySettingsConfig.limitedAds to disable GPT-related cookies for limited ads functionality.\u003c/p\u003e\n"],["\u003cp\u003eWhen using limited ads, ensure the player is configured to request the stream manifest with \u003ccode\u003ewithCredentials=false\u003c/code\u003e due to potential cookies from dai.google.com.\u003c/p\u003e\n"],["\u003cp\u003eLimited ads can be automatically enabled through integration with a Consent Management Platform (CMP) using the latest HTML5 SDK version.\u003c/p\u003e\n"]]],[],null,["# Serve users with Limited Ads\n\nAs of January 14th 2021, the IMA HTML5 SDK\nallows [limited ads](//support.google.com/admanager/answer/9882911) to be served\nwhen the user does not give consent to cookies, the user denies consent to\ncookies, or when IMA does not receive a valid TC string in GDPR and ePrivacy\nregions following the grace period of IAB TCFv2 integration.\nFor DAI SDKs you must set the [`ltd`](//support.google.com/admanager/answer/7320899#ltd) parameter using [`StreamRequest.adTagParameters`](/interactive-media-ads/docs/sdks/html5/dai/reference/js/StreamRequest#adTagParameters) . Please see this [Limited ads guide](//support.google.com/admanager/answer/9882911) for more information.\n\n\u003cbr /\u003e\n\nPublishers using Google Publisher Tag (GPT) will need to also set [PrivacySettingsConfig.limitedAds](/publisher-tag/reference#boolean-limitedads) to disable GPT-related cookies. The following code snippet shows how to do this based on [IMA's companion ads guide](/interactive-media-ads/docs/sdks/html5/client-side/companions):\n\n\u003cbr /\u003e\n\n```carbon\n...\n\n\u003c!-- Register your companion slots --\u003e\n\u003cscript type='text/javascript'\u003e\n googletag.cmd.push(function() {\n googletag.pubads().setPrivacySettings({\n limitedAds: true,\n });\n // Supply YOUR_NETWORK and YOUR_UNIT_PATH.\n googletag.defineSlot('/YOUR_NETWORK/YOUR_UNIT_PATH', [728, 90], 'companionDiv')\n .addService(googletag.companionAds())\n .addService(googletag.pubads());\n googletag.companionAds().setRefreshUnfilledSlots(true);\n googletag.pubads().enableVideoAds();\n googletag.enableServices();\n });\n\u003c/script\u003e\n\n...\n```\nPublishers are still responsible for playback of the stream manifest. The manifest URL continues to point to dai.google.com which is a cookied domain and may carry cookies. Because of this, the player needs to be configured to correctly request the manifest `withCredentials=false`.\n\n\u003cbr /\u003e\n\nPlease see the following links to set this for your specific player:\n\n- [hls.js](//github.com/video-dev/hls.js/blob/master/docs/API.md#xhrsetup)\n- [JW Player](//developer.jwplayer.com/jwplayer/docs/jw8-player-configuration-reference#section-advertising) (scroll for `withCredentials` property)\n- [Shaka Player](//github.com/google/shaka-player/blob/master/docs/tutorials/ad_monetization.md#disabling-cookies-for-serving-limited-ads)\n\nIt is also possible to enable limited ads automatically through integrating with\na Consent Management Platform (CMP). This is supported on\n\nthe latest version of the HTML5 SDK as of January 14th 2021."]]