Advertising
Connect Ad Networks
Link Google AdSense or Google Ad Manager to serve network-sourced ads in your gates.
OnePaywall supports Google AdSense and Google Ad Manager as ad sources. Once connected, you can use network-served ads inside gate steps.
Google AdSense
What you need
- A Google AdSense account
- Your Publisher ID (format:
pub-XXXXXXXXXXXXXXXX) - Your Ad client ID (format:
ca-pub-XXXXXXXXXXXXXXXX)
How to find your AdSense credentials
- Sign in to Google AdSense
- Click the Account icon → Account information
- Your Publisher ID is shown as
pub-XXXXXXXXXXXXXXXX - To get an ad unit code, go to Ads → By ad unit → create or select a unit — the
data-ad-clientvalue is your ad client ID
Connecting AdSense in OnePaywall
- Go to Dashboard → Advertising → Networks
- Click Connect AdSense
- Enter your Publisher ID and Ad client ID
- Click Save
Google Ad Manager (GAM)
What you need
- A Google Ad Manager account (standard or premium)
- Your Network code (the number in your GAM URL, e.g.
12345678)
How to find your GAM credentials
- Sign in to Google Ad Manager
- Go to Admin → Global settings
- Your Network code is shown in the Network code field
For API access (required for programmatic ad serving):
- Go to Admin → Global settings → API access
- Enable API access and create a service account
- Download the JSON credentials file
Connecting GAM in OnePaywall
- Go to Dashboard → Advertising → Networks
- Click Connect Google Ad Manager
- Enter your Network code
- Upload the service account JSON credentials file
- Click Save
After connecting
Once connected, the network appears as an option when creating an ad unit. Select it as the source and choose the ad unit or tag you want to serve.