In this article, we’ll walk through integrating your SmarterSends instance with an Airship project. The API portion can typically be completed in 15 minutes. Configuring Real-Time Data Streaming for campaign reporting may take additional time.
You’ll find the integration settings in SmarterSends under Integrations -> Email.
Before you begin, you’ll need:
- Access to your Airship project as an Owner or Administrator.
- Your Airship region.
- Your Airship App Key and Master Secret.
- Airship OAuth client credentials.
- An Airship Real-Time Data Streaming Amazon S3 integration.
- Access to your SmarterSends instance as an account owner.
Log in to both Airship and SmarterSends before starting.
- App Key and Master Secret
SmarterSends uses the App Key and Master Secret for server-to-server communication with the Airship API.
- Open the appropriate project in the Airship dashboard.
- Next to the project name, open the project menu and select Project Details. In some Airship accounts, these credentials may appear under Settings -> APIs & Integrations.
- Locate the App Key and Master Secret.
- Copy the App Key into the App Key field in SmarterSends.
- Copy the Master Secret into the Master Secret field in SmarterSends.
- Do not use the App Secret in place of the Master Secret.
The Master Secret provides broad access to the Airship API and should only be stored in trusted server-side systems. Do not place it in an application, template, or publicly accessible location.
Airship API security documentation:
https://www.airship.com/docs/guides/getting-started/developers/api-security
- Select Your Airship Region
Select the Airship region associated with your project:
- United States
- European Union
The selected region determines which Airship API endpoints SmarterSends uses. Choosing the wrong region will cause API authentication to fail.
- Create OAuth Client Credentials
SmarterSends uses Airship OAuth client credentials to request short-lived access tokens and verify access to your Airship channels.
- In Airship, open the menu next to your project name and select Settings.
- Under Project Settings, select OAuth.
- Select Add Credentials.
- Enter a recognizable name, such as “SmarterSends.”
- Add a description explaining that the credentials are used by the SmarterSends integration.
- Enable Allow Basic Auth.
Allow Basic Auth must be enabled. This generates the Client Secret required by SmarterSends.
- Optionally configure an expiration date. If you set an expiration date, the credentials must be replaced in SmarterSends before they expire.
- Select Next.
- Enable the Channels permission, identified by the OAuth scope “chn.”
- Select Save.
- Copy the Client ID and Client Secret before closing the credentials window.
Airship displays the Client Secret only when the credentials are created. Store it securely.
- In SmarterSends, enter the Client ID in the OAuth Client ID field.
- Enter the Client Secret in the OAuth Client Secret field.
- Enter the following value in the OAuth Scopes field:
chn
Airship OAuth documentation:
https://www.airship.com/docs/developer/rest-api/ua/operations/oauth/
- Configure Real-Time Data Streaming
SmarterSends uses Airship Real-Time Data Streaming, or RTDS, to collect recipient-level campaign events and update mailing statistics.
Your Airship account must include access to both Messaging and Real-Time Data Streaming.
Contact SmarterSends Support for the Amazon S3 bucket information required for your organization before creating the connection.
To configure the integration:
- In Airship, open the menu next to your project name and select Settings.
- Under Project Settings, select Real-Time Data Streaming.
- Select Amazon S3.
- Create an outbound Amazon S3 integration using the connection details provided by SmarterSends.
- Select JSON as the output format.
SmarterSends processes JSON event files. Do not select CSV.
- Include the messaging delivery and engagement events needed for reporting, including sends, deliveries, opens, clicks, bounces, unsubscribes, SMS delivery reports, and SMS short-link clicks where applicable.
- Complete and enable the integration.
- Locate the Integration ID assigned by Airship.
- Copy this value into the RTDS S3 Integration ID field in SmarterSends.
Airship stores the files using a path containing the App Key and Integration ID. Both values must match the values entered in SmarterSends.
Airship Amazon S3 integration documentation:
https://docs.airship.com/integrations/aws/
- Configure Stats Scan Days
Stats Scan Days controls how many recent Airship S3 date folders SmarterSends checks for unprocessed event files.
The recommended starting value is:
2
Increase this value if event files are frequently delayed by more than one day. Increasing it causes SmarterSends to inspect more S3 folders during each scan, but previously processed files will not be counted twice.
- Test API Access
After entering the required settings:
- Click Test API Access.
- SmarterSends will validate the App Key and Master Secret.
- SmarterSends will request an OAuth access token and verify access to the Airship Channels API.
- Confirm that API Access Successful displays a green checkmark.
If validation fails, verify:
- The correct United States or European Union region is selected.
- The App Key and Master Secret belong to the same Airship project.
- The Master Secret was entered instead of the App Secret.
- Allow Basic Auth was enabled when the OAuth credentials were created.
- The OAuth Client ID and Client Secret were copied correctly.
- The OAuth credentials are active and have not expired.
- The OAuth Scopes field contains “chn.”
- Configure Custom Attributes
After API access is validated, SmarterSends displays the Custom Attributes section.
Add each Airship custom attribute that should be available for queries, personalization, or Group contact restrictions.
For each attribute, enter:
- Attribute Name
Enter the exact attribute key used by Airship. Attribute names are case-sensitive.
- Attribute Friendly Name
Enter the label SmarterSends users should see when selecting the attribute.
- Attribute Type
Select the corresponding Airship data type:
- String
- Number
- Date
Make sure the selected type matches the data stored in Airship. An incorrect type can cause audience criteria to return unexpected results or be rejected by Airship.
Select Add Attribute to configure additional attributes.
- Save the Integration
After API Access Successful displays a green checkmark and the custom attributes are configured:
- Click Save.
- Return to the Integrations page.
- Confirm that the Email integration displays Connected.
- Airship Audience Behavior
Airship Segments are available as campaign audiences within SmarterSends.
When building a campaign:
- At least one Airship Segment must be selected as the audience.
- If multiple audience Segments are selected, contacts matching any selected Segment are included.
- Suppression Segments are excluded from the campaign audience.
- Seed Segments are sent as a separate Airship send.
- Group contact restrictions are added to primary live campaign sends.
- Group contact restrictions are not applied to Seed list sends or individual test sends.
- Verifying the Integration
After completing the setup, we recommend performing the following checks:
- Create a campaign and confirm your Airship Segments appear in the audience selector.
- Send a test email and confirm it is received.
- If using SMS, confirm the test number is already registered and opted in within Airship.
- If using push notifications, test using an existing Airship Named User ID.
- Send a live campaign to a controlled audience.
- Confirm the send appears in Airship.
- Allow time for Airship RTDS files to be delivered to Amazon S3.
- Confirm delivery and engagement statistics begin appearing in SmarterSends.
Troubleshooting
API Access Failed
Confirm the region, App Key, Master Secret, OAuth credentials, and OAuth scope. If the OAuth Client Secret is no longer available, create new OAuth credentials with Allow Basic Auth enabled.
Segments Are Not Available
Confirm that API access is successful and that the configured Airship project contains active Segments.
Statistics Are Not Appearing
Confirm that the Airship Amazon S3 integration is enabled, JSON output is selected, the correct events are included, and the RTDS S3 Integration ID exactly matches the Airship integration.
SMS Test Sends Fail
Airship requires test SMS recipients to already be registered and opted in for the configured sender. Confirm the phone number and sender configuration in Airship.
Authentication Previously Worked but Now Fails
Check whether the OAuth client credentials expired or were revoked. If necessary, create replacement credentials and update the OAuth Client ID and Client Secret in SmarterSends.
Comments
0 comments
Article is closed for comments.