The entire script is not displayed / Disabling CSP

Hello. I’m trying to add Yandex advertising platform code. It consists of two parts, the first in , the second in where exactly the advertisement will be.
There are no problems with the second one, but the first one I can’t understand whether it works or not. Because I add it, and if you look at the source code of the page, it is missing one line.
Is this how it should be or am I doing something wrong?

image

image

I’ll also ask here so as not to create a separate topic.

If you disable CSP, will all scripts work even without adding addresses to the allowed list?