V1.2 - Scheduled Campaigns

VW_SCHEDULED_CAMPAIGNS (v1.2)

-- FOR V1.2
SELECT *
FROM [SHARED_DB].[BI].[VW_SCHEDULED_CAMPAIGNS_V1_2]

This updated view provides a more organized and comprehensive view of scheduled campaign data, incorporating several new columns and renaming some existing ones for clarity and additional insights. This structure is designed to facilitate better integration with additional tools and improve the analysis of scheduled campaign data.

Common Use Cases

What campaigns are planned for next week?

SELECT DISTINCT
    PLAN_ID,
    MARKETING_ACTION_NAME,
    EXECUTION_START_DATE,
    EXECUTION_END_DATE
FROM
    VW_SCHEDULED_CAMPAIGNS_V1_2
WHERE
    EXECUTION_START_DATE >= DATEADD(DAY, 7, CURRENT_DATE())
    AND EXECUTION_START_DATE < DATEADD(DAY, 14, CURRENT_DATE());

Which channels are about to execute campaigns tomorrow?

SELECT DISTINCT
    PLAN_ID,
    PLAN_DETAIL_ID,
    CHANNEL_ID,
    MARKETING_ACTION_NAME,
    EXECUTION_START_DATE,
    EXECUTION_END_DATE
FROM
    VW_SCHEDULED_CAMPAIGNS_V1_2
WHERE
    EXECUTION_START_DATE = DATEADD(DAY, 1, CURRENT_DATE());

Table Description

Field NameDescriptionData TypeFormat
PLAN_IDA Campaign's IDInteger
TARGET_GROUP_IDUnique identifier for the target groupString
TARGET_GROUP_NAMEName of the target groupString
MARKETING_ACTION_NAMEName of the marketing actionString
CAMPAIGN_ACTION_IDUnique identifier for the campaign actionInteger
CAMPAIGN_ACTION_NAMEName of the campaign actionString
IS_CAMPAIGN_ACTION_GROUPFlag to indicate if it's a campaign action groupBooleanTrue/False
CAMPAIGN_ACTION_TYPEType of campaign actionString
CHANNEL_IDChannel ID associated with the plan detailString
CHANNEL_NAMEName of the channelString
CAMPAIGN_TYPEType of the campaignString
CAMPAIGN_TYPE_NAMEName of the campaign typeString
LEAD_TIMELead time for the campaignString
SELECTED_GAIN_KPISelected gain key performance indicatorString
IS_IMPACT_ENABLEDFlag to indicate if impact is enabledBooleanTrue/False
EXECUTION_START_DATEStart date of the campaign executionDateYYYY-MM-DD
EXECUTION_END_DATEEnd date of the campaign executionDateYYYY-MM-DD
TAG_NAMESTags associated with the campaignString"Tag1","Tag2","Tag3"
IS_REAL_SCHEDULED_CAMPAIGNFlag to indicate if it's a real scheduled campaignBooleanTrue/False
EXCLUDE_BY_CHANNEL_FLAGFlag to exclude by channelBooleanTrue/False
IMPACT_LENGTH_PLANNED_ACTIONS_CONFIGURATIONConfiguration for planned actions impact lengthString
PLAN_DETAIL_IDUnique identifier for plan detailInteger
ISOLATION_VOLUMEIsolation volumeString
CAMPAIGN_ACTION_IDUnique identifier for campaign actionInteger
PROMOTION_IDPromotion IDString
CONDITIONAL_EXECUTION_NAMEName of the conditional executionString
DISPLAY_ORDERDisplay orderInteger
UI_PANEL_IDUI panel IDString
RECURRENCE_PATTERNRecurrence patternString
NEXT_RUNTIMENext runtimeDateYYYY-MM-DD HH:MM
REPEAT_TIMESNumber of times to repeatInteger
TEMPLATE_IDUnique identifier for the templateString
TEMPLATE_NAMEName of the templateString
NOTESNotes associated with the campaignString
LAST_MODIFY_USERNAMEUsername of the last modifierString
LAST_MODIFY_DATEDate of the last modificationDateYYYY-MM-DD HH:MM

Changes in Version 1.2

  • New Columns Added:
    • CHANNEL_NAME: Added immediately after CHANNEL_ID to provide the name of the channel.
    • TEMPLATE_ID and TEMPLATE_NAME: Provide identifiers and names for templates used.
    • CAMPAIGN_TYPE: Added to specify the type of the campaign.
    • CAMPAIGN_ACTION_ID: Added to uniquely identify each campaign action.
    • TARGET_GROUP_ID: Added before TARGET_GROUP_NAME to uniquely identify target groups.
  • Renamed Columns:
    • EXECUTION_METHOD_ID has been renamed to CHANNEL_ID.
    • ACTION_NAME has been renamed to CAMPAIGN_ACTION_NAME.
    • IS_ACTION_GROUP has been renamed to IS_CAMPAIGN_ACTION_GROUP.
    • ACTION_TYPE has been renamed to CAMPAIGN_ACTION_TYPE.
    • TAGS has been renamed to TAG_NAMES
  • Other Modifications:
    • Tags are now translated into their real values and presented in double quotes, separated by commas (e.g., "Tag1","Tag2","Tag3").