How to output Adsense code in wordpress theme Safely!!

This is what is outputted when using esc_js

<script type=‘text/javascript’>\n var googletag = googletag || {};\n googletag.cmd = googletag.cmd || [];\n (function() {\n var gads = document.createElement(‘script’);\n gads.async = true;\n gads.type = ‘text/javascript’;\n var useSSL = ‘https:’ == document.location.protocol;\n gads.src = (useSSL ? ‘https:’ : ‘http:’) +\n ‘//www.googletagservices.com/tag/js/gpt.js’;\n var node = document.getElementsByTagName(‘script’)[0];\n node.parentNode.insertBefore(gads, node);\n })();\n</script>\n