সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
একটি সীমিত বিজ্ঞাপন প্রদর্শন করুন
এটি একটি সীমিত বিজ্ঞাপনের অনুরোধ এবং রেন্ডার করার জন্য Google প্রকাশক ট্যাগ (GPT) লাইব্রেরি ব্যবহার করার একটি উদাহরণ৷ সীমিত বিজ্ঞাপন প্রকাশকদের কুকিজ বা অন্যান্য স্থানীয় শনাক্তকারীর ব্যবহারের জন্য সম্মতির অনুপস্থিতিতে বিজ্ঞাপন পরিবেশন করার একটি উপায় প্রদান করে। Google Ad Manager সহায়তা কেন্দ্রে সীমিত বিজ্ঞাপনের বৈশিষ্ট্য এবং সীমাবদ্ধতা সম্পর্কে আরও জানুন।
আপনি দুটি ভিন্ন উপায়ে সীমিত বিজ্ঞাপনের অনুরোধ করতে GPT-কে নির্দেশ দিতে পারেন:
অটোমেটিক, IAB TCF v2.0 কনসেন্ট ম্যানেজমেন্ট প্ল্যাটফর্ম (CMP) থেকে সংকেত ব্যবহার করে।
সীমিত বিজ্ঞাপন ম্যানুয়ালি নিয়ন্ত্রণ করতে, আপনাকে অবশ্যই সীমিত বিজ্ঞাপন URL থেকে GPT লোড করতে হবে। এই URL থেকে পরিবেশিত GPT-এর সংস্করণে ডিফল্টরূপে ক্লায়েন্ট-সাইড স্টোরেজ অ্যাক্সেস করার বিরুদ্ধে অতিরিক্ত সুরক্ষা রয়েছে৷ এটি সম্পন্ন করার জন্য, display() তে প্রথম কল না হওয়া পর্যন্ত নির্দিষ্ট লাইব্রেরি ক্রিয়াকলাপ বিলম্বিত হয়, যার ফলে GPT-এর মানক সংস্করণের তুলনায় কর্মক্ষমতা কিছুটা হ্রাস পায়।
যখন স্ট্যান্ডার্ড URL থেকে GPT লোড করা হয় তখন আপনি প্রতি-অনুরোধের ভিত্তিতে সীমিত বিজ্ঞাপন ম্যানুয়ালি নিয়ন্ত্রণ করতে পারবেন না। আপনি যখন স্ট্যান্ডার্ড ইউআরএল থেকে GPT লোড করেন, setPrivacySettings({ limitedAds: ... }) সমস্ত কল উপেক্ষা করা হয় এবং লাইব্রেরি যেকোনো সময় ক্লায়েন্ট-সাইড স্টোরেজ অ্যাক্সেস করার চেষ্টা করতে পারে। এটি GPT-কে আরও কার্যকরভাবে লাইব্রেরি অপারেশনের ক্রম অপ্টিমাইজ করার অনুমতি দেয়। উদাহরণস্বরূপ, GPT আগে সুরক্ষিত সংকেত সংগ্রহ করতে পারে, প্রতিটি বিজ্ঞাপন অনুরোধে সংগৃহীত সংকেতগুলি অন্তর্ভুক্ত করার সম্ভাবনা বৃদ্ধি করে।
[[["সহজে বোঝা যায়","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"]],[],[],[],null,["# Display a limited ad\n====================\n\nThis is an example of using the Google Publisher Tag (GPT) library to request\nand render a limited ad. Limited ads provide publishers a way to serve ads in\nthe absence of consent for the use of cookies or other local identifiers. Learn\nmore about the features and limitations of limited ads in the\n[Google Ad Manager help center](//support.google.com/admanager/answer/9882911).\n\nYou can instruct GPT to request limited ads in\n[two different ways](//support.google.com/admanager/answer/9882911#implementation):\n\n- Automatically, by using a signal from an [IAB TCF v2.0](//iabeurope.eu/tcf-2-0/) consent management platform (CMP).\n- Manually, by using the [GPT `PrivacySettings` API](//developers.google.com/publisher-tag/reference#googletag.privacysettingsconfig).\n\n| **Important:** it is not necessary to manually enable limited ads when a CMP is in use.\n\nIn order to manually control limited ads, you must load GPT from the\n[limited ads URL](//developers.google.com/publisher-tag/guides/general-best-practices#load_from_an_official_source). The version of GPT served from\nthis URL contains additional safeguards against accessing client-side storage by\ndefault. To accomplish this, certain library operations are delayed until after\nthe first call to `display()`, leading to a slight decrease in performance\ncompared to the standard version of GPT.\n\nYou can't manually control limited ads on a per-request basis when GPT is loaded\nfrom the standard URL. When you load GPT from the standard URL, all calls to\n`setPrivacySettings({ limitedAds: ... })` are ignored and the library may\nattempt to access client-side storage at any time. This allows GPT to more\neffectively optimize the order of library operations. For example, GPT can\nperform [secure signal](//support.google.com/admanager/answer/10488752) collection earlier,\nincreasing the likelihood that gathered signals will be included in every ad\nrequest.\n\nSample implementation\n---------------------\n\n[View demo](https://googleads.github.io/google-publisher-tag-samples/display-limited-ad/js/demo.html) \n\n### JavaScript\n\nLoading...\n----------\n\nLoading...\n----------\n\n[Improve this sample](https://github.com/googleads/google-publisher-tag-samples/tree/main/dist/display-limited-ad/js) [Report an issue](https://github.com/googleads/google-publisher-tag-samples/issues/new?labels=documentation&template=sample-feedback.md&title=Sample+feedback%3A+display-limited-ad/js)\n\n### TypeScript\n\nLoading...\n----------\n\nLoading...\n----------\n\n[Improve this sample](https://github.com/googleads/google-publisher-tag-samples/tree/main/dist/display-limited-ad/ts) [Report an issue](https://github.com/googleads/google-publisher-tag-samples/issues/new?labels=documentation&template=sample-feedback.md&title=Sample+feedback%3A+display-limited-ad/ts)"]]