Integrations
Google AdSense
Connect your AdSense account to serve Google display ads inside your gate steps.
Connecting Google AdSense lets you use AdSense display ads as a gate step — readers view an ad in exchange for access to your content.
Prerequisites
- An approved Google AdSense account
- A site added and approved in AdSense (your domain must be verified by Google)
Step 1 — Find your Publisher ID
- Sign in to Google AdSense
- Click your account avatar → Account information
- Your Publisher ID is shown in the format
pub-XXXXXXXXXXXXXXXX
Step 2 — Get your Ad Client ID
Your Ad client ID is the same as your Publisher ID in a different format: ca-pub-XXXXXXXXXXXXXXXX.
To confirm:
- In AdSense, go to Ads → By ad unit
- Click Create new ad unit (or open an existing one)
- Look at the ad code — the
data-ad-clientattribute value is your ad client ID
Step 3 — Create an ad unit
- In AdSense, go to Ads → By ad unit → Display ads
- Give the unit a name (e.g. "OnePaywall Gate Ad")
- Choose Responsive size
- Click Create — AdSense shows you the ad slot code
- Copy the data-ad-slot value (a number like
1234567890)
Step 4 — Connect AdSense in OnePaywall
- Go to Dashboard → Advertising → Networks
- Click Connect AdSense
- Enter:
- Publisher ID (e.g.
pub-1234567890123456) - Ad client ID (e.g.
ca-pub-1234567890123456)
- Publisher ID (e.g.
- Click Save
Step 5 — Create an ad unit in OnePaywall
- Go to Dashboard → Advertising → New ad unit
- Set Source to AdSense
- Enter your Ad slot ID
- Click Save
You can now add this ad unit to a gate's Ad step (see Ad units).
AdSense policies
Using AdSense inside a paywall gate is subject to Google's policies. Specifically:
- Ads must be visible and not covered by other content
- Readers must be able to scroll past the ad; auto-close mechanisms that bypass viewing are not permitted
- Your site must have original content �� AdSense does not approve sites with thin or copied content
Review Google's AdSense program policies before going live.