Integrations
Google Ad Manager
Connect Google Ad Manager (GAM) to serve programmatic ads inside your gate steps.
Google Ad Manager (GAM) lets you sell ad inventory directly or via programmatic demand. Connecting it to OnePaywall lets you serve GAM line items and programmatic ads inside gate steps.
Prerequisites
- A Google Ad Manager account (Standard or Premium / 360)
- A verified domain in GAM
- API access enabled on your GAM account
Step 1 — Find your Network Code
- Sign in to Google Ad Manager
- Go to Admin ��� Global settings
- Your Network code is shown on this page — it's a numeric ID like
12345678
Step 2 — Enable API access
- In GAM, go to Admin �� Global settings
- Scroll to API access and click Enable API access
- Check the box to agree to the API Terms
Step 3 — Create a service account
GAM uses a Google Cloud service account for API authentication.
- Go to the Google Cloud Console
- Create a project (or use an existing one)
- Go to APIs & Services → Credentials
- Click Create credentials → Service account
- Give it a name (e.g.
onepaywall-gam) - Click Create and continue → skip optional steps → Done
- Click the service account you just created
- Go to the Keys tab → Add key → Create new key → JSON
- Download the JSON credentials file — keep this safe, it grants API access to your GAM account
Step 4 — Add the service account to GAM
- Copy the service account email from the JSON file (field:
client_email) - In GAM, go to Admin → Users
- Click New user
- Paste the service account email
- Assign the role Read & report (minimum required) or Administrator
- Click Save
Step 5 — Connect GAM in OnePaywall
- Go to Dashboard → Advertising → Networks
- Click Connect Google Ad Manager
- Enter your Network code
- Upload the JSON credentials file you downloaded
- Click Save
OnePaywall encrypts the credentials — the JSON file is never stored in plaintext.
Step 6 — Create a GAM ad unit in OnePaywall
- Go to Dashboard → Advertising → New ad unit
- Set Source to Google Ad Manager
- Enter the Ad unit path (from GAM → Inventory → Ad units)
- Set dimensions
- Click Save
You can now use this unit in gate Ad steps (see Ad units).