SDK API Reference / withAudienceName
Function: withAudienceName()
withAudienceName(
personalization,campaign):P13nPersonalization
Fill in one personalization's audience name from its campaign.
The same rule as withAudienceNames, for a caller holding a single row and a campaign it read on a best-effort basis: a null campaign leaves the name null rather than failing, since the name is a label and the record is already stored.
Parameters
personalization
P13nPersonalization
A row as mapped by the client, audienceName null
campaign
P13nCampaignDetail | null
The campaign, or null when reading it did not succeed
Returns
P13nPersonalization
The same row, with the audience name filled in where it resolves