Overview

Swrve is a mobile marketing automation platform.

Integrating Lytics with Swrve can improve the personalization and precision of your mobile marketing by leveraging Lytics' powerful data science driven segments for targeting.

Authorization

If you haven't already done so, you will need to set up a Swrve account before you begin the process described below. There are two types of Swrve imports that require different types of authorizations.

If you are new to creating authorizations in Lytics, see the Authorizations documentation for more information.

  1. Select Swrve from the list of providers.
  2. Select the method for authorization. Note that different methods may support different job types. Swrve supports the following authorization methods:
  3. Enter a Label to identify your authorization.
  4. (Optional) Enter a Description for further context on your authorization.
  5. Complete the configuration steps needed for your authorization. These steps will vary by method.
  6. Click Save Authorization.

Swrve API

To import audiences, Lytics uses the standard Swrve API authentication, requiring the following credentials: API Key and Personal Key. You can find more information on creating a Swrve API keys here.

  1. In the Label text box, enter a name for the authorization.
  2. (Optional) In the Description text box, enter a description for this authorization.
  3. Enter your API Key credential.
  4. Enter your Personal Key credential.

Swrve S3

To import user activity data, you must first set up a raw data export in Swrve, which exports to a S3 bucket. You will need the following credentials: AWS S3 Access Token, Secret Token, and Bucket.

  1. In the Label text box, enter a name for the authorization.
  2. (Optional) In the Description text box, enter a description for this authorization.
  3. Enter your Access Token credential.
  4. Enter your Secret Token credential.
  5. Enter your Bucket credential.

Import Activity Data

Importing Swrve user activity data allows you to enrich your Lytics profiles and give you a more accurate view of your users' engagement.

Integration Details

  • Implementation Type: Server-side Integration
  • Implementation Technique: File Based Transfer Integration
  • Frequency: Batch Integration
  • Resulting data: Raw Event Data

This integration utilizes the Amazon S3 API to import user data. Once the import is started the workflow will:

  1. Fetch the file selected in the configuration step from S3.
  2. Send data to the swrve_activity stream.
  3. Schedule the next run of the import if the Keep Updated options is selected.

Fields

The following fields are included in the default mapping of the swrve_activity stream:

Source FieldLytics User FieldDescriptionType
count(type)swrve_currency_given_ctSwrve Currency Given Countint
count(type)swrve_event_ctSwrve Event Countint
count(type)swrve_iap_ctSwrve IAP Countint
count(type)swrve_purchase_ctSwrve Purchase Countint
count(type)swrve_session_end_ctSwrve Session End Countint
count(type)swrve_session_start_ctSwrve Session Start Countint
device_idswrve_device_idSwrve Device IDstring
device_nameswrve_device_nameSwrve Device Namestring
gameswrve_gameSwrve Gamestring
max(epochms())swrve_last_purchase_tsSwrve Last Purchasedate
min(epochms())swrve_first_purchase_tsSwrve First Purchasedate
nameswrve_activity_nameSwrve Activity Namestring
osswrve_osSwrve OSstring
os_versionswrve_os_versionSwrve OS Versionstring
product_idswrve_product_idSwrve Product IDstring
typeswrve_activity_typeSwrve Activity Typestring
userswrve_user_id unique idSwrve User IDstring
valuect(type)swrve_activty_ctSwrve Eventsmap[string]intsum

Configuration

Follow these steps to set up and configure an import job for Swrve in the Lytics platform.If you are new to creating jobs in Lytics, see the Data Sources documentation for more information.

  1. Select Swrve from the list of providers.
  2. Select the Import Activity Data job type from the list.
  3. Select the Authorization you would like to use or create a new one.
  4. Enter a Label to identify this job you are creating in Lytics.
  5. (Optional) Enter a Description for further context on your job.
  6. Complete the configuration steps for your job.
  7. From the File input, select choose the file, or if this is a continuous import, choose the first file in a dated sequence to import. Listing files may take up to a couple minutes.
  8. (Optional) Select the Keep Updated checkbox to continuously run this import.
  9. (Optional) Toggle Show Advanced Options.
    1. (Optional) In the File Prefix text box, enter enter the file name prefix. You may use regular expressions.
    2. (Optional) From the Time of Day input, select time of day to complete the import each day.
    3. (Optional) From the Timezone input, select.
  10. Click Start Import.

Import Audiences

Integrating Swrve and Lytics allows you to unite user data across channels and leverage Lytics' powerful data science driven segments for targeting.

Integration Details

  • Implementation Type: Server-side Integration
  • Implementation Technique: REST API Integration
  • Frequency: Batch Integration
  • Resulting data: User Profiles

This integration utilizes the Swrve APIs import user data. Once the import is started the workflow will:

  1. Import all user data into the swrve_users stream.
  2. Schedule the next run of the import if the Keep Updated options is selected.

Fields

The following fields are included in the default mapping of the swrve_users stream:

Source FieldLytics User FieldDescriptionType
epochms()swrve_last_user_importedLast User Importeddate
max(totimestamp(last_active))last_active_tsLast Active on Any Channeldate
max(totimestamp(last_active))swrve_last_activeSwrve Last Activedate
milliseconds_playedswrve_milliseconds_playedSwrve Milliseconds Playedint
min(totimestamp(date_joined))swrve_date_joinedSwrve Date Joineddate
min(totimestamp(swrve_install_date))swrve_install_dateSwrve Install Datedate
spendswrve_spendSwrve Spendnumber
swrve_all_eventsswrve_all_eventsSwrve All Eventsint
swrve_app_storeswrve_app_storeSwrve App Storestring
swrve_app_versionswrve_app_versionSwrve App Versionstring
swrve_conversation_versionswrve_conversation_versionSwrve Conversation Versionstring
swrve_data_idswrve_data_id unique idSwrve Data IDstring
swrve_device_dpiswrve_device_dpiSwrve Device DPIint
swrve_device_heightswrve_device_heightSwrve Device Heightint
swrve_device_nameswrve_device_nameSwrve Device Namestring
swrve_device_regionswrve_device_regionSwrve Device Regionstring
swrve_device_widthswrve_device_widthSwrve Device Widthint
swrve_error_invalid_currencyswrve_invalid_currencySwrve Invalid Currency Errorsint
swrve_first_sessionswrve_first_sessionSwrve First Sessionint
swrve_ios_min_versionswrve_ios_min_versionSwrve iOS Minimum Versionstring
swrve_languageswrve_languageSwrve Languagestring
swrve_location_versionswrve_location_versionSwrve Location Versionstring
swrve_messages_campaigns_downloadedswrve_cmpgns_downloadedSwrve Messages Campaigns Downloadedint
swrve_osswrve_osSwrve OSstring
swrve_os_versionswrve_os_versionSwrve OS Versionstring
swrve_permission_ios_cameraswrve_permission_ios_cameraSwrve iOS Camera Permissionstring
swrve_permission_ios_contactsswrve_permission_ios_contactsSwrve iOS Contacts Permissionstring
swrve_permission_ios_location_alwaysswrve_permission_ios_location_alwaysSwrve iOS Location Always Permissionstring
swrve_permission_ios_location_when_in_useswrve_permission_ios_location_when_in_useSwrve iOS Location In Use Permissionstring
swrve_permission_ios_photosswrve_permission_ios_photosSwrve iOS Photos Permissionstring
swrve_permission_ios_push_notificationsswrve_permission_ios_push_notificationsSwrve iOS Push Permissionstring
swrve_sdk_versionswrve_sdk_versionSwrve SDK Versionstring
swrve_segmentsswrve_segmentsSwrve Segmentsstring
swrve_session_startswrve_session_startSwrve Session Startint
swrve_sim_operator_codeswrve_sim_operator_codeSwrve SIM Operator Codestring
swrve_sim_operator_iso_country_codeswrve_sim_operator_iso_country_codeSwrve SIM Operator Countrystring
swrve_sim_operator_nameswrve_sim_operator_nameSwrve SIM Operator Namestring
swrve_timezone_nameswrve_timezone_nameSwrve Timezone Namestring
swrve_user_idswrve_user_id unique idSwrve User IDstring
swrve_user_properties_changedswrve_user_properties_changedSwrve User Properties Changedint
swrve_utc_offset_secondsswrve_utc_offset_secondsSwrve UTC Offset Secondsint

Configuration

Follow these steps to set up and configure an import job for Swrve in the Lytics platform.If you are new to creating jobs in Lytics, see the Data Sources documentation for more information.

  1. Select Swrve from the list of providers.
  2. Select the Import Audiences job type from the list.
  3. Select the Authorization you would like to use or create a new one.
  4. Enter a Label to identify this job you are creating in Lytics.
  5. (Optional) Enter a Description for further context on your job.
  6. Complete the configuration steps for your job.
  7. (optional) Select the Keep Updated checkbox, to continuously run this import.
  8. (Optional) Toggle Show Advanced Options.
    1. (Optional) From the Time of Day input, select time of day to complete the import each day.
    2. (Optional) From the Timezone input, select timezone for time of day.
  9. Click Start Import.