Question

Is it possible to put adsense ads on an app on app platform in digital ocean?

Is it possible to put adsense ads on an app on app platform in digital ocean? I’ve tried putting meta tags and script add ins but so far adsense won’t accep the site.

Show comments

Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I asked the question and now I am supplying the answer (my answer). Yes you can add adsense to a digital ocean app platform app site. The solution to my problems was to add the ads.txt file and not try to use the other 2 methods (1)adding meta tag or 2)adding <script>adsense stuff</script>). In my case, I was transferring a godaddy site to digital ocean app platform. Putting in the <meta> tag and/or the new <script> simply didn’t show up in the html. You see a mysterious https appear(I haven’t paid for it as far as I know) but that wasn’t why adsense couldn’t find my website (i don’t know exactly why the previous 2 methods were failing). But adding ads.txt is what worked.

Bobby Iliev
Site Moderator
Site Moderator badge
August 7, 2024

Hi there,

In order to claim the domain ownership it is best to use your personal domain name rather than the default DigitalOcean App Platform hostname.

You can follow the steps on how to do that here:

https://docs.digitalocean.com/products/app-platform/how-to/manage-domains/

Let me know if you have any questions!

- Bobby

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
Animation showing a Droplet being created in the DigitalOcean Cloud console