Paid Media Measurement & Optimization¶
Paid Media Measurement & Optimization brings your paid media performance data from Meta, Google, and LinkedIn into Amperity where it is available to the AI Assistant for analysis alongside your customer data.
There are two parts to it:
Set up a measurement courier for Meta, Google, or LinkedIn, or for any combination of them. The courier pulls paid media performance data into your tenant on a daily schedule and adds it to the Customer 360 database.
Ask the AI Assistant about paid media performance using natural language. The AI Assistant answers questions about your paid media data without requiring you to write SQL.
The LinkedIn Ads Measurement connector is in beta. See LinkedIn Ads Measurement.
How it works¶
A measurement courier connects to Meta, Google, or LinkedIn using an authorized credential, and then pulls paid media performance data for a selected ad account into Amperity. The data lands in the Customer 360 database under a dedicated namespace for each platform: tables for Meta start with MM_Meta, tables for Google start with MM_Google_Ads, and tables for LinkedIn start with MM_LinkedIn.
After the courier is set up, a courier group runs every day to keep the data current. Because the performance data lands in the Customer 360 database, it is available to the AI Assistant, which can use it to answer questions about paid media performance.
Requirements¶
Before you set up a measurement courier, make sure you have:
An authorized credential for the platform you want to measure: Meta, Google, or LinkedIn. Add and authorize credentials from the Credentials page. See Credentials.
For Meta, you can reuse an existing credential, including one you already use to send data to a Meta destination, so you do not need to create a separate credential for measurement. If you do not have a Meta credential, create one for Facebook Ads Measurement from the Credentials page, or select Create new credential while you set up the courier.
For Google, you can reuse a credential created for the Google Ads or Google Enhanced Conversions destination. Credentials created for other Google destinations, such as Google Customer Match or Google CM360, use a different type of Google access, so they do not appear in the Credential list. If you do not have a Google Ads credential, create one for Google Ads Measurement from the Credentials page, or select Create new credential while you set up the courier.
For LinkedIn, create a credential for LinkedIn Ads Measurement. A credential created for the LinkedIn DMP destination cannot read LinkedIn reporting data. See LinkedIn credential.
Access to the ad account whose performance data you want to bring into Amperity.
A Customer 360 database with no unpublished draft changes. When you save a measurement courier, Amperity adds its tables to the Customer 360 database, so saving fails if the tenant has no Customer 360 database or if that database has draft changes that are not activated.
The AI Assistant enabled for your tenant, so that you can ask questions about paid media performance. See AI Assistant.
Set up a measurement courier¶
Set up one measurement courier for each platform and ad account you want to measure. An ad account can have only one measurement courier for each platform. Add a measurement courier the same way you add any other courier, from the Sources page.
From Sources, open the Couriers tab, and then click Add courier.
For the plugin, select Facebook Ads Measurement, Google Ads Measurement, or LinkedIn Ads Measurement.
Enter a Name for the courier.
Select the Credential type, and then select an authorized Credential.
Select the ad account to measure:
For Facebook Ads Measurement, select an Account ID.
For Google Ads Measurement, select a Customer ID.
For LinkedIn Ads Measurement, select an Account ID. See LinkedIn Ads Measurement.
Save the courier.
Tip
When you select a credential, Amperity automatically detects the ad accounts available to it and lists them for you to choose from, so you do not need to look up an account ID in advance.
Note
When you save the courier, Amperity sets up everything needed to keep the data current. It creates a courier group that runs once a day, creates the domain tables that the performance data lands in, and starts a first run that backfills historical data: approximately the previous twelve months for Meta and Google, and approximately the previous six months for LinkedIn. The first run can take longer than later daily runs.
To learn more about couriers and courier groups, see Couriers.
What data lands and how it refreshes¶
Paid media performance data lands in the Customer 360 database as domain tables, organized under a separate namespace for each platform: one for Meta, one for Google, and one for LinkedIn. Within each namespace, tables are grouped by the type of data they hold, including delivery data (such as spend, impressions, and clicks), conversion actions, and metadata. Meta and Google tables are provided at campaign, ad set or ad group, and ad grain, along with breakdowns by dimensions such as age, gender, device, and placement. LinkedIn tables follow LinkedIn’s own structure and breakdowns. See LinkedIn data.
The measurement courier keeps this data current:
The first run backfills approximately the previous twelve months of performance data for Meta and Google, and approximately the previous six months for LinkedIn.
After that, the courier group runs once a day to bring in new data and to refresh recent data as the platforms restate conversions.
Because these tables are part of the Customer 360 database, you can browse them alongside your other domain tables. See Custom domain tables.
LinkedIn Ads Measurement¶
Beta
The LinkedIn Ads Measurement connector is in beta. Contact your Amperity representative to learn more.
The LinkedIn Ads Measurement courier is set up the same way as the Meta and Google measurement couriers, but it needs its own credential, and its tables follow LinkedIn’s account structure.
LinkedIn credential¶
The LinkedIn Ads Measurement courier needs a credential that can read LinkedIn ad reporting. A credential created for the LinkedIn DMP destination does not have that access, so you cannot reuse it for measurement.
To create the credential:
From the Credentials page, add a credential, and then select LinkedIn Ads Measurement from the Plugin dropdown. You can also select Create new credential while you set up the courier.
Click Generate authorization URL, and then copy the URL.
Provide the URL to a LinkedIn user who has access to the ad account you want to measure. That user must log in to LinkedIn and complete the authorization steps. The URL expires after 2 weeks.
The credential is added to the Credentials page after the authorization steps are completed.
When you set up the courier, select linkedin-dmp as the Credential type. Credentials created for the LinkedIn DMP destination use the same credential type, so they also appear in the Credential list. Select the credential you created for LinkedIn Ads Measurement. If you select a LinkedIn DMP credential, its ad accounts still appear in the Account ID list, but saving the courier fails with an error that starts with “LinkedIn denied access to this ad account’s reporting.”
If LinkedIn stops accepting the credential, the courier’s runs fail with an error that starts with “LinkedIn rejected the credential.” You cannot re-authorize an existing credential. Create a new credential for LinkedIn Ads Measurement, select it in the courier, and then run the courier again.
LinkedIn data¶
LinkedIn tables follow LinkedIn’s account structure: ad account, campaign group, campaign, and creative (an ad in Campaign Manager). In the Customer 360 database, each table name starts with MM_LinkedIn_, followed by one of the names below, such as MM_LinkedIn_Campaign_Delivery. The matching domain table uses a colon, such as MM_LinkedIn:Campaign_Delivery.
Metadata (Account_Metadata, Campaign_Group_Metadata, Campaign_Metadata, Creative_Metadata, and Conversion_Metadata): settings for the ad account and for its campaign groups, campaigns, creatives, and conversions, such as names, statuses, objectives, budgets, and attribution windows.
Daily delivery (Account_Delivery, Campaign_Group_Delivery, Campaign_Delivery, and Creative_Delivery): impressions, clicks, cost, reach, engagement, video views, and lead form activity for each entity and day. Columns use LinkedIn’s metric names, such as impressions, clicks, costInLocalCurrency, costInUsd, and oneClickLeads.
Daily campaign delivery by device and by serving location (Campaign_By_Device_Delivery and Campaign_By_Placement_Delivery). The device type is in the device column. Campaign_By_Placement_Delivery breaks delivery down by LinkedIn’s serving location, in the serving_location column.
Daily campaign delivery by professional demographic (Campaign_By_Job_Function_Delivery, Campaign_By_Seniority_Delivery, Campaign_By_Industry_Delivery, Campaign_By_Company_Size_Delivery, Campaign_By_Company_Delivery, Campaign_By_Country_Delivery, and Campaign_By_Region_Delivery): delivery by the job function, seniority, industry, company size, company, country, or region of the LinkedIn members who saw your ads. Each of these tables has a column with the name of each value in US English, such as job_function_name. A name column is empty when LinkedIn returns no name for a value.
Campaign reach (Campaign_Reach): reach and audience penetration for each campaign over the 30 days that end the day before the run.
Daily conversions (Campaign_Actions and Creative_Actions): one row for each campaign or creative, conversion (conversion_id), and day, with LinkedIn’s website conversion metrics, such as externalWebsitePostClickConversions, externalWebsitePostViewConversions, and conversionValueInLocalCurrency. Lead form results are in the delivery tables.
Keep the following in mind when you work with LinkedIn tables:
Delivery, reach, and conversion tables identify entities in columns such as account_id, campaign_id, and conversion_id. Metadata tables identify each entity in the id column, its ad account in the account column, and its parent in columns such as campaignGroup and campaign. These columns hold LinkedIn’s IDs as text, without the URN prefix, so id in MM_LinkedIn_Campaign_Metadata joins to campaign_id in MM_LinkedIn_Campaign_Delivery. Lists of IDs in metadata tables, such as a conversion’s campaigns, keep LinkedIn’s URNs.
Metadata tables and Campaign_Reach keep one row for each entity for each run, identified by snapshot_date, the UTC date of the run. Filter on the latest snapshot_date before you join them to other tables.
Daily reach in the delivery tables cannot be added up across days. For reach over a period, use Campaign_Reach. Reach is not available in the tables that break campaigns down by device, serving location, or professional demographic.
LinkedIn limits and approximates the professional demographic data it reports, so those tables might not add up to campaign delivery. See LinkedIn’s ads reporting documentation .
LinkedIn returns at most 15,000 rows in one reporting response. Amperity splits a request into shorter date ranges until each response fits. If a single day still exceeds the limit, the run fails rather than load incomplete data.
Query paid media performance with the AI Assistant¶
After paid media performance data lands in the Customer 360 database, you can use the AI Assistant to analyze it with natural language—no SQL required. The AI Assistant recognizes the paid media tables and can answer questions about performance across Meta and Google. LinkedIn tables are in the same Customer 360 database, so the AI Assistant can query them too, but its built-in paid media guidance covers only Meta and Google.
Ask the AI Assistant questions such as:
“Compare the performance of Facebook and Instagram last month.”
“Rank my campaigns by return on ad spend.”
“Which campaigns show a declining click-through rate week over week?”
“Show me reach by campaign.”
The AI Assistant uses a set of standard paid media metrics as context when it answers, including return on ad spend (ROAS), cost per acquisition (CPA), click-through rate (CTR), cost per mille (CPM), cost per click (CPC), data freshness, and attribution status.
For how to ask questions, view the generated SQL, and work with results, see Working with the AI Assistant.