Foundations 3 min read

What Is OAuth for Ad Platforms? Secure Authentication for Conversion Uploads

Last verified: 2026-11-05

OAuth (Open Authorization) is the industry-standard authentication protocol that lets The Upload Offline Conversions App (TUOCA) securely connect to your ad platform accounts — Google Ads, Meta, Microsoft Ads, and TikTok — without ever seeing or storing your password.

When you connect a destination platform in TUOCA, you’re taken to the platform’s own login page (Google, Facebook, etc.) where you authorize specific permissions. TUOCA receives a token — not your password — that provides limited, revocable access.

How OAuth Works

The Authorization Flow

1. You click "Connect Google Ads" in TUOCA
    ↓
2. TUOCA redirects you to Google's login page
    ↓
3. You log in with YOUR Google credentials (on Google's site)
    ↓
4. Google shows: "TUOCA wants to: manage offline conversions"
    ↓
5. You click "Allow"
    ↓
6. Google sends TUOCA an authorization code
    ↓
7. TUOCA exchanges the code for tokens (access + refresh)
    ↓
8. TUOCA uses the access token to upload conversions via API

Critical security point: TUOCA never sees your username or password. The login happens entirely on Google’s (or Meta’s, Microsoft’s, TikTok’s) website.

Token Types

TokenPurposeLifetimeStorage
Access tokenAuthenticates API requests~1 hourTemporary, in-memory
Refresh tokenGets new access tokensMonths (or until revoked)Encrypted at rest
Authorization codeOne-time code for initial setup~10 minutesUsed once, discarded

Token Refresh Flow

Access token expires (after ~1 hour)
    ↓
TUOCA automatically sends refresh token to Google
    ↓
Google issues a new access token
    ↓
TUOCA continues uploading with no interruption

This happens transparently — you never need to re-login for routine token refreshes.

OAuth by Platform

PlatformOAuth VersionScope RequiredToken Refresh
Google AdsOAuth 2.0ads.readonly, adwords.readonly + conversion uploadAutomatic
MetaOAuth 2.0ads_management, business_managementAutomatic
Microsoft AdsOAuth 2.0msads.manageAutomatic
TikTokOAuth 2.0ads.managementAutomatic

Why OAuth Matters for Security

Without OAuth (The Old Way)

You give TUOCA your Google username + password
    → TUOCA has full access to everything
    → If TUOCA is compromised, your entire Google account is exposed
    → You can't limit what TUOCA can do
    → Changing your password breaks the connection

With OAuth (The Secure Way)

You authorize specific permissions through Google's login
    → TUOCA has a scoped token (conversion upload only)
    → TUOCA never has your password
    → You can revoke access at any time
    → Changing your password doesn't break the connection
    → If TUOCA is compromised, only the limited scope is at risk

Common OAuth Issues

IssueSymptomFix
Token expiredUploads fail with 401 UnauthorizedTUOCA auto-refreshes; if persistent, re-authenticate
Refresh token revokedAll uploads stop, re-auth requiredRe-connect the platform in TUOCA
Password changedRefresh token may be invalidatedRe-authenticate in TUOCA settings
2FA changedMay invalidate existing tokensRe-authenticate
Account permissions changedUpload fails with 403 ForbiddenVerify account-level permissions
MCC access removedClient account uploads failRe-link the account in the MCC

See OAuth Token Expired Reconnection Guide for troubleshooting.

TUOCA’s OAuth Permissions

TUOCA requests minimum necessary permissions:

What TUOCA CAN Do

  • ✅ Read conversion action configurations
  • ✅ Upload offline conversions
  • ✅ Read account structure (for MCC management)
  • ✅ Read campaign/ad group names (for relay configuration)

What TUOCA CANNOT Do

  • ❌ Modify campaigns, budgets, or bids
  • ❌ Create or delete ads
  • ❌ Access billing information
  • ❌ Change account settings
  • ❌ Access other Google services (Gmail, Drive, etc.)

Revoking Access

You can revoke TUOCA’s access at any time:

  1. Go to myaccount.google.com/permissions
  2. Find TUOCA in the list
  3. Click Remove Access

Meta

  1. Go to Facebook Settings → Apps and Websites
  2. Find TUOCA
  3. Click Remove

Microsoft Ads

  1. Go to account.microsoft.com/permissions
  2. Find TUOCA
  3. Click Remove permissions

Revoking access immediately stops TUOCA from uploading conversions. Your existing relay configurations are preserved, but they won’t execute until re-authenticated.

How TUOCA Handles OAuth Security

  1. Encrypted storage — Refresh tokens are encrypted at rest using AES-256
  2. Automatic refresh — Access tokens are refreshed automatically before expiration
  3. Minimum scope — Only the permissions needed for conversion uploads are requested
  4. Session isolation — Each connected account’s tokens are isolated
  5. Audit logging — All authentication events are logged for security review

See Security & Compliance for TUOCA’s full security practices.

Frequently Asked Questions

OAuth (Open Authorization) is a standard protocol that lets third-party applications access your ad platform account without requiring your username and password. Instead, you grant permission through the platform's own login screen, and the app receives a limited-scope token. This is more secure because the app never sees your credentials and you can revoke access at any time.

OAuth tokens have limited lifetimes. Access tokens typically expire after 1 hour. Refresh tokens last longer but can expire if unused for 6 months (Google) or if you change your password. When tokens expire, TUOCA automatically uses the refresh token to get a new access token. If the refresh token itself expires, you'll need to re-authenticate.

Yes. You can revoke access at any time through your ad platform's settings: Google (myaccount.google.com/permissions), Meta (Facebook Settings > Apps and Websites), Microsoft (account.microsoft.com/permissions), TikTok (TikTok Ads Manager > Settings > Authorized Partners). Revoking access immediately stops TUOCA from uploading conversions.

TUOCA requests the minimum permissions needed: read access to conversion actions and campaign data, write access to upload offline conversions, and read access to account structure (for MCC/multi-account management). TUOCA does not request access to modify campaigns, budgets, or billing.

Stop Guessing. Start Proving ROI.

TUOCA connects your CRM and call tracking data directly to your ad platforms. Set up in minutes.