<% if Rails.env.production? && request.domain == ENV.fetch("ANNICT_JP_DOMAIN") %>
  <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  <script>
    (adsbygoogle = window.adsbygoogle || []).push({
      google_ad_client: "<%= ENV.fetch('GOOGLE_AD_CLIENT_JP') %>",
      enable_page_level_ads: true
    });
  </script>
<% end %>

<% if Rails.env.production? %>
  <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  <script>
    (adsbygoogle = window.adsbygoogle || []).push({
      google_ad_client: "<%= ENV.fetch('GOOGLE_AD_CLIENT_JP') %>",
      enable_page_level_ads: true
    });
  </script>
<% end %>

Allow to display ads even if domain is .com
Allow to display ads even if domain is .com
