I am trying to put the AdSense code into my Bubble website; however, when I try and validate on my Google AdSense account that the code is in my website, it keeps saying it can’t find it. Which means there is a 100% chance that I am doing it wrong. Below is the process I am goign through:
Under settings --> SEO/metatags --> “Script/meta tags in header”
Pasting script code from Google AdSense into this box
Deploying the new version of the website
Checking on AdSense if Google can “see” the code on my website
Am I putting the script in the wrong place? Is there anything more/different I need to do?
Hey @fracs500, you need to add code to meta block, and then to use HTML elements, just take in mind that you need to be on paid plan and ads will appear in about 24-48 Hours after Google will index your website, so before that add your website to Google search console.
I added the code to the meta block, and then I created an HTML element on the main page. It took a while for it to work, I am guessing there is a minimum time it takes to go into effect.
I’ve copied my code into the meta block, but what about the HTML elements on the page? Is it the same code? How does Google know those HTML elements are linked to the script in the meta block?
Also, I’ve placed 2 HTML elements on the page (each are sized according to the recommended ad sizes from Google). Does Google automatically know to populate each of these HTML elements based on their sizes and orientation?
I pasted the code that I copied from Google into the header field
I went to the main page of my website > design page
under the elements tree you will see the name of your page, click on it, the properties popup will open. scroll down until you see the page html header field and paste the google code
I went back to Google Adsense to check and it worked right away.
The metatag method didn’t work for me, so I tried the ‘Ads.txt’ method, where you create a txt file and upload it to the root directory of your Bubble app.
Check out this guide from Google. So you need to actually create a .txt file with something like Notepad.
Then you upload it to the ‘Hosting File in Root Directory’ section within Settings>SEO/Metatags
Then you should be able to verify on Google AdSense - it worked immediately for me (versus the “metatag” method, which didn’t work even after waiting for an hour)