Platform Setup Guide
Step-by-step instructions to connect Shopify, Meta Ads, Google Ads, TikTok Ads, AdSense, and Ad Manager. Get your true ROAS and P&L data flowing in minutes.
Overview
RevHapi connects to your advertising platforms and Shopify store via their official APIs to fetch revenue, order, and performance data automatically โ synced every hour, no manual exports needed.
Each platform uses a one-time OAuth connection or credential setup. Once connected, RevHapi handles token refresh and data fetching in the background.
If you run an ecommerce store, connect Shopify first. It's the ground-truth order data that powers True ROAS, P&L reports, Customer LTV, and Product Analytics across all your ad platforms.
Quick Start
Before connecting any platform, make sure you have the following in place.
โ Requirements
- โ A RevHapi account โ app.revhapi.com
- โ Admin access to each account you want to connect
- โ For Shopify: store owner or staff with app install permissions
- โ For Google platforms: a Google account with Google Cloud Console access
- โ For Meta: a Facebook Business account with ad account access
- โ For TikTok: a TikTok for Business account with ad account access
For Ad Manager, AdSense, and Google Ads โ sign in with the same Google account to simplify OAuth and avoid permission conflicts.
Shopify
~5 min ยท OAuthConnecting Shopify gives RevHapi access to your real order data โ the foundation for True ROAS, P&L reports, Customer LTV, and Product Analytics. RevHapi reads data only and never writes to your store.
Orders, revenue, refunds, customer data, UTM attribution, and product information โ read-only. No changes are ever made to your store or products.
๐ What you'll need
- โ A Shopify store
- โ Store owner access or staff with app install permissions
- โ UTM-tagged ad links for full attribution (use the RevHapi UTM Builder)
Open Integrations in RevHapi
Log in to app.revhapi.com and go to Settings โ Integrations โ Shopify.
Enter your store URL
Type your Shopify domain โ e.g. yourstore.myshopify.com โ and click Connect Shopify Store. You'll be redirected to Shopify's OAuth page.
Authorise RevHapi in Shopify
Review the permissions and click Install app. You'll be redirected back to RevHapi automatically.
- RevHapi requests read-only access to orders, customers, and products
- No write permissions are requested
Wait for the initial sync
RevHapi pulls your last 90 days of orders on first sync. This may take a few minutes depending on order volume.
Connect your ad platforms
With Shopify synced, connect Meta Ads, Google Ads, or TikTok Ads. RevHapi will immediately start showing platform-reported ROAS vs your Shopify-verified ROAS.
For RevHapi to match Shopify orders to campaigns, your ad links must use UTM parameters. Use the UTM Builder in RevHapi (under Marketing Attribution) to tag all links correctly before running campaigns.
Meta Ads
~20 min ยท Access tokenMeta Ads requires creating a Facebook App with Marketing API access. This gives RevHapi a long-lived access token to read your ad spend and performance data.
If your ad account is personal (not in a Business portfolio), create a Business portfolio first and move your ad account into it at business.facebook.com.
๐ What you'll need
- โ A Facebook account with admin access to your ad account(s)
- โ A Facebook Business portfolio containing your ad accounts
- โ Access to Meta for Developers
Create a Facebook App
Go to Meta for Developers:
- Click Create App โ Other โ Business
- Name it "RevHapi Integration" and select your Business portfolio
- Click Create App
Add the Marketing API product
- In your app dashboard, scroll to Add products to your app
- Find Marketing API and click Set up
Link your Business portfolio
- Go to App Settings โ Business
- Click Add Business Portfolio and select the one containing your ad accounts
Add a Privacy Policy URL
Required before token generation:
- Go to App Settings โ Basic
- Add
https://revhapi.com/privacy.htmlas your Privacy Policy URL - Click Save Changes
Generate your Access Token
- Go to Marketing API โ Tools
- Select permissions:
ads_read,ads_management,read_insights - Click Generate Token and copy the result
RevHapi will notify you when renewal is needed. For a non-expiring token, create a System User token in Business Settings.
Find your Ad Account ID
- Go to Ads Manager โ the ID is in the URL (e.g.
act_123456789) - Or: Business Settings โ Ad Accounts
- Copy the numeric ID without the
act_prefix
Connect in RevHapi
- Go to Settings โ Integrations โ Meta Ads
- Paste your Access Token and enter your Ad Account ID
- Give the account a display name and click Connect
Repeat for each ad account you want to track.
RevHapi will now fetch Meta Ads spend data hourly. Remember to renew your token before it expires.
Google Ads
~3 min ยท OAuthGoogle Ads connects via OAuth โ one-click sign-in. RevHapi reads your spend, impressions, clicks, and conversion data and cross-references it with your Shopify orders for true ROAS.
๐ What you'll need
- โ A Google account with access to your Google Ads account(s)
- โ At least one active Google Ads account
- โ Manager (MCC) account access if tracking multiple clients
Go to Google Ads in RevHapi
Navigate to Settings โ Integrations โ Google Ads and click Connect Google Ads.
Sign in with Google
Sign in with the account that has access to your Google Ads accounts and click Allow. RevHapi requests read-only access only.
Select accounts to track
RevHapi will list all Google Ads accounts accessible to your Google account. Select the ones you want and click Save.
Initial sync
RevHapi pulls the last 30 days of spend and conversion data. If Shopify is connected, the Attribution tab will immediately show platform vs Shopify-verified ROAS.
Sign in with your MCC credentials and RevHapi will list all child accounts. You can select individual client accounts to track separately.
Google Ads spend and conversion data will sync to RevHapi every hour.
Google AdSense
~2 min ยท OAuthAdSense is the easiest platform to connect โ just sign in with Google. RevHapi fetches your earnings, RPM, impressions, and URL-level performance data automatically each hour.
๐ What you'll need
- โ A Google account with an active, approved AdSense account
- โ Your AdSense account must be serving ads
Go to AdSense in RevHapi
Navigate to Settings โ Integrations โ Google AdSense and click Connect AdSense.
Sign in with Google
Sign in with the Google account that owns your AdSense account. Review the read-only permissions and click Allow.
Select your AdSense account
If you have multiple AdSense accounts, select the one to connect. RevHapi will automatically detect your Publisher ID.
Data starts flowing
RevHapi immediately begins fetching earnings data. You'll see RPM, impressions, clicks, and URL-level earnings in the dashboard within a few minutes.
You can connect both. RevHapi shows a combined publisher revenue view across AdSense content ads and Ad Manager direct deals side by side.
Earnings, RPM, and URL-level performance will appear in your RevHapi dashboard within minutes.
Google Ad Manager
~15 min ยท Service accountAd Manager requires a service account โ a one-time setup that gives RevHapi secure automated access to your publisher revenue data without requiring manual sign-in each time.
๐ What you'll need
- โ A Google account with Admin access to your Ad Manager network
- โ Your Ad Manager Network Code (Admin โ Network settings)
- โ Access to Google Cloud Console
Create a Google Cloud Project
Go to console.cloud.google.com:
- Click Select a project โ New Project
- Name it "RevHapi Integration" and click Create
Enable the Ad Manager API
- Go to APIs & Services โ Library
- Search "Google Ad Manager API" and click Enable
Create a Service Account
- Go to APIs & Services โ Credentials โ Create Credentials โ Service Account
- Name it "RevHapi API Access" and click Create and Continue
- Skip optional role steps and click Done
Download the JSON key file
- Click your new service account โ Keys tab
- Click Add Key โ Create new key โ JSON โ Create
- A JSON file downloads automatically โ keep it safe
Treat this like a password. Never share it publicly. RevHapi encrypts it immediately on upload.
Add the service account to Ad Manager
- Go to admanager.google.com
- Navigate to Admin โ Global settings โ Network settings and ensure API access is Enabled
- Go to Admin โ Users โ Service account users โ New service account user
- Paste the service account email from your JSON file (e.g.
name@project-id.iam.gserviceaccount.com) - Set role to Viewer and click Save
Connect in RevHapi
- Go to Settings โ Integrations โ Ad Manager
- Enter your Network Code
- Open the JSON key file in a text editor, copy the entire contents, and paste into the JSON Key field
- Click Connect
RevHapi will now fetch your Ad Manager revenue data. Initial data may take a few minutes to appear.
TikTok Ads
~3 min ยท OAuthTikTok Ads connects via OAuth โ the same simple one-click flow as Google and AdSense. Once connected, RevHapi tracks TikTok spend and cross-references it against Shopify orders to show your real ROAS.
TikTok's self-reported ROAS is often significantly inflated due to view-through attribution. Connecting Shopify + TikTok lets RevHapi show you the real gap between what TikTok claims and what your store actually confirmed.
๐ What you'll need
- โ A TikTok for Business account
- โ Admin or Operator access to your TikTok Ads account
- โ At least one active ad account under your Business Center
Go to TikTok Ads in RevHapi
Navigate to Settings โ Integrations โ TikTok Ads and click Connect TikTok Ads.
Authorise via TikTok OAuth
You'll be redirected to TikTok's authorisation page. Log in with your TikTok for Business account and click Confirm. RevHapi requests read-only access only.
Select your ad accounts
RevHapi will list all ad accounts in your Business Center. Select the ones to track and click Save.
Initial sync
RevHapi pulls your last 30 days of TikTok spend. If Shopify is connected, the Attribution tab immediately shows platform vs Shopify-verified ROAS for TikTok campaigns.
Tag all TikTok ad destination URLs with UTM parameters using the RevHapi UTM Builder. Without UTMs, orders cannot be matched to TikTok campaigns.
TikTok Ads spend syncs hourly alongside Meta, Google, and your Shopify order data.
Troubleshooting
Common issues and how to fix them, organised by platform.
ShopifyThe initial sync can take a few minutes depending on your order volume. Wait 5 minutes and refresh the dashboard. If orders still don't appear, try disconnecting and reconnecting your store. Make sure you have at least one order in the last 90 days.
Shopify only captures UTMs when they're present in the URL on the customer's first visit. Ensure your ad links include all UTM parameters and you're not using link shorteners that strip them. Use the RevHapi UTM Builder to create correctly formatted URLs.
Make sure you're logged into Shopify as the store owner or a staff account with the "Manage apps" permission enabled. Ask the store owner to grant this in Staff settings if needed.
Meta AdsMeta access tokens expire after ~60 days. Go to your Meta App โ Marketing API โ Tools, generate a new token with the same permissions (ads_read, ads_management, read_insights), and update it in RevHapi under Settings โ Integrations โ Meta Ads.
The ad account must be in the Business portfolio linked to your Meta app. Go to Business Settings โ Ad Accounts to verify. Also check the token was generated with the correct permissions.
A Privacy Policy URL must be set in App Settings โ Basic before Meta allows token generation. Use https://revhapi.com/privacy.html if you don't have one.
Google AdsSign out of all Google accounts in your browser, then reconnect using the Google account that actually has access to the Google Ads accounts you want to track.
The signed-in Google account may not have access to any active Google Ads accounts. Verify at ads.google.com. For MCC accounts, sign in with the manager account credentials.
Google AdSenseYour browser may be blocking popups from app.revhapi.com. Allow popups for this domain in your browser settings and try again.
AdSense data can have a 24โ48 hour processing delay. Missing data for the last 1โ2 days is normal and will backfill automatically on the next hourly sync.
Google Ad ManagerEnable the Google Ad Manager API in your Cloud project: APIs & Services โ Library โ search "Google Ad Manager API" โ Enable.
The service account hasn't been added to Ad Manager. Go to Admin โ Users โ Service account users in Ad Manager and add the service account email with at least Viewer permissions.
Open the downloaded .json file in a plain text editor (not Word), select all, copy, and paste the entire contents โ including the opening and closing curly braces โ into RevHapi.
TikTok AdsThe TikTok for Business account you authorised may not have any ad accounts under it. Log in at ads.tiktok.com to verify. If accounts are under a different Business Center, reconnect using those credentials.
TikTok Ads data has a ~3 hour processing delay via API. Data for today may be incomplete โ yesterday's data should be fully accurate.
Frequently Asked Questions
Yes. All stored credentials are encrypted with AES-256. RevHapi requests read-only permissions on every platform โ we can view your revenue and spend data but cannot modify campaigns, budgets, or settings. We never store ad creative or customer PII beyond what's needed for attribution.
RevHapi syncs all connected platforms automatically every hour. You can also trigger a manual refresh from the dashboard at any time using "Fetch All".
Yes โ you can connect multiple Meta Ads accounts (each with its own token and account ID), multiple Google Ads accounts, and multiple AdSense accounts. For Shopify, the number of stores depends on your plan: 1 store on Starter and Pro, 3 stores on Business.
Read-only access on every platform. Shopify: orders, products, customer data (read). Meta: ads_read, ads_management, read_insights. Google platforms: read-only OAuth scopes. TikTok: read-only ad account access. RevHapi never requests write permissions.
True ROAS is Shopify-confirmed revenue divided by actual ad spend. It differs from platform-reported ROAS because platforms like Meta and TikTok often claim credit for the same conversion. RevHapi uses UTM data on Shopify orders to attribute revenue to specific campaigns โ giving you a number platforms can't inflate.
Go to Settings โ Integrations, find the platform, and click Disconnect. Your historical data is retained and no new data will be fetched. You can also revoke access from the platform side (Google Account permissions, Meta App settings, etc.).
Email us at contact@revhapi.com or use the Support link inside the app. We respond within 1 business day. Pro and Business plan users receive priority responses.
