اعتبارًا من 14 يناير 2021، تسمح أداة تطوير البرامج HTML5 لإعلانات الوسائط التفاعلية بعرض إعلانات محدودة عندما لا يوافق المستخدم على ملفات تعريف الارتباط، أو عندما يرفض الموافقة على ملفات تعريف الارتباط، أو عندما لا تتلقّى "إعلانات الوسائط التفاعلية" سلسلة موافقة وشفافية صالحة في المناطق الخاضعة للّائحة العامة لحماية البيانات وتوجيه الخصوصية الإلكترونية بعد فترة السماح لتكامل الإصدار 2 من "إطار الشفافية والموافقة" الصادر عن مكتب IAB.
بالنسبة إلى حِزم SDK من جهة العميل، يجب استخدام المَعلمة
ltd لتفعيل طلب عرض إعلانات محدودة.
يُرجى الاطّلاع على دليل عرض الإعلانات المحدود للحصول على مزيد من المعلومات.
على الناشرين الذين يستخدمون علامة "ناشر Google" (GPT) ضبط
PrivacySettingsConfig.limitedAds
أيضًا لإيقاف ملفات تعريف الارتباط المرتبطة بعلامة GPT. يعرض مقتطف الرمز التالي كيفية تنفيذ ذلك استنادًا إلى دليل الإعلانات المصاحبة في IMA:
...
<!--Registeryourcompanionslots-->
<scripttype='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>
...
يمكن أيضًا تفعيل "الإعلانات المحدودة" تلقائيًا من خلال الدمج مع منصّة إدارة موافقة (CMP). تتوفّر هذه الميزة في أحدث إصدار من حزمة تطوير البرامج HTML5 اعتبارًا من 14 كانون الثاني (يناير) 2021.
تاريخ التعديل الأخير: 2025-09-06 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","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-09-06 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eAs of January 14, 2021, the IMA HTML5 SDK allows limited ads to be served when users do not consent to cookies or a valid TC string is not received in GDPR and ePrivacy regions.\u003c/p\u003e\n"],["\u003cp\u003eClient-side SDK users must utilize the \u003ccode\u003eltd\u003c/code\u003e parameter to initiate a limited ads request.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Publisher Tag (GPT) users need to set \u003ccode\u003ePrivacySettingsConfig.limitedAds\u003c/code\u003e to disable GPT-related cookies when serving limited ads.\u003c/p\u003e\n"],["\u003cp\u003eAutomatic enabling of limited ads is possible via integration with a Consent Management Platform (CMP) on the latest HTML5 SDK version.\u003c/p\u003e\n"]]],[],null,["Select platform: [HTML5](/interactive-media-ads/docs/sdks/html5/client-side/limited-ads \"View this page for the HTML5 platform docs.\") [Android](/interactive-media-ads/docs/sdks/android/client-side/limited-ads \"View this page for the Android platform docs.\") [iOS](/interactive-media-ads/docs/sdks/ios/client-side/limited-ads \"View this page for the iOS platform docs.\")\n\n\u003cbr /\u003e\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 client-side SDKs you must use the [`ltd`](//support.google.com/admanager/table/9749596#ltd) parameter to trigger a limited ads request. 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```\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."]]