Create offer attributes
Objective
In this section, you’ll add custom XDM fields to the standard Offer XDM schema. These custom fields can be used in ranking, sorting, and eligibility criteria. They can also be data that is returned to the requesting device.
Create custom Device parent object
-
Expand the Decisioning menu item in the left rail if necessary and click Catalogs.
-
By default, the ‘Offers’ page is shown. Click the Edit schema button in the upper-right corner.
note tip TIP The resulting page is the standard XDM Schema editor. Just as XDM is used to define the data structure of datasets, XDM is used here to define the attributes of an offer. note NOTE The ‘Personalized Offer Items - Experience Decisioning’ schema is a system-generated standard schema that applies to all offers. However, one can add to this schema to meet unique business needs, which is what you’ll do in this section. Additionally, going through the offers page is a shortcut for getting to this schema. You could also navigate to it via the Schema menu in the left rail. -
Click the + icon to the right of the root level of the schema, and using the now visible ‘Field Properties’ menu in the right rail, fill in the following fields with the provided values:
- Field name: device
- Display name: Device
- Type dropdown: Object
- Assign to Field Group (type this value in): Offer Details
note NOTE The Assign to Field Group appears to be a dropdown, but it also accepts direct text input; therefore, enter the text ‘Offer Details’. When you type it in, you see an ‘Offer Details (New)’ item appear as well. Any new attribute has to be assigned to a field group, so in this step, you’re effectively creating a new field group called Offer Details. -
Ensure that all of the properties have been filled out like the screenshot below:
-
Once you’ve verified that all the fields are correct, click the blue Apply button at the bottom of the ‘Field properties’ menu (right rail) to see your changes applied to the schema:
Create custom Device attributes
Now that the Device XDM object has been created, you can move on to creating device-specific fields.
-
Click the + icon to the right of the new device object that you just created, and using the ‘Field Properties’ menu in the right rail, fill in the following fields with the provided values:
- Field name: make
- Display name: Make
- Type dropdown: String
- Assign to Field Group: Offer Details (should already be selected)
- Once you’ve verified that all the fields are correct, click the blue Apply button to see your changes applied to the schema
-
Repeat the previous steps to add two additional attributes for Model and Tier. Use the same naming pattern, type, and field group. When finished, the schema should look like this:
-
With all of the new XDM fields/attributes created, click Save in the upper right corner and you will receive a green “Schema Successfully Saved” message at the bottom of the screen. You’ve now completed the steps in this section.
Recap
You’ve successfully updated the standard offers schema with reusable custom fields that will be leveraged in later parts of the lab when creating and evaluating offers.