জিপিটি লোড করুন এবং সমান্তরালে বিড করুন
ওভারভিউ
এই অডিট চেক করে যে Google Publisher Tag (GPT) লাইব্রেরি লোড না হওয়া পর্যন্ত হেডার বিডিংয়ের অনুরোধগুলি স্থগিত করা হয়েছে কিনা। বেশিরভাগ ক্ষেত্রে, এই অনুরোধগুলি GPT-এর উপর নির্ভরশীল নয় এবং বিজ্ঞাপন লোড করার গতি বাড়ানোর জন্য লাইব্রেরির সাথে সমান্তরালভাবে করা যেতে পারে।
সুপারিশ
নিশ্চিত করুন যে শিরোনাম বিডিং অনুরোধগুলি googletag.pubadsReady()
বা googletag.cmd.push()
এ অপেক্ষা না করে।
Prebid.js উদাহরণ
ভুল | window.pbjs = pbjs || {}; pbjs.que = pbjs.que || [];
window.googletag = window.googletag || {}; googletag.cmd = googletag.cmd || []; googletag.cmd.push(function() { googletag.pubads().disableInitialLoad(); // Incorrect: Making bid requests dependent on GPT loading. pbjs.que.push(function() { pbjs.requestBids({ bidsBackHandler: handleBidResponse }); }); }); |
সঠিক | window.pbjs = pbjs || {}; pbjs.que = pbjs.que || []; // Correct: Making bid requests independent of GPT loading. pbjs.que.push(function() { pbjs.requestBids({ bidsBackHandler: handleBidResponse }); });
window.googletag = window.googletag || {}; googletag.cmd = googletag.cmd || []; googletag.cmd.push(function() { googletag.pubads().disableInitialLoad(); }); |
সমর্থিত বিজ্ঞাপন বিনিময় এবং সরবরাহ পার্শ্ব প্ল্যাটফর্মের তালিকা এই অডিট মূল্যায়ন করে আমাদের GitHub সংগ্রহস্থলে পাওয়া যাবে।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2024-11-12 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2024-11-12 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["This audit checks if header bidding requests are delayed until the Google Publisher Tag library loads, potentially slowing down ad loading."],["It's recommended to make header bidding requests independent of GPT loading to improve performance."],["You can make your header bidding requests independent of GPT by ensuring they don't wait for `googletag.pubadsReady()` or `googletag.cmd.push()`, as demonstrated in the Prebid.js example."],["A list of supported ad platforms evaluated by this audit is available on the project's GitHub repository."]]],["The audit checks if header bidding requests are unnecessarily delayed by waiting for the Google Publisher Tag (GPT) library to load. Header bidding requests should be independent of GPT to speed up ad loading. Avoid using `googletag.pubadsReady()` or `googletag.cmd.push()` to trigger bid requests. The correct approach, exemplified with Prebid.js, is to initiate `pbjs.requestBids` outside of the `googletag.cmd.push()` function, making the bid requests run in parallel to GPT loading.\n"]]