Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Panoramica
Assicura che gli script della libreria di tag annuncio vengano richiesti in modo sicuro. Questo non solo
migliora la sicurezza degli utenti e le prestazioni. Poiché l'annuncio
richieste inviate da GPT utilizzano sempre HTTPS, caricando la libreria stessa dal
host consigliato tramite HTTPS garantisce che
Il browser deve aprire una sola connessione per tutte le richieste relative alla pubblicazione di annunci.
Consigli
Carica sempre gli script dei tag annuncio da un URL HTTPS.
Risposta sbagliata
<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,["Ultimo aggiornamento 2025-07-25 UTC."],[],["Ad tag library scripts should be loaded via HTTPS for enhanced security and performance. Always use HTTPS URLs to load scripts; avoid HTTP. Secure loading ensures a single browser connection for all ad-related requests, as GPT uses HTTPS. Supported scripts include those for AdSense (e.g., `pagead2.googlesyndication.com/pagead/js/adsbygoogle.js`) and Google Publisher Tag (e.g., `securepubads.g.doubleclick.net/tag/js/gpt.js`). The correct implementation is loading scripts such as `https://securepubads.g.doubleclick.net/tag/js/gpt.js` using the script tag.\n"],null,[]]