Follow the Metric Recipe below to create the metric.
1. Configure the dataset
Ensure that you have the following views and columns included in your dataset. Read more about how to create a dataset.
a) Include these columns in the GoogleAnalytics4 Dataset
Data Source
Views
Columns
GoogleAnalytics4
Monetization Publisher Ads Ad Unit Report
DateTz
PublisherAdClicks
AdUnitName
2. Create the Custom Metric
Navigate to Metric Builder and create a new Custom Metric by selecting the dataset created in the previous step. Fill out the fields as shown in the table below.
Read more about how to create a custom metric.
Field
Value
Measure
PublisherAdClicks
Date
DateTz
Dimension
AdUnitName
Aggregation
SUM
Filters
/
Check out the Schema Explorer to learn more about all supported views and columns/properties: Google Analytics 4 Schema Explorer