I'm trying to echo out a block of javascript to show an adsense ad. I've looked it up and this appears to be the answer; however, its throwing me the error of:
Parse error: syntax error, unexpected end of file
$ad = '
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Responsive ad -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-8659497818387773"
data-ad-slot="1059972100"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>';
echo $ad;
Not sure what I'm missing here. Thank you for your time.