Google Ad Manager
Service account + JSON key
Step-by-step instructions to connect your advertising accounts to RevHapi. Follow these guides to start tracking your revenue across all platforms.
RevHapi connects to your advertising platforms via their official APIs to fetch revenue and performance data. Each platform requires different credentials and setup steps. This guide walks you through the process for each platform.
Before connecting any platform, make sure you have:
For Google platforms (Ad Manager, AdSense, Google Ads), use the same Google account that has access to your advertising accounts. This simplifies the setup process.
Google Ad Manager requires a service account with API access. This is a one-time setup that allows RevHapi to fetch your revenue data securely.
Go to Google Cloud Console and sign in with the Google account that has access to your Ad Manager.
With your new project selected:
Service accounts allow secure, automated API access without requiring manual login.
This key file is what you'll paste into RevHapi.
Never share your JSON key file publicly. Treat it like a password. RevHapi encrypts and stores it securely.
Now authorize this service account in your Ad Manager network:
name@project.iam.gserviceaccount.com)Final step โ add your credentials to RevHapi:
RevHapi will now fetch your Ad Manager revenue data. Initial data may take a few minutes to appear.
Meta Ads requires creating a Facebook App with Marketing API access. This gives you a long-lived access token to fetch ad spend data.
If you have a personal ad account (not linked to a Business), you'll need to create a Business portfolio first and move your ad account into it. Go to business.facebook.com to set this up.
Go to Meta for Developers:
Once your app is created:
Link your Business portfolio containing your ad accounts:
Required before you can generate tokens:
You can use any valid URL for now, such as a Google Doc or your company website's privacy page.
Now create the token that RevHapi will use:
ads_read โ Read ad account dataads_management โ Required for some metricsread_insights โ Access performance dataThis token expires in ~60 days. RevHapi will notify you when it needs renewal. For a never-expiring token, you can extend it to a System User token (advanced).
You'll need your ad account ID(s):
act_123456789)Add your credentials to RevHapi:
Repeat for each ad account you want to track.
RevHapi will now fetch your Meta Ads spend data. Remember to renew your token before it expires!
AdSense uses OAuth sign-in โ the easiest setup! Just click connect and authorize with your Google account.
Navigate to RevHapi โ AdSense and click the Connect AdSense button.
You'll be redirected to Google. Sign in with the Google account that owns your AdSense account.
If you have multiple AdSense accounts, select the one you want to connect. RevHapi will automatically detect your Publisher ID.
AdSense is now connected. RevHapi will fetch your earnings data automatically.
Google Ads also uses OAuth sign-in for quick and secure connection.
Navigate to RevHapi โ Google Ads and click the Connect Google Ads button.
Sign in with the Google account that has access to your Google Ads accounts.
RevHapi will show all Google Ads accounts you have access to. Select which ones you want to track.
Your Google Ads spend data will now be synced to RevHapi.
Running into issues? Here are solutions to common problems:
Make sure you've enabled the Google Ad Manager API in Google Cloud Console. Go to APIs & Services โ Library, search for "Google Ad Manager API", and click Enable.
The service account hasn't been added to Ad Manager. Go to Admin โ Users โ Service account users in Ad Manager and add your service account email with at least Viewer permissions.
Make sure you're copying the entire JSON file contents, including the curly braces. Open the downloaded .json file in a text editor, select all (Ctrl+A), copy, and paste.
Meta access tokens expire after ~60 days. Go back to your Meta App โ Marketing API โ Tools, generate a new token with the same permissions, and update it in RevHapi.
Make sure the ad account is linked to the Business portfolio that's connected to your app. Go to Business Settings โ Ad Accounts to verify.
You need a Privacy Policy URL set in your app. Go to App Settings โ Basic and add a Privacy Policy URL (any valid URL works).
Check if your browser is blocking popups. Allow popups from app.revhapi.com in your browser settings.
Make sure you're signing in with the Google account that actually has AdSense/Google Ads access. Try signing out of all Google accounts first, then connect again.
Yes. RevHapi uses industry-standard encryption for all stored credentials (AES-256). API tokens are encrypted at rest and we only request read-only permissions where possible. We never store your actual advertising content โ only aggregated performance metrics.
RevHapi automatically syncs data every hour for all connected platforms. You can also manually refresh at any time from the Dashboard.
Yes! You can connect multiple ad accounts from the same or different platforms. This is great for agencies managing multiple clients or businesses with separate ad accounts.
RevHapi only requests read-only access to your advertising data. We can view your revenue, spend, and performance metrics, but we cannot modify your campaigns, budgets, or settings.
Go to the platform's settings page in RevHapi and click "Disconnect". Your historical data will be retained, but no new data will be fetched. You can also revoke access from the platform's side (e.g., in Google Account permissions).
Contact our support team at support@revhapi.com or use the Support page in the app. We typically respond within 24 hours.