সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
কী-মানগুলি বিজ্ঞাপন ইউনিটগুলির চেয়ে আরও বেশি পরিমানে বিজ্ঞাপনগুলিকে লক্ষ্য করতে ব্যবহার করা যেতে পারে৷ কী-মান সম্পর্কে আরও জানুন।
প্রতিটি বিজ্ঞাপন অনুরোধের জন্য, আপনি এক বা একাধিক কী পাস করতে পারেন, প্রতিটিতে এক বা একাধিক সম্পর্কিত মান রয়েছে। বিজ্ঞাপন ম্যানেজারের লাইন আইটেম-স্তরে কনফিগার করা টার্গেটিং বিকল্পগুলির বিরুদ্ধে এই কী-মানগুলি মূল্যায়ন করা হবে। উদাহরণ স্বরূপ, যদি আপনি age=18-34 এর একটি কাস্টম কী-মান পাস করেন, তাহলে 18-34 বছর বয়সের রেঞ্জে লক্ষ্য করা লাইন আইটেমগুলি অন্যান্য সমস্ত মানদণ্ডের সাথে মিলে যায় বলে ধরে নেওয়ার জন্য যোগ্য হবে৷
লক্ষ্য নির্ধারণ করুন
আপনার নেটওয়ার্কের প্রয়োজনের উপর ভিত্তি করে স্লট- এবং পৃষ্ঠা-স্তর উভয়েই লক্ষ্য নির্ধারণ কনফিগার করার জন্য আপনি কী-মান নির্দিষ্ট করতে পারেন।
স্লট-স্তর
আপনাকে আপনার পৃষ্ঠায় পৃথক বিজ্ঞাপন স্লটের জন্য কী-মান সেট করার অনুমতি দেয়।
স্লট-লেভেল টার্গেটিং আপনাকে প্রতি-স্লটের ভিত্তিতে টার্গেটিং কনফিগার করতে দেয়। এটি সেই ক্ষেত্রে উপযোগী যেখানে একই পৃষ্ঠায় পৃথক স্লটগুলির জন্য বিভিন্ন লক্ষ্যবস্তুর প্রয়োজন হয়, কিন্তু এমন পরিস্থিতিতে অকার্যকর হতে পারে যেখানে একই কী-মানগুলি সমস্ত স্লটে প্রয়োগ করা হয়৷ নিচের উদাহরণের মতো স্লট-লেভেল টার্গেটিং ব্যবহার করতে Slot.setTargeting() ব্যবহার করুন।
পৃষ্ঠা-স্তর
আপনাকে আপনার পৃষ্ঠার সমস্ত বিজ্ঞাপন স্লট জুড়ে মূল-মান সেট করার অনুমতি দেয়৷
পৃষ্ঠা-স্তরের টার্গেটিং নিশ্চিত করে যে সমস্ত বিজ্ঞাপন স্লটে কী-মানের একই সেট রয়েছে। কিছু ক্ষেত্রে এটি লক্ষ্য নির্ধারণ কনফিগার করার জন্য প্রয়োজনীয় কোডের মোট পরিমাণ হ্রাস করতে পারে। পৃষ্ঠা-স্তরের টার্গেটিং ব্যবহার করতে googletag.pubads().setTargeting() ব্যবহার করুন, নিচের উদাহরণের মতো।
এই উদাহরণে, দুটি বিজ্ঞাপন স্লট সংজ্ঞায়িত করা হয়েছে যা বিজ্ঞাপন ইউনিট /6355419/Travel/Asia এবং বিজ্ঞাপনের আকার 728x90 নির্দিষ্ট করে। তারপর প্রতিটি স্লটে পরিবেশন করতে পারে এমন বিজ্ঞাপনগুলিকে আরও সীমাবদ্ধ এবং আলাদা করার জন্য কী-মান টার্গেটিং প্রয়োগ করা হয়।
যখন স্লট- এবং পৃষ্ঠা-স্তরের লক্ষ্যমাত্রা উভয়ই ব্যবহার করা হয়, তখন মূল-মানগুলি একত্রিত হয় এবং শুধুমাত্র সমস্ত মানদণ্ড পূরণ করে এমন বিজ্ঞাপনগুলি একটি প্রদত্ত স্লটে পরিবেশনের জন্য যোগ্য হবে। এই উদাহরণে, প্রতিটি স্লটের জন্য কার্যকর ট্যাগিং হল:
বিজ্ঞাপন স্লট
কার্যকর টার্গেটিং
1
color=red AND position=atf AND interests=basketball
2
position=btf AND interests=basketball
একাধিক কী বা মান লক্ষ্য করুন
পূর্ববর্তী উদাহরণে, একটি একক বিজ্ঞাপন স্লটের জন্য একাধিক টার্গেটিং কী সংজ্ঞায়িত করতে স্লট- এবং পৃষ্ঠা-স্তরের টার্গেটিং-এর সংমিশ্রণ ব্যবহার করা হয়েছিল। একই কার্যকর লক্ষ্য অর্জনের জন্য এখানে কিছু বিকল্প পদ্ধতি রয়েছে:
স্লট-স্তরের লক্ষ্যমাত্রা
এই উদাহরণে, শেয়ার করা কী-মানগুলি প্রতিটি বিজ্ঞাপন স্লটের জন্য পুনরাবৃত্তি হয়৷
setTargeting() কল করার সময় মানগুলির একটি অ্যারে প্রদান করে একটি একক কী-এর জন্য একাধিক মান লক্ষ্য করাও সম্ভব:
// Page-level targeting with multiple values for a single key.
googletag.pubads().setTargeting('interests', ['baseball', 'basketball']);
পরিষ্কার টার্গেটিং
একবার টার্গেটিং সেট হয়ে গেলে, কনফিগার করা কী-মানগুলি বিজ্ঞাপন স্লটের জীবনের জন্য প্রতিটি বিজ্ঞাপন অনুরোধের সাথে পাঠানো হবে। কিছু পরিস্থিতিতে, তবে, সময়ের সাথে সাথে লক্ষ্যমাত্রা পরিবর্তন করা বাঞ্ছনীয় হতে পারে। যদিও setTargeting() কী-মান যোগ এবং ওভাররাইট করতে ব্যবহার করা যেতে পারে, এইভাবে সেগুলি সরানো সম্ভব নয়। এটি সম্পন্ন করতে, Slot.clearTargeting() বা googletag.pubads().clearTargeting() এর পরিবর্তে ব্যবহার করতে হবে।
যখন clearTargeting() একটি নির্দিষ্ট কী দিয়ে কল করা হয় (হয় স্লট- বা পৃষ্ঠা-স্তরে), শুধুমাত্র সেই কীটি সরানো হয়। যখন কোন কী নির্দিষ্ট করা হয় না, সেই স্তরের সমস্ত লক্ষ্য মুছে ফেলা হয়।
পূর্ববর্তী উদাহরণে, প্রতিটি ধাপের পরে বিজ্ঞাপন স্লটের জন্য কার্যকর টার্গেটিং হল:
ধাপ
কার্যকর টার্গেটিং
0
color=red AND position=atf AND interests=basketball
[[["সহজে বোঝা যায়","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"]],["2024-11-15 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eKey-values offer granular ad targeting beyond ad units, enhancing ad relevance by enabling specific criteria like age or interests for ad delivery.\u003c/p\u003e\n"],["\u003cp\u003eSlot-level targeting allows customization for individual ad slots, while page-level targeting applies to all slots on a page, streamlining setup when uniform targeting is desired.\u003c/p\u003e\n"],["\u003cp\u003eCombining slot- and page-level targeting creates layered targeting, where ads must satisfy all criteria to be eligible for serving, enhancing ad precision.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Ad Manager has functions for clearing targeting, such as \u003ccode\u003eclearTargeting()\u003c/code\u003e, which allows removal of specific keys or all targeting at a particular level, providing flexibility in dynamic ad scenarios.\u003c/p\u003e\n"]]],["Key-values refine ad targeting at the slot or page level. Slot-level targeting uses `Slot.setTargeting()` for individual ad slots. Page-level targeting, using `googletag.pubads().setTargeting()`, applies to all slots. Both can be combined, with slot-level values taking precedence. Multiple values for one key are set using an array. To remove key-values use `Slot.clearTargeting()` or `googletag.pubads().clearTargeting()`. Remember, page-level key values can be modified but not removed at the slot level.\n"],null,["# Key-value targeting\n\nKey-values can be used to target ads more granularly than ad units. Learn more\nabout [key-values](//support.google.com/admanager/answer/188092).\n| **Warning:** Use key-value targeting with care. Under the terms of your contract, you must not pass any data that Google Ad Manager could [use or recognize as\n| personally identifiable information](//support.google.com/admanager/answer/7686480).\n\nFor each ad request, you may pass one or more keys, each with one or more\nassociated values. These key-values will be evaluated against targeting options\nconfigured at the line item-level in Ad Manager. For example, if\nyou pass a custom key-value of `age=18-34`, line items targeted to the age range\n18-34 will be eligible to serve, assuming all other criteria matches.\n\nSet targeting\n-------------\n\nYou may specify key-values to configure targeting at both the slot- and\npage-level based on your network's needs.\n\nSlot-level\n\n: Allows you to set key-values for individual ad slots on your page.\n\n Slot-level targeting allows you to configure targeting on a per-slot basis.\n This is useful in cases where individual slots on the same page require\n different targeting, but can be inefficient in situations where the same\n key-values are applied to all slots. Use\n [`slot.setConfig({ targeting: ... })`](/publisher-tag/reference#googletag.config.SlotSettingsConfig.targeting) to utilize\n slot-level targeting, as in the following example.\n\nPage-level\n\n: Allows you to set key-values across all ad slots on your page.\n\n Page-level targeting ensures that all ad slots have the same set of\n key-values. In some cases this may reduce the total amount of code needed to\n configure targeting. Use\n [`googletag.setConfig({ targeting: ... })`](/publisher-tag/reference#googletag.config.PageSettingsConfig.targeting) to\nutilize page-level targeting, as in the following example. \n\n```javascript\nwindow.googletag = window.googletag || { cmd: [] };\n\n// GPT slots\nlet adSlots = [];\n\ngoogletag.cmd.push(() =\u003e {\n // Configure slot-level targeting.\n adSlots[0] = googletag\n .defineSlot(\"/6355419/Travel/Asia\", [728, 90], \"banner-ad-1\")\n .addService(googletag.pubads());\n adSlots[0].setConfig({\n targeting: {\n color: \"red\",\n position: \"atf\",\n },\n });\n\n adSlots[1] = googletag\n .defineSlot(\"/6355419/Travel/Asia\", [728, 90], \"banner-ad-2\")\n .addService(googletag.pubads());\n adSlots[1].setConfig({\n targeting: {\n position: \"btf\",\n },\n });\n\n // Configure page-level targeting and enable SRA.\n googletag.setConfig({\n targeting: {\n interests: \"basketball\",\n },\n singleRequest: true,\n });\n\n // Enable services.\n googletag.enableServices();\n});\n```\n\nIn this example, two ad slots are defined which specify ad unit\n`/6355419/Travel/Asia` and ad size `728x90`. Then key-value targeting is\napplied to further restrict and differentiate the ads which may serve in each\nslot.\n\nWhen both slot- and page-level targeting are used, the key-values are combined\nand only ads satisfying all criteria will be eligible to serve to a given slot.\nIn this example, the effective tageting for each slot is:\n\n| Ad slot | Effective targeting |\n|---------|-------------------------------------------------------|\n| 1 | `color=red AND position=atf AND interests=basketball` |\n| 2 | `position=btf AND interests=basketball` |\n\n| **Note:** If the same targeting key is defined at both the page- and slot-level, the slot-level value will take precedence for that slot.\n\n### Target multiple keys or values\n\nIn the preceding example, a combination of slot- and page-level targeting was\nused to define multiple targeting keys for a single ad slot. Here are some\nalternative approaches to achieve the same effective targeting: \n\n### Slot-level targeting only\n\nIn this example, shared key-values are repeated for each ad slot. \n\n // Slot-level targeting with multiple keys.\n adSlots[0] = googletag\n .defineSlot('/6355419/Travel/Asia', [728, 90], 'banner-ad-1')\n .addService(googletag.pubads());\n adSlots[0].setConfig({\n targeting: {\n color: 'red',\n position: 'atf',\n interests: 'basketball'\n }\n });\n adSlots[1] = googletag\n .defineSlot('/6355419/Travel/Asia', [728, 90], 'banner-ad-2')\n .addService(googletag.pubads());\n adSlots[1].setConfig({\n targeting: {\n position: 'btf',\n interests: 'basketball'\n }\n });\n\n### Page-level default targeting\n\nIn this example, default targeting is set at the page-level and overridden\nat the slot-level as necessary.\n**Caution:** Key-values set at the page-level cannot be cleared at the slot-level, only modified. \n\n // Page-level default targeting.\n googletag.setConfig({\n targeting: {\n interests: 'basketball',\n position: 'btf'\n }\n });\n\n // Slot-level targeting overrides.\n adSlots[0] = googletag\n .defineSlot('/6355419/Travel/Asia', [728, 90], 'banner-ad-1')\n .addService(googletag.pubads());\n adSlots[0].setConfig({\n targeting: {\n color: 'red',\n position: 'atf'\n }\n });\n adSlots[1] = googletag\n .defineSlot('/6355419/Travel/Asia', [728, 90], 'banner-ad-2')\n .addService(googletag.pubads());\n\nIt's also possible to target multiple values for a single key by providing an\narray of values when calling `setConfig()`: \n\n // Page-level targeting with multiple values for a single key.\n googletag.setConfig({ targeting: { interests: ['baseball', 'basketball'] } });\n\nClear targeting\n---------------\n\nOnce targeting has been set, the configured key-values will be sent with every\nad request for the life of the ad slot. In some circumstances, however, it may\nbe desirable for targeting to change over time. While `setConfig()` can be\nused to add and overwrite key-values, it's not possible to remove them this way.\nTo accomplish that, you must clear the targeting by setting the value to `null`\nin the `setConfig()` method. \n\n```javascript\n// Step 0, define slot- and page-level targeting.\nadSlots[0] = googletag\n .defineSlot(\"/6355419/Travel/Asia\", [728, 90], \"banner-ad-1\")\n .addService(googletag.pubads());\nadSlots[0].setConfig({\n targeting: {\n color: \"red\",\n position: \"atf\",\n },\n});\n\ngoogletag.setConfig({\n targeting: {\n interests: \"basketball\",\n },\n singleRequest: true,\n});\n\n// Step 1, clear slot-level color targeting.\nadSlots[0].setConfig({\n targeting: {\n color: null,\n },\n});\n\n// Step 2, clear all page-level targeting.\ngoogletag.setConfig({\n targeting: null,\n});\n```\n\nWhen `clearTargeting()` is called with a specific key (either at the\nslot- or page- level), only that key is removed. When no key is specified, all\ntargeting at that level is removed.\n\nIn the preceding example, the effective targeting for the ad slot after each\nstep is:\n\n| Step | Effective targeting |\n|------|-------------------------------------------------------|\n| 0 | `color=red AND position=atf AND interests=basketball` |\n| 1 | `position=atf AND interests=basketball` |\n| 2 | `position=atf` |"]]