How to integrate Google AdSense

Peter VoPeter Vo
2 min read

Step 1: Sign-up for Google AdSense

Have your web site ready.

Visit https://adsense.google.com/start/, and select Sign-up using your Google Account.

Add your site. For me, I experimented first with my test site: https://peter-test-stuff.azurewebsites.net/

Step 2: Review options to integrate

There will be 3 options to integrate:

  • AdSense code snippet

  • Ads.txt snippet

  • Meta tag

The first one is recommended. Follow the instructions in the AdSense page to add the code snippet into your web site. Publish/update your website.

For my website, since it is a Single-page Blazor WASM, I add the code snippet into the wwwroot\index.html page:

In the AdSense site, there is also Ads Preview to see how the Ads would look like on your website:

Turn the Auto-ads on to see how the Ads would look:

Step 3: Instruct AdSense to Connect and Review

Find the following button and “Let’s go” on the AdSense site:

Follow the instructions.

Then wait for Google to review your site, which takes a few days to 2-4 weeks.

Step 4: Get Rejected

After getting reviewed, my site was rejected:

So, the site still has the Google AdSense underlined, but no Ads in to monetize:

It looks like for my web app site (which are demos, tools, games) is considered lack of publisher-content. Meanwhile, blog and wiki pages would consider as content-rich site and, hence, applicable to the AdSense.

To do next

Possibly create another web site that acts as my own blogs (similar to Ardalis’s Blog). Then integrate the Google AdSense to it. If that round becomes successful, to update this article/journal.

Or explore some other alternatives such as Carbon Ads.

Or create/learn another Demo, like OAuth2 or Stripe.

References

https://www.reddit.com/r/webdev/comments/o8g38h/so_how_do_i_put_ads_on_my_site/

https://adsense.google.com/start/

0
Subscribe to my newsletter

Read articles from Peter Vo directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Peter Vo
Peter Vo

A (kinda) carefree blogger who likes to blog anything he finds interesting...