Sub topic 11
Linking Google Ads and importing cost data
This chapter assumes you can navigate GA4 Admin, you know what key events are, and you understand source/medium and UTM parameters. By the end you should be able to link a Google Ads account, check that the link works, and explain what cost data in the Advertising reports does and does not include.
Why link Google Ads at all
GA4 measures what happens on your site or app. Google Ads measures what happens in your ad account: impressions, clicks, and cost. Without a link, GA4 sees the visit but knows nothing about the campaign spend behind it. With a link, three things change:
- Google Ads campaign, ad group, and keyword data appear in GA4 reports, such as the Google Ads campaign dimensions.
- Cost, clicks, and impressions appear next to GA4 metrics, so you can compute return on ad spend and cost per key event.
- GA4 key events and audiences can be used in Google Ads for bidding and remarketing.
The Advertising workspace shows paths and attributed credit. The link is what adds cost to them. Without it, you can see where credit goes but not what it cost.
What the link does
Linking creates a connection between a GA4 property and one or more Google Ads accounts. It does not copy the whole Ads account into GA4. Data flows in two directions.
A few points about the mechanics:
- Auto-tagging adds a
gclidparameter to ad click URLs. GA4 reads it to connect a session to a specific ad click. If auto-tagging is off, GA4 cannot match the session to the ad's cost and campaign detail. - Cost data arrives from the link and is matched to sessions through the click. It is not derived from your site tags.
- Each GA4 property can link to several Google Ads accounts. Each Google Ads account can link to several properties.
Permissions you need
Linking requires access on both sides. Missing one is the most common reason a link cannot be created.
| Where | Role needed |
|---|---|
| GA4 property | Editor or higher |
| Google Ads account | Admin |
If the person who owns GA4 is not the person who owns Google Ads, one of them has to do it with the other present, or one account needs to grant the other person access first.
Link the accounts step by step
- In GA4, open Admin and select the property you want to link.
- Under Product links, choose Google Ads links.
- Select Link, then Choose Google Ads accounts. Pick the accounts you have admin access to.
- Select Confirm, then Next.
- Configure the settings, described below, then select Next.
- Review and select Submit.
The link appears in the list. Data does not backfill instantly. Allow up to about a day for new data to show up, and expect that only data from after the link is created flows through in full.
The settings you choose
Enable personalized advertising. This lets GA4 audiences and key event data be used for remarketing. If you turn it off, GA4 still reports on ad traffic, but it does not share audiences for ad personalization.
Enable auto-tagging. Turn this on in the Google Ads account. GA4 shows a notice if it is off. Without it, cost data cannot be matched to clicks at a campaign level.
Import key events into Google Ads. After linking, you choose which GA4 key events become conversion actions in Google Ads. This is separate from the link, and it affects bidding. We return to it below.
Verify the link works
Do not assume the link works because the setup finished. Check these in order.
- In Admin > Product links > Google Ads links, confirm the account appears with the expected property.
- In Google Ads, confirm auto-tagging is enabled under account settings.
- Click one of your own ads, in a test or low-volume campaign, and look for
gclidin the landing URL. - In GA4, open the Realtime report and check that the session appears. Later, check the traffic acquisition report for Google Ads campaign data.
- After a day, open Reports > Acquisition and look for the Google Ads dimensions with non-zero cost.
If clicks show in GA4 but cost is zero, the likely cause is auto-tagging being off, a gclid that is stripped by a redirect, or the link having been created recently.
Import key events into Google Ads
Linking is not the same as sharing key events. A GA4 key event only becomes a Google Ads conversion when you import it.
- In Google Ads, open Goals > Conversions > Summary.
- Select New conversion action, then Import, then Google Analytics 4 properties.
- Select the key events you want, such as
purchase, and finish the import.
Think about which events should be imported as primary actions, which Google Ads uses for bidding, and which should be secondary, used only for observation. Importing a low-value event such as page_view-like micro actions as primary can push bidding toward cheap, low-quality traffic. Importing purchase and generate_lead is a common starting point.
What "importing cost data" means
The phrase covers two different things, and mixing them up causes confusion.
| Source of cost | How it arrives | Typical use |
|---|---|---|
| Google Ads | Automatically through the link | Spend for Google paid channels |
| Non-Google ad platforms | Manual upload through Data Import, or a connector | Spend for other paid channels in the same reports |
The Google Ads link brings in Google cost only. For other platforms, GA4 offers Data Import (Admin > Data collection and modification > Data import), where you upload a cost data file. Your file must include the dimensions GA4 uses to match rows, such as source, medium, and campaign, and the cost metrics.
Key points for non-Google cost data:
- The source, medium, and campaign values in the upload must match what your UTM tags produce. A mismatch in case or spelling means the cost sits on a different row from the sessions.
- Uploads are not retroactive in the way people expect, so check the upload date and the date range you use in reports.
- You are responsible for refreshing the data. GA4 does not pull it from the other platform.
Reading cost in the reports
Once the link works, cost appears in the Advertising reports. The Advertising snapshot and the Performance reports show metrics such as cost, return on ad spend (ROAS), and cost per key event. ROAS is revenue divided by cost.
Be careful about which model the revenue and key events use. The Advertising workspace reports use the reporting attribution model set for the property. The cost is not attributed. It belongs to the clicks that incurred it. So you may see revenue credited to a channel that had no cost in that row, or the reverse.
{
"dateRanges": [{ "startDate": "30daysAgo", "endDate": "yesterday" }],
"dimensions": [{ "name": "sessionGoogleAdsCampaignName" }],
"metrics": [
{ "name": "advertiserAdCost" },
{ "name": "advertiserAdClicks" },
{ "name": "keyEvents" }
],
"orderBys": [{ "metric": { "metricName": "advertiserAdCost" }, "desc": true }],
"limit": 10
}This Data API runReport body lists the top campaigns by cost along with their clicks and key events. It only returns cost when the Google Ads link is active and auto-tagging is working. Treat the key events here as session-scoped, not as attributed credit.
Common problems and fixes
| Symptom | Likely cause | Fix |
|---|---|---|
| Link cannot be created | Missing Admin in Google Ads or Editor in GA4 | Get the right role on both sides |
| Ads traffic appears as organic or direct | Auto-tagging off, or redirect strips `gclid` | Turn on auto-tagging, test the URL |
| Cost is zero for a campaign | Link is new, or cost data not yet processed | Wait a day, then recheck |
| Imported key event never counts in Ads | Event not marked as a key event, or no recent occurrences | Mark it as a key event and trigger it |
| Non-Google cost rows do not match sessions | UTM values differ from the upload | Align source, medium, and campaign spelling |
| Consent mode limits the data | Users decline cookies | Review consent settings and modeling |
Why the numbers still will not match
Even with a perfect link, GA4 and Google Ads counts differ. The next chapter covers that in depth. For now, remember three causes. Google Ads counts conversions on the click date by default, while GA4 reports them on the key event date. Each tool uses its own attribution model and lookback window. Google Ads can also count a conversion more than once per click, depending on the counting setting, where GA4 counts each key event occurrence per its own rules.
Exercise
A GA4 property is linked to Google Ads, and campaign names appear in the reports, but cost shows as zero for a new campaign launched this morning. Name two checks you would make before concluding the link is broken.
Show answer
First, check that auto-tagging is enabled in the Google Ads account and that the landing URL still contains gclid after any redirects. Second, check how long ago the campaign launched, since cost data can take up to about a day to appear. If both are fine, confirm the link is active in Admin under Google Ads links.
Exercise
You upload cost data for a Meta campaign using Data Import. Spend appears on a row separate from the sessions, which are tagged facebook / paid_social / spring_sale. The upload used Facebook / Paid_Social / Spring_Sale. What is the problem and how do you fix it?
Show answer
GA4 matches rows on source, medium, and campaign values, and those values are case-sensitive. The upload spelled them differently from the UTM tags, so the cost did not join to the sessions. Fix it by re-uploading the file with values that exactly match the tags, here facebook, paid_social, and spring_sale.