Basically, the suggested way is including the Google AdSense code in the gatsby-ssr.js file then develop AdSense Banner component.