Google Ads has no ValueTrack parameter that inserts a campaign's name. The help page on ValueTrack documents ID-based parameters such as {campaignid}, {adgroupid}, {creative} (the ad's ID), {keyword}, {network} and {device}, and none of them is a campaign name. If you tag Google Ads by hand, send the campaign's ID in utm_id with {campaignid}, write utm_campaign as fixed text per campaign, and keep {lpurl} at the start of every tracking template. The campaign ID is also the key that joins your GA4 sessions to the Google Ads rows etlmcp writes.
What each ValueTrack parameter gives you
| Parameter | What Google Ads fills in |
|---|---|
{campaignid} |
The campaign's ID |
{adgroupid} |
The ad group's ID |
{creative} |
The ad's unique ID |
{keyword} |
The keyword that matched, or nothing (see below) |
{matchtype} |
e, p or b for exact, phrase or broad, and a for an AI Max keywordless match |
{network} |
Where the click came from, for example g for Google search, s for search partners, d for the Display Network, ytv for YouTube and x for all Performance Max traffic |
{device} |
m for mobile, t for tablet, c for computer |
{gclid} |
The Google click identifier |
Values are short codes, not labels: {device} sends m, not "mobile", so map the codes in your report.
Where {keyword} comes back empty
{keyword} is blank when an ad was matched without a keyword. Google's page names AI Max for Search, Dynamic Search Ads and Performance Max. For those clicks {matchtype} returns a and {targetid} can carry a kwl prefix. Demand Gen does not support {keyword}, {network}, {placement} or {targetid} at all, and Performance Max fully supports only a short list that includes {campaignid}, {assetgroupid}, {device} and {lpurl}. So utm_term={keyword} leaves utm_term empty for all of that traffic, while {campaignid} is listed for Search, video and Performance Max alike.
Tracking templates must keep {lpurl}
A tracking template at the account, campaign or ad group level needs a URL insertion parameter, and {lpurl} is the one Google recommends. Without it Google Ads has nowhere to put the final URL, and the landing page breaks. Dynamic Search Ads and other automatic targets need it at every level. {lpurl} is escaped unless it opens the template, so put it first. If the final URL already has a question mark, Google Ads swaps the template's ? for &. Before you turn on AI Max, check that its dynamic landing pages open through your template: a static URL without {lpurl}, or {lpurl} buried inside another value, can stop them working. A template for UTMs looks like this:
{lpurl}?utm_source=google&utm_medium=cpc&utm_campaign=spring_sale&utm_id={campaignid}&utm_content={creative}
If you only need to add parameters and run no tracker, the final URL suffix appends them to the landing page instead. Google lets you set it at the account, campaign, ad group, ad, dynamic ads target and keyword levels, and on sitelinks.
Type utm_campaign per campaign, usually in a campaign-level template. GA4 treats values as case sensitive, so Spring_Sale and spring_sale become two campaigns. A renamed campaign keeps its ID, which is another reason to join on utm_id, not on the name.
How GA4 reads utm_id, and what auto-tagging changes
GA4's Data API documents sessionManualCampaignId as the manual campaign ID, filled from utm_id. Its sessionCampaignId covers Google Ads campaigns as well as manual and other campaigns. When a click carries both auto-tagging and UTMs, GA4 takes source, medium and the other traffic-source values from auto-tagging; your utm_content and utm_term still fill the manual ad content and manual term dimensions. If the click identifier cannot be used and any UTM is present, GA4 falls back to the UTMs for all of them. Putting {campaignid} in utm_id keeps the manual campaign ID equal to the Google Ads campaign ID, so the key stays the same whether or not auto-tagging wins.
Joining GA4 to Google Ads rows in etlmcp
When the connectors are available, each Google Ads row etlmcp writes carries campaign_id, the campaign's ID from the Google Ads API, plus campaign_name, adgroup_id and ad_id. Rows are at ad level, and a campaign that reports more than its ads (Performance Max, for one) gets an extra campaign-level row with the remainder, so sum by campaign before you join. The GA4 connector breaks each day down by sessionCampaignId, sessionCampaignName and sessionSourceMedium; the session campaign ID becomes campaign_id, or the name stands in when the ID is empty or (not set). The network column is google on the first and ga4 on the second.
In PostgreSQL, GA4's metrics are extra columns whose names keep the dot, such as extra.sessions and extra.revenue, so you write them in double quotes. With your own table names:
WITH ads AS (
SELECT date, campaign_id, max(campaign_name) AS campaign_name,
sum(cost) AS cost, sum(clicks) AS clicks
FROM google_ads_daily
WHERE network = 'google'
GROUP BY date, campaign_id
),
ga AS (
SELECT date, campaign_id,
sum("extra.sessions") AS sessions, sum("extra.revenue") AS revenue
FROM ga4_daily
WHERE network = 'ga4'
GROUP BY date, campaign_id
)
SELECT ads.date, ads.campaign_id, ads.campaign_name,
ads.cost, ads.clicks, ga.sessions, ga.revenue
FROM ads
LEFT JOIN ga USING (date, campaign_id)
ORDER BY ads.date, ads.cost DESC;
Google Ads dates are in the ad account's time zone and GA4 dates in the property's, so set both to the same zone or the days will not line up. The Google Ads connector page and the GA4 connector page list every field.