Add "licensed" IPM parameter & telemetry
Background
IPM campaigns are often relevant only to licensed premium or free users. Although we will be able to target campaigns in MoEngage based on license server events in the future, there is a lag between campaigns being sent and extensions receiving and acting on the campaign. In those cases, we want to be able to ensure that IPMs only trigger correctly for free/premium users as intended.
Business value/impact IPMs that should only be shown to free/premium users are correctly targeted. I'm not sure if we have data backing this but the behavior is common in normal AdBlock update campaigns.
What to do
-
Add an optional
license_state_list
IPM command parameter to thecreate_tab
andcreate_on_page_dialog
commands. This new parameter is a string. The new parameter will contain a comma-separated list of Premium license states (currently,free
orpremium
). The default value isfree
-
Update the existing license_statustelemetry field to the device custom attributes sent in the daily pings. This value should be a string enum with values of free or premium.
Hints for testers
- Test both the 'create_tab' and 'create_on_page_dialog' commands
- with and without the new 'license_state_list' parameter
- Verify the 'license_status' parameter on the IPM request is the correct value