Targeted and Excluded Customers

Historical record of all customers' campaign eligibility and prioritization according to marketing plan

Overview

This view provides an organized representation of customers who were either targeted or excluded from scheduled campaigns. It includes details about the campaigns, customers, and reasons for exclusion if one occurred.

Each row represents a customer (CUSTOMER_ID) eligibility for a campaign (PLAN_DETAIL_ID) on an execution day (EXECUTION_DATE).

Data is updated daily on an incremental method, adding the previous day's campaign prioritization results.

This table includes customers that are targeted only by scheduled campaigns. For triggered campaigns, visit Engaged Customers. Read more about terminology in the Data Share Glossary.

📣

Latest version available: BI.VW_TARGETED_AND_EXCLUDED_CUSTOMERS_V1_6. Use the tabs below to view the version you're integrating against.

-- FOR V1.6
SELECT *
FROM [SHARED_DB].[BI].[VW_TARGETED_AND_EXCLUDED_CUSTOMERS_V1_6]
👍

What changed in V1_6: three new columns — PLAN_DETAIL_CHANNEL_ID, ENGAGEMENT_ID, and TEMPLATE_ID. ENGAGEMENT_ID is a single, consistent identifier for an engagement, shared across the engagement views; it is 0 for control-group rows. All other V1_5 columns are unchanged.

📌

Availability: The V1.6 columns and the primary-key change on this view are being rolled out to Campaign Execution 2.0 clients automatically over the coming months. Data begins at your rollout date — earlier history isn't backfilled. Need access sooner? Contact your Customer Success Manager and we'll enable it on request.

⚠️

Breaking — primary key changed in V1_6: was EXECUTION_DATE, CUSTOMER_ID, PLAN_ID → now CUSTOMER_ID, ENGAGEMENT_ID. Update any joins or dedup logic that relied on the V1_5 key.

🔑 Primary Key

  • Primary Key: CUSTOMER_ID, ENGAGEMENT_ID
  • Watermark column: LAST_UPDATED_TIME

Table Description

Field NameDescriptionData TypeFormat
EXECUTION_DATEDate when the campaign was executedDATEYYYY-MM-DD
CUSTOMER_IDOptimove internal unique identifier for the customerNUMBER(38,0)
CLIENT_CUSTOMER_IDUnique identifier of customer as provided by the customerTEXT(200)
LIFECYCLE_STAGE_IDID of lifecycle stage of customer when the campaign was executedNUMBER(38,0)
LIFECYCLE_STAGE_NAMELifecycle stage of customer when the campaign was executedTEXT(200)
PLAN_IDUnique identifier for the campaign planNUMBER(38,0)
PLAN_DETAIL_IDUnique identifier for the specific detail within the campaign planNUMBER(38,0)
ACTION_SERIALUnique serial of the campaign action. Added in V1_5; links this view to VW_ENGAGEMENT_ACTIVITYNUMBER(38,0)
CAMPAIGN_ACTION_IDID of the action within a campaign or 1 for control groupNUMBER(38,0)
CAMPAIGN_ACTION_NAMEName of the campaign action or DN for control groupTEXT(16777216)
TAKEN_FROM_PLAN_IDPlan ID from which the campaign action was taken. If NULL, this is the plan the customer was targeted withNUMBER(38,0)
EXCLUSION_REASON_IDUnique identifier for the reason a customer was excluded from the campaignNUMBER(38,0)
EXCLUSION_REASONThe exclusion reasonTEXT(50)
EXCLUSION_REASON_DESCA detailed description of why the customer was excludedTEXT(100)
PLAN_DETAIL_CHANNEL_IDUnique identifier for the channel used within a plan detail (a communication on a single channel of a campaign). Added in V1_6.NUMBER(38,0)
ENGAGEMENT_IDUnique identifier of an engagement record, consistent across the engagement views. 0 for control-group rows. Added in V1_6 — part of the primary key.NUMBER(38,0)
TEMPLATE_IDIdentifier for the engagement/communication template used. Added in V1_6.NUMBER(38,0)
LAST_UPDATED_TIMEThe timestamp of the last update to this recordTIMESTAMP_TZYYYY-MM-DD HH:MM


Did this page help you?