adsense-managed-page-level.html.twig in Google AdSense integration 8
AdSense auto ads HTML code.
1 theme call to adsense-managed-page-level.html.twig
- adsense_page_attachments in ./
adsense.module - Implements hook_page_attachments().
File
templates/adsense-managed-page-level.html.twigView source
- {#
- /**
- * @file
- * AdSense auto ads HTML code.
- */
- #}
- {% if not defer %}
- <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
- {% else %}
- {{ attach_library('adsense/adsense.adsbygoogle') }}
- {% endif %}
- <script>
- (adsbygoogle = window.adsbygoogle || []).push({
- google_ad_client: "ca-{{ client }}",
- enable_page_level_ads: true
- });
- </script>