adsense-managed-responsive.html.twig in Google AdSense integration 8
AdSense responsive managed ad HTML code.
1 theme call to adsense-managed-responsive.html.twig
- ManagedAd::getAdContent in src/
Plugin/ AdsenseAd/ ManagedAd.php - Return the ad content.
File
templates/adsense-managed-responsive.html.twigView source
- {#
- /**
- * @file
- * AdSense responsive managed ad HTML code.
- */
- #}
- {% if not defer %}
- <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
- {% else %}
- {{ attach_library('adsense/adsense.adsbygoogle') }}
- {% endif %}
- <!-- {{ format }} -->
- <ins class="adsbygoogle"
- style="display:block"
- data-ad-client="ca-{{ client }}"
- data-ad-slot="{{ slot }}"
- data-ad-format="{{ shape }}"
- data-full-width-responsive="true"></ins>
- <script>
- (adsbygoogle = window.adsbygoogle || []).push({});
- </script>