๐Ÿ“– Documentation Last updated: April 2026 6 Platforms

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.

RevHapi

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.

๐Ÿ’ก
Start with Shopify

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
๐Ÿ’ก
Use the same Google account across all Google platforms

For Ad Manager, AdSense, and Google Ads โ€” sign in with the same Google account to simplify OAuth and avoid permission conflicts.

Shopify

Shopify

~5 min ยท OAuth

Connecting 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.

๐Ÿ›’
What RevHapi reads from Shopify

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.

โš ๏ธ
UTM tagging is required for attribution

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

Meta Ads

~20 min ยท Access token

Meta 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.

โš ๏ธ
Personal ad accounts

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.html as 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
โš ๏ธ
Tokens expire in ~60 days

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.

โœ…
Connected

RevHapi will now fetch Meta Ads spend data hourly. Remember to renew your token before it expires.

AdSense

Google AdSense

~2 min ยท OAuth

AdSense 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.

๐Ÿ’ก
Using both AdSense and Ad Manager?

You can connect both. RevHapi shows a combined publisher revenue view across AdSense content ads and Ad Manager direct deals side by side.

โœ…
That's it

Earnings, RPM, and URL-level performance will appear in your RevHapi dashboard within minutes.

TikTok Ads

TikTok Ads

~3 min ยท OAuth

TikTok 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.

๐Ÿ’ก
Why TikTok attribution matters

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.

โš ๏ธ
UTM parameters are required for order attribution

Tag all TikTok ad destination URLs with UTM parameters using the RevHapi UTM Builder. Without UTMs, orders cannot be matched to TikTok campaigns.

โœ…
Connected

TikTok Ads spend syncs hourly alongside Meta, Google, and your Shopify order data.

๐Ÿ”ง

Troubleshooting

Common issues and how to fix them, organised by platform.

Shopify

The 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 Ads

Meta 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 Ads

Sign 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 AdSense

Your 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 Manager

Enable 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 Ads

The 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.