Activating your AdSense account

Connect your site to AdSense

To complete the AdSense activation process you need to connect your site to AdSense. Here's how:

  1. Sign in to your AdSense account.
  2. Copy the code on your AdSense homepage.
  3. Paste the code into the HTML of your page, between the <head> and </head> tags. Learn more about pasting ad code in our Code implementation guide.
    WordPress user? Learn how to insert ad code in your WordPress site.
    View an example HTML page with the code added

    <script async src="//"></script>
    (adsbygoogle = window.adsbygoogle || []).push({
    google_ad_client: "ca-pub-123456789",
    enable_page_level_ads: true

    This is the head of your page.
    <title>Example HTML page</title>
    This is the body of your page.

  4. (Optional) If you incorrectly entered the URL of your site when you created your AdSense account, click edit Edit and update your URL.
  5. Leave the Show ads as soon as my account is activated box checked, unless you'd prefer to switch on the ads you want to show yourself after your account is activated.
    Make sure you've placed the code on every page you want ads to appear when your site is activated.
  6. When you've finished, confirm you've pasted the code and click Done.

Show ads as soon as your account is activated

When you connect your site, you can choose to show ads as soon as your account is activated. We recommend you leave this option selected so that you can start earning money from your content right away.

Provided you've added the code from your AdSense homepage to your pages that you want to show ads on, you're all set. Google will analyze your pages, find suitable ad placements, then automatically place the ads for you. Our system will choose the most suitable ads for your page type.

We can't detect the code

If we can't detect the code on your site, we'll send you an email. To help you fix the issue, here are a few things to check:

  • Did you paste the code into the HTML of your site?
  • Did you paste the code between the <head> and </head> tags?
  • Did you paste the code into your sign-up site?
Was this article helpful?
How can we improve it?