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:
- Sign in to your AdSense account.
- Copy the code on your AdSense homepage.
- 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<html>
<head>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
</script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "ca-pub-123456789",
enable_page_level_ads: true
});
</script>
This is the head of your page.
<title>Example HTML page</title>
</head>
<body>
This is the body of your page.
</body>
</html> - (Optional) If you incorrectly entered the URL of your site when you created your AdSense account, click Edit
and update your URL.
- Confirm that you've pasted the code and click Done.
Connection issues
If we can't confirm the code is placed correctly on your site you'll see a message on your AdSense homepage. Here are some things to check to help you fix connection issues.
The code is missing or incomplete
- 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 the site you used to sign up for AdSense?
Your site is unreachable
- Did you provide the correct URL when you created your AdSense account? If you made a mistake, you can click edit
and update your URL.
- Is your site up and running? Make sure that your site is published and live on the web.
- Can AdSense access your site without a password? If your site's login protected, consider temporarily removing the login so that we can reach your site. Note that after your account has been successfully activated, you can create a crawler login to display Google ads on your login-protected pages.