Once your AdSense account is approved, the next step is adding the AdSense code to your WordPress site. There are three methods to do this, each with different levels of control and complexity. This guide walks through all three so you can choose what works best for your setup.
Method 1: Site Kit by Google Plugin (Easiest - Recommended)
The official Google Site Kit plugin is by far the easiest method and is officially supported by both Google and WordPress. It also integrates Analytics, Search Console, and PageSpeed Insights in one dashboard.
- In WordPress Admin, go to Plugins → Add New
- Search for "Site Kit by Google" and click Install Now
- Activate the plugin and click Start Setup
- Sign in with your Google account and grant permissions
- On the Site Kit dashboard, click Connect AdSense
- Follow the on-screen wizard — Site Kit automatically adds your AdSense code
- Enable Auto Ads and choose your ad settings
Method 2: Header & Footer Scripts Plugin
This is the best method for manual control over ad placement without editing theme files:
- Install the Header Footer Code Manager plugin
- Copy your AdSense Auto Ads code from your AdSense dashboard (Ads → By Site → Get code)
- In WordPress, go to HFCM → Add New Snippet
- Set location to Header and place type to Site-wide
- Paste your AdSense code and Save
- Verify the code appears by right-clicking any page → View Source → search for "adsbygoogle"
Method 3: Manual Theme Editing (Advanced)
For developers who want full control:
- Go to Appearance → Theme Editor (or use FTP)
- Open header.php in your active theme
- Paste your AdSense code immediately before the closing
</head>tag - Click Update File
⚠️ Warning: This edit will be overwritten when you update your theme unless you use a Child Theme or a "Code Snippets" plugin approach instead.
Adding Manual Ad Units in Posts
For in-article ads at specific positions:
- Go to AdSense → Ads → By Ad Unit → Create New → Display Ad
- Configure the size and name your ad unit
- Copy the generated code snippet
- In WordPress, create a Custom HTML block in Gutenberg where you want the ad
- Paste the ad code in the block
Alternatively, use a plugin like WP QUADS or Advanced Ads to manage ad positions visually without touching code.
Verifying Your Ads Are Live
After adding the AdSense code, ads can take 20-48 hours to start appearing. Check your AdSense dashboard — if you see impressions increasing in the "Performance" section, your ads are live. Initially, you may see Public Service Announcements (PSAs) instead of paid ads — this is normal and stops after Google calibrates your site.
✅ Not Approved Yet?
Use our free AdSense checker to see if your WordPress site meets all requirements before applying.