Hub profile display for custom attributes
What's new
Campaign custom attributes accept an optional, nullable profile_display object that controls how the attribute is presented on the hub profile. It holds a display_name, an icon_url, and a value_format of string, number, or currency — the format is applied to the value, or to each element of a list value.
Impact
An attribute that was previously shown only by its raw name can now be given a player-facing label, an icon, and a value format, without any change to how the attribute itself is stored or evaluated. Attributes without profile_display are unaffected.
Changes
| Resource | Change |
|---|---|
| create_campaign, update_campaign | Added optional profile_display to each entry of custom_attributes in the request body |
| get_campaigns, get_campaign, get_campaigns_by_ids, update_campaign_graph | Added profile_display to custom attributes in campaign responses |
| Components | Added the ProfileDisplay and ProfileValueFormat schemas |
Upgrade
- No action required. Omit
profile_display— or sendnull— to keep the current presentation.
Need help?
Contact our integration team at integration@aghanim.com