What Margly reads from Google Ads#
- Campaign spend — daily granularity for the entire tracked horizon
- Conversions — if you have conversion actions set up in Google Ads
- Key indicators — clicks, impressions, CTR, CPC, CPA
- Account structure — campaigns and campaign type (read-only)
Within the integration Margly only reads — it doesn't edit campaigns, budgets, or strategies. Security-wise: even though Google doesn't offer a separate read-only OAuth scope for Ads, Margly doesn't call any write operation in the code.
How Google OAuth works in Margly#
Margly uses a single OAuth flow for Google that authorizes all three Google sources at once — Google Ads, Google Analytics 4, and Search Console. After one login, in Margly you choose which of these sources to activate (and even just one — say, only Ads without GA4).
Connection procedure#
In Margly click Connect Google account
In Integrations → Google click Connect Google account. The OAuth window from Google opens.
Log in with the account that has access
If you manage multiple Google accounts, pick the one that has access to your Google Ads (and possibly GA4 and Search Console). Manager Account (MCC) is supported — Margly in the next step shows you child accounts under the MCC as well.
Approve 4 permissions
Google will request these permissions:
- Read data from Google Analytics 4
- Access to Google Ads (campaigns, spend, conversions)
- Read data from Search Console
- Find out your email (only for identifying the connected account)
Three of them (Google Analytics, Search Console, email) are explicitly marked on the Google side as read-only. For Google Ads, Google doesn't offer a separate read-only permission — but Margly in the code does exclusively reading, no write operations.
Select Google Ads account
Margly shows a list of Google Ads accounts your token has access to (including accounts under Manager Account). Pick the one you want to see in Margly. If you don't want to activate Google Ads, choose Don't link.
Margly pulls historical data
After selecting the account, Margly pulls the last 365 days (1 year) of daily campaign data. Margly splits the loading into 30-day batches so large accounts don't exhaust the time limit. Duration depends on the account size — for regular e-shops on the order of minutes.
How Margly links revenue with campaigns#
Per-campaign ROAS (return) Margly calculates from two things that it pulls directly from Google Ads:
- Campaign spend (how much you spent)
- Conversion value (how much the campaign brought in revenue according to Google Ads conversion tracking)
For the second item to work, you must have Google Ads conversion tracking deployed on the e-shop (conversion pixel or Google Tag Manager with a properly configured conversion action). The pixel sends Google information that a specific visitor from a campaign completed an order, and Google maintains precise per-campaign conversion statistics.
What you get without conversion tracking (only spend, no conversions): aggregated (blended) ROAS — all of your e-shop's revenue divided by all Google Ads spend for the period. Per-campaign view doesn't make sense in this case.
What Margly adds from connected Google Analytics 4: a daily view of traffic sources (how many sessions / orders came from google / cpc, organic, direct, etc.) and the conversion rate. But GA4 is not used for per-campaign revenue attribution — that always goes via the Google Ads conversion pixel described above. Detail in GA4 integration.
Common errors#
- "Account doesn't have access to Ads" — OAuth went through an account that doesn't manage the Google Ads account. Click Change accounts and pick the correct Google Ads account, or disconnect and reconnect with a different Google account.
- "MCC token isn't enough — access to child accounts is missing" — if you use Manager Account, make sure MCC has accepted the invitation from the child account (Google Ads → Tools → Account access).
- Conversions take a moment to appear — Google Ads reports conversions with a typical 1–7 day delay depending on the set attribution model. For a new campaign expect a few days before data stabilizes.
- Spend differs from Google Ads UI — Margly converts foreign currencies using the ECB rate; during large rate swings the spend in the e-shop currency may differ from the amount in the Google Ads UI by single percentages.
Disconnection and turning off just one source#
Margly can do two levels of disconnection:
Turning off just Google Ads (GA4 and Search Console stay active): in Integrations → Google click Change accounts and for Google Ads choose Don't link. Margly stops pulling new Google Ads data and at the same time deletes historical Google Ads data from the dashboard (GA4 and Search Console data stay).
Complete disconnection of the entire Google account (Ads + GA4 + Search Console at once): in Integrations → Google click Disconnect. Margly:
- Revokes the OAuth token at Google
- Deletes all historical data from all three sources
- Removes the integration
What's next#
- Connecting Google Analytics 4 — for a view of traffic sources and conversion rate (same OAuth)
- Connecting Search Console — SEO data (same OAuth)
- AI Advisor — ad performance analysis