Sometimes, a specific list of user IDs needs to be included in a campaign or A/B test. Those users might not have a common trait we can target in an Audience, so we can update them with a custom user attribute for that purpose.
This needs to be done with consideration, as otherwise the limit of distinct user attribute names per app might be reached, after repeated use.
Steps:
- Choose a custom user attribute. Example: custom_audience
- Append a unique value to it for each campaign/audience you need, using CSV import.
*Appending is used only if preserving older values is required. Otherwise, simply overwriting the attribute value works - Build your audience based on users with attribute custom_audience that contains the imported value:
CSV file format:
Example shows how to append values to a user attribute. For how to update/overwrite it instead, see our documentation
- Plain text:
userId,userAttributeValuesToAdd
user1,"{custom_audience:january_campaign}"
user2,"{custom_audience:february_campaign}"
user3,"{custom_audience:[january_campaign,february_campaign]}" - Table view:
userId userAttributeValuestoAdd user1 "{custom_audience:january_campaign}" user2 "{custom_audience:february_campaign}" user3 "{custom_audience:[january_campaign,february_campaign]}" - Check all requirements for a valid file here