Offer versus campaign validation

A plug-in that is made with the Unica Campaign Validation PDK can perform custom validation logic for campaigns, offers, or both.

The Validation PDK can validate offers and campaigns. If a validation plug-in is defined, it is automatically called by Unica Campaign each time an offer or campaign object is saved. Unica Campaign sets a flag when it calls the plug-in's validate method. Unica Campaign passes the following flags:

  • ValidationInputData.CAMPAIGN_VALIDATION, when adding or changing a campaign

    or

  • ValidationInputData.OFFER_VALIDATION, when adding or editing an offer.

You can then use these flags to construct validation rules applying to offers and campaigns.