यह पक्का करता है कि विज्ञापन टैग लाइब्रेरी स्क्रिप्ट का अनुरोध सुरक्षित तरीके से किया जा रहा है. न सिर्फ़
इससे उपयोगकर्ताओं को बेहतर सुरक्षा मिलती है. साथ ही, परफ़ॉर्मेंस भी बेहतर होती है. विज्ञापन से
GPT के जारी किए गए अनुरोधों में हमेशा एचटीटीपीएस का इस्तेमाल किया जाता है. इससे लाइब्रेरी को यहां से लोड किया जाता है:
एचटीटीपीएस के ज़रिए सुझाया गया होस्ट यह पक्का करता है कि
विज्ञापन दिखाने से जुड़े सभी अनुरोधों के लिए, ब्राउज़र को सिर्फ़ 1 कनेक्शन खोलना होगा.
सुझाव
अपने विज्ञापन टैग की स्क्रिप्ट हमेशा किसी एचटीटीपीएस यूआरएल से लोड करें.
गलत
<script>
var el = document.createElement('script');
// Incorrect: potentially loading the ad tag over HTTP.
var useSSL = 'https:' == document.location.protocol;
el.src = (useSSL ? 'https:' : 'http:') + '//securepubads.g.doubleclick.net/tag/js/gpt.js';
var node = document.getElementsByTagName('script')[0];
node.parentNode.insertBefore(el, node);
</script>
[null,null,["आखिरी बार 2024-08-22 (UTC) को अपडेट किया गया."],[[["Loading ad tag library scripts securely over HTTPS enhances security and performance for users."],["Browsers establish a single connection for ad serving when GPT and its library are fetched via HTTPS."],["Ad tag scripts should always be loaded from an HTTPS URL for optimal security."],["Google Publisher Tag and AdSense are among the supported ad tag library scripts, and their HTTPS URLs are provided for reference."]]],[]]