You are here

adsense-managed-responsive.html.twig in Google AdSense integration 8

AdSense responsive managed ad HTML code.

File

templates/adsense-managed-responsive.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * AdSense responsive managed ad HTML code.
  5. */
  6. #}
  7. {% if not defer %}
  8. <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  9. {% else %}
  10. {{ attach_library('adsense/adsense.adsbygoogle') }}
  11. {% endif %}
  12. <!-- {{ format }} -->
  13. <ins class="adsbygoogle"
  14. style="display:block"
  15. data-ad-client="ca-{{ client }}"
  16. data-ad-slot="{{ slot }}"
  17. data-ad-format="{{ shape }}"
  18. data-full-width-responsive="true"></ins>
  19. <script>
  20. (adsbygoogle = window.adsbygoogle || []).push({});
  21. </script>