LIMITEDI take on 2–3 new brands a month. Free revenue-leak audit, plus $1,000 of Shopify apps free.
Google Analytics

GA4 Cost Data Import: Upload Bing and Meta Ad Costs

To upload Bing or other non-Google ad costs to GA4, go to Admin > Data collection and modification > Data import, create an import source with the Campaign data type, and upload a CSV with utm_source, utm_medium, date and at least one metric such as cost. GA4 joins the costs to your traffic on source, medium and date, so the values must match your UTM tags exactly. The costs then show in the Non Google campaign report under Acquisition.

Jump to: What changed from Universal Analytics · Before you start · The file format · Bing example · Meta and LinkedIn · Upload steps · Where the data shows · Common errors

What changed from Universal Analytics

I first wrote this guide in 2020 for Universal Analytics, which Google has since shut down. The idea is the same in GA4: Google Ads costs come in automatically when you link the accounts, but costs from Microsoft Ads, Meta, LinkedIn and other platforms do not. You have to import them.

GA4 now calls this campaign data import. Older help pages and blog posts call it cost data import. Same feature.

Before you start: tag every ad with UTMs

Cost import only works if GA4 can match a row in your file to real sessions. It does that with the UTM values your visitors arrived with. So before you touch the import screen, check two things.

  • Every paid ad on the platform has utm_source and utm_medium on its landing page URL. utm_campaign and utm_id are optional but I always add them.
  • You know the exact values GA4 recorded. Open the Traffic acquisition report, switch the dimension to session source / medium, and copy the values as they appear.

Matching is exact. Google's own example is that "Facebook" and "facebook" do not match. If you are building links by hand, my free UTM builder keeps the values consistent. I also keep UTM values lowercase everywhere.

Microsoft Advertising has an account-level auto-tagging setting that can add UTM tags to your destination URLs for you. If you use it, check what values it actually writes in GA4 before you build your file, rather than assuming.

The file format GA4 expects

The file needs one row per campaign per day. These are the fields:

FieldRequired?Notes
utm_sourceRequiredMust match the logged value exactly
utm_mediumRequiredMust match the logged value exactly
dateRequiredYYYY-MM-DD, not in the future
utm_idOptionalRecommended
utm_campaignOptionalRecommended
cost, clicks, impressionsAt least one metricDaily values

If you include cost, GA4 also needs a currency (an ISO 4217 code like USD). You can map it from a column or set one fixed value during setup. A few more rules from Google's help page:

  • utm_term and utm_content cannot be in the file.
  • Dynamic placeholders like {{campaign.name}} are not supported. Resolve them to real values first.
  • No duplicate keys in one file.

Google's template header row looks like this:

utm_id,utm_campaign,utm_source,utm_medium,date,impressions,clicks,cost

Worked example: Microsoft Ads (Bing) costs

There is no direct Microsoft Advertising connector in GA4's import source list that I could find, so Bing costs go in as a file. Here is how I do it.

  1. In Microsoft Advertising, open Reports, then a standard campaign-level report such as Campaign performance.
  2. Set the date range and set the time unit to Day, so each row is one campaign on one day.
  3. Add the columns you need: Date, Campaign name and/or Campaign ID, Spend, Clicks and Impressions.
  4. Download as CSV.
  5. In a spreadsheet, rename the columns to the GA4 names. Spend becomes cost. Campaign name becomes utm_campaign.
  6. Add utm_source and utm_medium columns and fill them with the exact values your Bing traffic has in GA4.
  7. Reformat the date column to YYYY-MM-DD and delete any total rows at the bottom of the export.

A finished row looks like this:

bing_123,spring_sale,bing,cpc,2026-11-01,5400,120,86.50

The campaign name in your file must match the utm_campaign value on the ad, not just the name inside Microsoft Ads. If those differ, fix the tagging or map them in the sheet.

Meta, LinkedIn and other platforms

Meta has a direct connector. When you create the import source, choose Meta as the source instead of a CSV. You need a Meta business account and ad account, and all paid Meta traffic must use one utm_medium value. The source can be one value for everything or one per placement (Facebook, Instagram and so on). Google says it pulls at least 24 months of history, and you cannot change the source or medium after setup without recreating the connector.

Google also lists direct connectors for TikTok, Snap, Pinterest and Reddit.

LinkedIn works like Bing. Export from Campaign Manager with a daily time breakdown, keep Date, Campaign name or ID, Amount spent, Clicks and Impressions, then rename and add the source and medium columns.

Upload steps in GA4

  1. Go to Admin > Data collection and modification > Data import. You need the Editor role or above.
  2. Click Create import source and give it a name.
  3. Choose Campaign data as the data type.
  4. Pick Manual CSV upload (or SFTP if you want to automate it) and select your file.
  5. Click Next, map your columns to the GA4 fields, then click Import.

For later uploads, find the source in the list and click Import now. Uploading new values for the same keys overwrites the old ones, so re-uploading a corrected file is safe. Google also offers other sources such as Google Sheets and cloud storage, which helps once you are doing this weekly.

Where the cost data shows up

  • Reports > Acquisition > Non Google campaign. Cost, clicks and impressions by campaign, source and medium, next to GA4's own session and revenue data.
  • Advertising > Planning > All channels. Google Ads and imported costs side by side.

Allow up to 24 hours for data to appear. GA4 also has a validation report under Reports > Data import where you can check how well your rows matched.

Common errors and how I fix them

  • Costs show but no sessions next to them. Almost always a mismatch in source, medium or campaign. Compare your file to the values in Traffic acquisition, character by character.
  • Header errors on upload. The headers must match the schema of the import source. Do not add or rename columns after the source is created.
  • Date rejected. Use YYYY-MM-DD. Spreadsheet apps love to reformat dates when you save.
  • Bing traffic split across two sources. If some ads are auto-tagged and others are hand-tagged, you can end up with two source values. Pick one and fix the other.
  • Facebook clicks landing as referral. Untagged Meta clicks show as referrals and will never match. My post on fbclid in Google Analytics covers that side.

If you would rather not do this yourself, I set this up as part of my analytics and tracking work.

Frequently asked questions

How do I upload Bing cost data to Google Analytics 4?

Export a daily campaign report from Microsoft Advertising as CSV, rename the columns to the GA4 fields and add utm_source and utm_medium values that match your Bing traffic. Then create a Campaign data import source in Admin > Data import and upload the file.

Can GA4 import Microsoft Ads costs automatically?

I could not find a direct Microsoft Advertising connector in GA4's list of import sources. Google lists direct connectors for Meta, TikTok, Snap, Pinterest and Reddit. For Bing I use a CSV, SFTP or a sheet-based upload.

What fields are required for GA4 cost data import?

utm_source, utm_medium and date are required, plus at least one metric such as cost, clicks or impressions. utm_campaign and utm_id are optional but recommended. If you import cost, you also set a currency.

Where do I see imported cost data in GA4?

In Reports > Acquisition > Non Google campaign, and in the Advertising section under Planning > All channels. It can take up to 24 hours to appear.

Why does my imported cost data not match any sessions?

GA4 matches on exact values, so a difference in case or spelling breaks the join. Check that source, medium, campaign and date in your file are identical to what GA4 recorded.

Can I fix a mistake after uploading?

Yes. Uploading new values for the same keys overwrites the old values. Deleting the import source removes its data from reports.

Is cost data import the same as campaign data import?

Yes. Google renamed cost data import to campaign data import. The steps and fields are the same.

Free audit call

Want this done for you?

I fix the tracking, run the ads and plug the funnel leaks for $700 a month — so guides like this one become my job, not yours.