This guide introduces you to the concept of feature views in Profiles and shows how to use them in your Profiles project.
Video walkthrough
Overview
Profiles adds a unique ID when you create a Customer360 (C360) table. But for most activation use cases, you need to use a specific ID from your data warehouse, like user_name, email, or anonymous ID. You can achieve this using SQL, the ID graph table, and the C360 table, but it is complicated and can be difficult to maintain.
Profiles can create these pivots automatically with feature views. They include the same entity_vars as the C360 table but with the chosen ID as the primary key.
SQL Keyword: VIEW
Requirements
entity_vars where is_feature is set to true.
View primary ID is included in ID graph.
Usage
Feature views (feature_views) are in the pb_project.yaml file within the entities block, as shown:
Profiles automatically creates a feature view where the main_id is the primary key, called {entity_name}_feature_view. It is a best practice to create another feature view using a desired ID type as the primary key for data activation.
All features will be included in all feature views for an entity, unless you set is_feature to false for a specific entity_var.
Feature views are defined in pb_project.yaml for the user/allcohort. For individual cohorts, they are defined in the cohort definition in profiles.yaml.
Cohorts inherit the features from their parent, so you do not need to define them at the cohort level.
This site uses cookies to improve your experience while you navigate through the website. Out of
these
cookies, the cookies that are categorized as necessary are stored on your browser as they are as
essential
for the working of basic functionalities of the website. We also use third-party cookies that
help
us
analyze and understand how you use this website. These cookies will be stored in your browser
only
with
your
consent. You also have the option to opt-out of these cookies. But opting out of some of these
cookies
may
have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This
category only includes cookies that ensures basic functionalities and security
features of the website. These cookies do not store any personal information.
This site uses cookies to improve your experience. If you want to
learn more about cookies and why we use them, visit our cookie
policy. We'll assume you're ok with this, but you can opt-out if you wish Cookie Settings.