Google Ads API Access Application (Google Cloud project)

EurekaX — Technical Design & Architecture Document

Documentation for Google Ads API Basic Access Review • November 2026

Application Name EurekaX
Production Domain https://eurekax.online
Target Audience External advertisers & media buyers (third-party users)
OAuth Scope https://www.googleapis.com/auth/adwords

1. Executive Summary & Tool Purpose

EurekaX is a web-based conversion tracking and campaign reporting platform for advertisers and media buyers who run Google Ads traffic to affiliate or lead-generation offers. Each user links their own Google Ads accounts with OAuth and only ever sees and acts on those accounts.

Who uses it

The platform solves three core operational requirements:

  1. Offline Conversion Synchronization: Automatically upload verified offline conversions and attribution milestones (postbacks) back into Google Ads via the ConversionUploadService using Google Click IDs (gclid, gbraid, wbraid). This powers Smart Bidding and conversion-value optimization.
  2. Automated Campaign Scheduling ("Autopilot"): Dayparting: the user sets a daily schedule for a campaign they mapped, and EurekaX enables or pauses that campaign at those times via the CampaignService. Only campaign.status is changed; budgets, bids and other settings are never modified.
  3. Campaign Performance Aggregation: Read campaign status and daily metrics (impressions, clicks, cost, conversions, conversion value) via Google Ads Query Language (GAQL) searches, and show them next to our own tracking-link click counts and network postbacks so media buyers can compare cost against revenue per campaign.

How click and conversion data is collected

  1. The campaign's final URL in Google Ads points to a EurekaX tracking link (https://eurekax.online/r/<slug>) with Google's auto-tagging parameter (gclid/gbraid/wbraid).
  2. When a real visitor clicks the ad, the tracking link logs the click (time, device type from the browser's user agent, country from the CDN header, the Google click ID and a keyed hash of IP + user agent; the raw IP is not stored) and immediately redirects the visitor to the advertiser's landing page with a EurekaX click ID.
  3. Known crawlers (for example AdsBot-Google) are still redirected but are not counted.
  4. When the visitor converts, the affiliate network or tracker sends a server-to-server postback with that click ID. The conversion is matched to the stored Google click ID and queued.
  5. The scheduler uploads queued conversions with UploadClickConversions. Only conversions that belong to a click Google issued a click ID for are uploaded.

What EurekaX does not do

2. OAuth 2.0 Authentication & User Journey

EurekaX integrates strictly with Google's sanctioned OAuth 2.0 Web Application flow. No permanent Google passwords or user login credentials are ever requested, captured, or handled by our system.

Step-by-Step User Consent Flow:

  1. Initiation: A user signs in to EurekaX with their own login and navigates to Traffic Sources. They click "Link Google account".
  2. Consent Screen: The user is redirected to https://accounts.google.com/o/oauth2/v2/auth requesting the following scopes:
    • openid, email, profile (User identification)
    • https://www.googleapis.com/auth/adwords (Google Ads management)
  3. Authorization Code Exchange: Upon user approval, Google redirects back to our registered HTTPS redirect URI (https://eurekax.online/api/google/callback) with a one-time authorization code and cryptographic state token (nonce) to prevent CSRF attacks.
  4. Token Generation: EurekaX's backend server exchanges the code with Google's token endpoint to receive an access_token and an offline refresh_token.

3. Security, Token Storage & Privacy Compliance

Data protection and security are designed according to Google's API Data Governance and Minimum Security Requirements:

4. Detailed Google Ads API Services & Queries

EurekaX adheres strictly to the Principle of Least Privilege, querying only the necessary entities required for campaign mapping and conversion uploads:

API Service Method / Operation Exact Purpose & GAQL Query
CustomerService ListAccessibleCustomers Lists all Google Ads accounts and Manager Accounts (MCC) accessible to the authorized user.
GoogleAdsService Search (GAQL) Reads customer metadata: SELECT customer.id, customer.descriptive_name, customer.currency_code, customer.time_zone, customer.manager, customer.status FROM customer LIMIT 1
GoogleAdsService Search (GAQL) Discovers client accounts under Manager Accounts (MCC): SELECT customer_client.id, customer_client.descriptive_name, customer_client.currency_code, customer_client.time_zone, customer_client.manager, customer_client.status FROM customer_client WHERE customer_client.level > 0 AND customer_client.status = 'ENABLED'
GoogleAdsService Search (GAQL) Lists active campaigns for user mapping: SELECT campaign.id, campaign.name, campaign.status, campaign.advertising_channel_type FROM campaign WHERE campaign.status != 'REMOVED' ORDER BY campaign.name LIMIT 1000
GoogleAdsService Search (GAQL) Verifies the campaign the user picked when a mapping is created or edited: SELECT campaign.id, campaign.name, campaign.status FROM campaign WHERE campaign.id = {campaignId} LIMIT 1
GoogleAdsService Search (GAQL) Reads daily metrics of one mapped campaign (at most every 5 minutes per mapping): SELECT campaign.status, segments.date, metrics.impressions, metrics.clicks, metrics.cost_micros, metrics.conversions, metrics.conversions_value FROM campaign WHERE campaign.id = {campaignId} AND segments.date BETWEEN '{startDate}' AND '{endDate}'
GoogleAdsService Search (GAQL) Lists enabled conversion actions so the user can pick the one offline conversions are uploaded to: SELECT conversion_action.id, conversion_action.name, conversion_action.status, conversion_action.type FROM conversion_action WHERE conversion_action.status = 'ENABLED' ORDER BY conversion_action.name LIMIT 500
CampaignService MutateCampaigns Updates campaign status to ENABLED or PAUSED based on scheduled dayparting rules (Autopilot) configured by the media buyer.
ConversionUploadService UploadClickConversions Uploads click conversions with:
  • gclid / gbraid / wbraid
  • conversion_action (Resource name)
  • conversion_date_time (yyyy-mm-dd hh:mm:ss+zz:zz)
  • conversion_value & currency_code

5. Error Handling, Rate Limiting & Quota Management

6. Features available to external users

AreaWhat a user can doGoogle Ads API use
ReportingSee campaign impressions, clicks, cost, conversions and conversion value next to tracker clicks, postback revenue and click logs.Read only (GAQL search)
Campaign statusStart or pause a campaign they mapped, manually or on their own daily schedule.campaign.status only
Offline conversionsHave postback conversions uploaded to a conversion action they choose.UploadClickConversions
Not availableCreating or editing campaigns, ad groups, ads, keywords, bids, budgets, targeting, final URLs or tracking templates.None

We ask for Basic access. If we later apply for Standard access, we understand that Required Minimum Functionality applies to tools used by external users, and we will either implement it or confirm the tool's category with the Google Ads API compliance team first. Any material change to the features above will be submitted through the Tool Change form before release.

7. Distribution

EurekaX is operated only by us as a hosted web application at https://eurekax.online. We do not resell, white-label or sublicense the software, and we do not share our Google Cloud project, OAuth client credentials or API access with anyone. External users only receive a EurekaX login; they never get API credentials.

EurekaX © 2026 • Technical Documentation • Contact • Privacy Policy • Terms of Service • mistrisasmita3@gmail.com