ETLMCPData Conveyance Works
Log in Start free
Guides

Campaigns imported from Google Ads: new IDs, same names

A campaign imported from Google Ads gets a new Microsoft ID, so a cross-channel table must join the two platforms on a cleaned-up name or your own key.

Coming This connector is coming.

When you import a campaign from Google Ads into Microsoft Advertising, Microsoft creates a new campaign with its own Microsoft ID. The name usually comes across, the ID never does. So a cross-channel table that joins Google and Microsoft rows on campaign_id matches nothing. Join the two platforms on a normalised campaign name, or on a key of your own, and keep each platform's ID only for joins inside that platform.

What the import does to IDs

By default, Microsoft's import brings over most of what it supports from a Google Ads account (campaigns, ads, targeting, ad extensions and other settings) into a Microsoft Advertising account. Through the API, each import job goes from one Google account into one Microsoft account. Every campaign it creates is a Microsoft campaign, with a Microsoft ID.

Microsoft does keep the link on its side. Its Campaign Management API has an operation, GetImportEntityIdsMapping, that takes Google Ads source IDs and returns the Microsoft ID each one became. When you call it:

  • You ask for one entity type at a time; set the type to Campaign and the import type to GoogleImportJob for campaign mappings.
  • One call accepts up to 100 source IDs.
  • An invalid source ID still comes back as a key, mapped to 0. Treat a zero as "no match", not as a real ID.

Use it to build a lookup table once; the campaign ID in a Microsoft performance report is still the Microsoft one.

Scheduled imports keep changing things

An import can run once or on a schedule. Microsoft's scheduling options are now, once at a set time, daily, weekly, monthly, or auto, where Microsoft picks a varying schedule itself. A scheduled import does not just add new campaigns. With the option that imports updates (on by default), each run brings previously imported items back in line with Google Ads.

Three import options change what you see in reports over time:

  • Campaign names follow Google. The option to update campaign names is on by default, so a rename in Google Ads reaches a previously imported Microsoft campaign at the next import. Until then, the two names differ.
  • Names can be edited on the way in. An import can append a suffix to every campaign name, or find and replace text in each name. If your account uses either, the Microsoft name is not the Google name, and your join has to undo the change.
  • Removed items can be deleted. If the delete-removed-items option is turned on (it is off by default), a campaign you remove in Google Ads is deleted from Microsoft Advertising at the next import, with its ad groups, ads and keywords. Microsoft notes that removed ad extensions are not deleted.

What etlmcp gives you

When the Microsoft Advertising and Google Ads connectors are available, both write rows in the same columns. Each row has a network column (microsoft or google), and campaign_id and campaign_name hold each platform's own values: Microsoft's CampaignId and CampaignName from its report, and Google's campaign ID and name. etlmcp does not map IDs from one platform to the other. See what the Microsoft connector syncs and what the Google connector syncs.

Each row keeps the name the report gave when that day was last pulled. After a rename reaches Microsoft, your stored rows can hold both the old and the new name for one campaign, so group by a key, not by the raw name.

Joining the two platforms

Pick a key that both platforms share and that survives renames:

  1. A normalised name. Lower-case the name, trim spaces, and strip any suffix or replacement your import adds. This works when your campaigns are named the same in both accounts.
  2. Your own key. A code in the campaign name (for example a bracketed tag), or a mapping table you maintain from both IDs to one campaign key. This survives renames and import suffixes. GetImportEntityIdsMapping can fill the first version of that table.

A normalised-name join in SQL:

SELECT lower(trim(replace(campaign_name, ' - MSFT', ''))) AS campaign_key,
       network,
       sum(cost) AS cost,
       sum(conversions) AS conversions
FROM your_ad_table
WHERE network IN ('google', 'microsoft')
GROUP BY 1, 2;

Replace ' - MSFT' with the suffix your import adds, if any. Group by campaign_key alone, without network, for a blended total, and remember that cost is in each account's own currency.

Check the join after any change to the import's name options, and after a bulk rename in Google Ads: a campaign whose names no longer match splits into two keys without any error.

Related

Sources

  1. Google Ads Import - Microsoft Advertising API — learn.microsoft.com, checked
  2. GetImportEntityIdsMapping Service Operation - Campaign Management - Microsoft Advertising API — learn.microsoft.com, checked
  3. GoogleImportOption Data Object - Campaign Management - Microsoft Advertising API — learn.microsoft.com, checked