Lighthouse; Does not use HTTPS 1 insecure request found

Hi, I to test my Website with the Tool Lighthouse and to come to this report;

here how to have the scripts from Google on my Head Element,

Can Please any one help me, Thanks!

There should be SSL support for it.

Thanks for your answer!, I to try on the Code to change from

http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js

to

https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js

to https, but nothing to change…

I will try with,

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle"
  style="display:inline-block;width:300px;height:250px"
  data-ad-client="ca-pub-xxxxxxxxxxxxxx"
  data-ad-slot="yyyyyyyyyyy">
</ins>
<script>
  (adsbygoogle=window.adsbygoogle || []).push({});
</script>

But I don’t know `data-ad-slot=“yyyyyyyyyyy”>, Why data, Today?, sorry I am very new…

I to try ,

<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle"
  style="display:inline-block;width:300px;height:250px"
  data-ad-client="ca-pub-64095025942348853"
  data-ad-slot="123456789">
</ins>
<script>
  (adsbygoogle=window.adsbygoogle || []).push({});
</script>

I to come warning similarly…

Maybe that problem is that I should write this Script with document.write() ? what how doing it ?

Use the protocol-less version of the Google script, but if the advertiser is serving (for example) images over http then you’ll still get that issue, and the only thing you can do is report them in your Google ad console (I know nothing about ad syndication, so you know more than me about how to do that).

Your putting ads on your site, you should probably expect it to not pass all the lighthouse tests.

No, lighthouse is just suggesting possible common solutions: if that script is what Google docs say should be there, keep it as specified, if it does a document.write then it does a document.write