Airship
Overview
Airship provides mobile push and location-based messaging services that enable brands to strengthen relationships with their customers.
Connect Airship to Lytics to gain greater insight into your users' activities in your app. Create lists to target in Airship using advanced audience insights and data science from Lytics to drive your conversion rates.
Authorization
If you haven't already done so, you will need to setup an Airship account before you begin the process described below.
-
Select Airship from the list of providers.
-
Select the method for authorization. Note that different methods may support different job types. Airship supports the following authorization methods:
- Event Stream: used for Import Events job
- Basic Master: used for Import Compliance Events and the Export Audiences jobs
-
Enter a Label to identify your authorization.
-
(Optional) Enter a Description for further context on your authorization.
-
Complete the configuration steps needed for your authorization. These steps will vary by method.
-
Click Save Authorization.
Event Stream Authorization
This authorization is used for the Import Events job. You will need to create an access token for Lytics to use to authorize with Airship.
You will need to add the Direct Connection or the Lytics integration your Airship account to use the event import.
After creating an access token and retrieving your app key, follow these steps configure the authorization between Lytics and Airship.
- In the App Key field, enter your Airship app key.
- In the Access Token field, enter your Airship Token.
- (Optional) From the Airship Project Location dropdown box, select the location of your Airship project location. The default is "US".
Basic Master Authorization
This Authorization is used for the Import Compliance Events and the Export Audiences jobs.
- In the App Key field, enter your Airship app key.
- In the Master Secret field, enter your Airship Master Secret.
- (Optional) From the Airship Project Location dropdown box, select the location of your Airship project location. The default is "US".
Import Events
By importing your Airship events into Lytics, you'll be able to use Lytics powerful insights into the channels your users use the most.
Integration Details
- Implementation Type:Server-side Integration.
- Implementation Technique: Streaming REST API Integration.
- Frequency: Real-time Integration with one time backfill of events after setup.
- Resulting Data: User Fields and Raw Events from Airship.
This integration utilizes the Airship APIs to receive event data. On each run of the job, it will:
- Open event stream using the configured device and event type filters, and event latancey. After the first run, the request will include the offset of the last event read.
- Collect event data into the
airship_events
stream.
Fields
The following fields are included in the default mapping of the airship_events
stream:
Source Field | Conditional | Lytics User Field | Description | Type |
---|---|---|---|---|
count(occurred ) | IF tolower(type ) IN ("screen_viewed") AND tolower(device.device_type ) IN ("ios", "android", "amazon") | airship_app_screen_views | Airship App: Screen View Count | int |
count(occurred ) | IF tolower(type ) IN ("open") AND tolower(device.device_type ) IN ("ios", "android", "amazon") | airship_app_sessions | Airship App: Session Count | int |
device.channel | IF tolower(device.device_type ) IN ("email") | airship_email_id | Airship Email Channel ID | string |
device.named_user_id | airship_user_id unique id | Named User ID | string | |
email(device.delivery_address) | IF tolower(device.device_type ) IN ("email") | email unique id | Email Address | string |
epochms() | airship_last_app_event_ts | Last App Event | date | |
match("body.current.") | IF eq(type, "TAG_CHANGE") | airship_app_tags | App Tags | map[string]value |
max(epochms()) | IF tolower(type ) IN ("first_open") AND tolower(device.device_type ) IN ("ios", "android", "amazon") | airship_app_last_install | Airship App: Last Install Date | date |
max(epochms()) | IF tolower(type ) IN ("uninstall") AND tolower(device.device_type ) IN ("ios", "android", "amazon") | airship_app_last_uninstall | Airship App: Last Uninstall Date | date |
max(epochms()) | IF tolower(type ) IN ("custom") AND tolower(device.device_type ) IN ("email") AND tolower(body.name ) IN ("bounce") | airship_email_last_bounce | Airship Email: Last Bounce Timestamp | date |
max(epochms()) | IF tolower(type ) IN ("custom") AND tolower(device.device_type ) IN ("email") AND tolower(body.name ) IN ("click") | airship_email_last_click | Airship Email: Last Click Timestamp | date |
max(epochms()) | IF tolower(type ) IN ("custom") AND tolower(device.device_type ) IN ("email") AND tolower(body.name ) IN ("delivery") | airship_email_last_delivery | Airship Email: Last Delivery Timestamp | date |
max(epochms()) | IF tolower(type ) IN ("custom") AND tolower(device.device_type ) IN ("email") AND tolower(body.name ) IN ("open") | airship_email_last_open | Airship Email: Last Open Timestamp | date |
max(epochms()) | IF tolower(type ) IN ("send") AND tolower(device.device_type ) IN ("email") | airship_email_last_send | Airship Email: Last Send Timestamp | date |
max(epochms()) | IF tolower(type ) IN ("custom") AND tolower(device.device_type ) IN ("email") AND tolower(body.name ) IN ("unsubscribe") | airship_email_last_unsub | Airship Email: Last Unsubscribe Timestamp | date |
min(epochms()) | IF tolower(type ) IN ("first_open") AND tolower(device.device_type ) IN ("ios", "android", "amazon") | airship_app_first_install | Airship App: First Install Date | date |
min(epochms()) | IF tolower(type ) IN ("uninstall") AND tolower(device.device_type ) IN ("ios", "android", "amazon") | airship_app_first_uninstall | Airship App: First Uninstall Date | date |
min(epochms()) | airship_created_ts | Created Date | date | |
min(epochms()) | IF tolower(type ) IN ("custom") AND tolower(device.device_type ) IN ("email") AND tolower(body.name ) IN ("bounce") | airship_email_first_bounce | Airship Email: First Bounce Timestamp | date |
min(epochms()) | IF tolower(type ) IN ("custom") AND tolower(device.device_type ) IN ("email") AND tolower(body.name ) IN ("click") | airship_email_first_click | Airship Email: First Click Timestamp | date |
min(epochms()) | IF tolower(type ) IN ("custom") AND tolower(device.device_type ) IN ("email") AND tolower(body.name ) IN ("open") | airship_email_first_open | Airship Email: First Open Timestamp | date |
min(epochms()) | IF tolower(type ) IN ("send") AND tolower(device.device_type ) IN ("email") | airship_email_first_send | Airship Email: First Send Timestamp | date |
min(epochms()) | IF tolower(type ) IN ("custom") AND tolower(device.device_type ) IN ("email") AND tolower(body.name ) IN ("unsubscribe") | airship_email_first_unsub | Airship Email: First Unsubscribe Timestamp | number |
min(epochms()) | IF tolower(type ) IN ("custom") AND tolower(device.device_type ) IN ("email") AND tolower(body.name ) IN ("delivery") | airship_email_fist_delivery | Airship Email: First Delivery Timestamp | date |
set(body.viewed\_screen ) | IF tolower(type ) IN ("screen_viewed") AND tolower(device.device_type ) IN ("ios", "android", "amazon") | airship_app_screens_viewed | Airship App: Screens Viewed | []string |
set(device.device\_type ) | airship_device_types | Airship: All Devices used | []string | |
set(device.amazon_channel) | airship_amazon_devices | Amazon Device IDs | []string | |
set(device.android_channel) | airship_android_devices | Android Device IDs | []string | |
set(device.channel) | airship_device_channel unique id | Airship Channel ID(s) | []string | |
set(device.ios_channel) | airship_apple_devices | Apple Device IDs | []string | |
tobool(device.attributes.push\_opt\_in ) | IF tolower(device.device_type ) IN ("ios", "android", "amazon") | airship_app_push_permission | Airship App: Push Notifications Opt-In | bool |
valuect(type ) | IF tolower(device.device_type ) IN ("ios", "android", "amazon") | airship_app_event_counts | Airship App: Event Count per App Event | map[string]intsum |
valuect(type ) | IF tolower(type ) IN ("send") AND tolower(device.device_type ) IN ("email") | airship_email_event_counts | Airship Email: Event Count per Email Event | map[string]intsum |
Configuration
Follow these steps to set up and configure an import job for Airship in the Lytics platform. If you are new to creating jobs in Lytics, see the Data Sources documentation for more information.
-
Select Airship from the list of providers.
-
Select the Import Activity Data job type from the list.
-
Select the Authorization you would like to use or create a new one.
-
Enter a Label to identify this job you are creating in Lytics.
-
(Optional) Enter a Description for further context on your job.
-
Complete the configuration steps for your job.
-
(Optional) In the Maximum Event Age (days) text box, enter the maximum age of a message to be imported. If left blank, only new events will be imported.
-
(Optional) Using the Device Types input, select the types of device you would like events from. Devices on the right will be included. If no Devices are selected, all device types will be imported.
-
(Optional) Using the Event Types input, select the types of events you would like to import. Event Types on the right will be included. If no Event Types are selected, all event types will be imported.
-
(Optional) In the Push ID text box, enter the ID of a push message to only import events related to that push. Note: you may only include one of Group ID and Push ID.
-
(Optional) In the Group ID text box, enter the ID of a group to only import events related to that group. Note: you may only include one of Group ID and Push ID.
-
Click Start Import.
Export Audiences
Export your Lytics audiences to Airship to use Lytics-powered insights in your mobile campaigns. Use your advanced data science driven audiences in Lytics as your push targets in Airship.
Integration Details
- Implementation Type: Server-side Integration.
- Implementation Technique: REST API Integration (File Based Transfer Integration)
- Frequency: Batch Integration One-time or continuous hourly, daily, weekly, or monthly exports where the time of day can be configured.
- Resulting Data: A new or existing list in Airship populated with channel identifiers from Lytics users.
This integration utilizes the Airship APIs to create a static list of users. Users without an email channel will be registered and associated with a named user ID if available. Once the user initiates an export, the job will:
- On the first run, the export will create a static list in Airship. If an existing list was selected during configuration, this step is skipped.
- Scan through the users in the Lytics audience.
- For any users with an email address, but no email channel ID, register the email address with Airship.
- Associate newly created email channel ID with the named user ID.
- Build a CSV containing user channel identifier types and identifiers.
- Update the list in Airship with the user CSV.
Note: Large audiences may take longer than an hour to export.
Fields
The following fields can be mapped for export as part of the audience export to Airship.
Lytics User Field | Airship Field | Description | Type |
---|---|---|---|
User configurable | amazon_channel | Amazon channel UUID | string |
User configurable | android_channel | Android channel UUID | string |
User configurable | email_channel | Email channel UUID | string |
User configurable | ios_channel | iOS channel UUID | string |
User configurable | named_user | Named User channel UUID | string |
User configurable | open_channel | Open channel UUID | string |
User configurable | sms_channel | SMS channel UUID | string |
Configuration
Follow these steps to set up and configure an export job for Airship in the Lytics platform.
-
Select Airship from the list of providers.
-
Select the Export Audiences job type from the list.
-
Select the Authorization you would like to use or create a new one.
-
Enter a Label to identify this job you are creating in Lytics.
-
(Optional) Enter a Description for further context on your job.
-
(Required) From the Audience drop-down, select the Lytics audience you want to export to Airship.
-
(Optional) From the List drop-down, select an existing static list to export the audience to. Either a List must be selected or a List Name must be entered below.
-
(Optional) In the List Name text box, enter the name of a list to create in Airship. Either a List must be selected or a List Name must be entered.
-
(Optional) From the Email Field drop-down, select the Lytics field that contains Email Address of the user. This Email will be used to register new users in Airship.
-
(Optional) From the Named User ID Field drop-down, select a field to use when associating a newly registered email with a named user. If a field is selected, its value will be used as the named user id to associate the registered email with the named user. If left blank registered emails will not be associated with a named user.
-
Use the Identifier Field Mapping input to map the Lytics user field (on the left) to the Airship channel (right). Note: The Lytics field must contain the user's Airship channel UUID.
-
(Optional) Select the Commercial Opt-In Field which represents the date-time when the user subscribed to the Commercial emails.
-
(Optional) Select the Commercial Opt-out Field which represents the date-time when the user unsubscribed from the Commercial emails.
-
(Optional) Select the Transactional Opt-in Field which represents the date-time when the user subscribed to the Transactional emails.
-
(Optional) Select the Transactional Opt-out Field which represents the date-time when the user unsubscribed from the Transactional emails.
-
(Optional) Select the Keep Updated checkbox to run the export at a configurable frequency. The default is daily at midnight UTC.
-
(Optional) From the List Update Frequency drop-down, select the frequency you would like the export to run. Note: Large audiences may take more than an hour to export to Airship.
-
(Optional) From the Time of Day drop-down, select the time of day the export should run for daily, weekly, and monthly exports.
-
(Optional) From the Timezone drop-down, select the timezone to use for Time of Day.
-
Click Start Export.
Updated about 1 year ago