Data Subject Request API Version 1 and 2
Data Subject Request API Version 3
Key Management
Platform API Overview
Accounts
Apps
Audiences
Calculated Attributes
Data Points
Feeds
Field Transformations
Services
Users
Workspaces
Warehouse Sync API Overview
Warehouse Sync API Tutorial
Warehouse Sync API Reference
Data Mapping
Warehouse Sync SQL Reference
Warehouse Sync Troubleshooting Guide
ComposeID
Warehouse Sync API v2 Migration
Audit Logs API
Bulk Profile Deletion API Reference
Calculated Attributes Seeding API
Custom Access Roles API
Data Planning API
Group Identity API Reference
Pixel Service
Profile API
Events API
mParticle JSON Schema Reference
IDSync
AMP SDK
Cordova Plugin
Identity
Initialization
Configuration
Network Security Configuration
Event Tracking
User Attributes
IDSync
Screen Events
Commerce Events
Location Tracking
Media
Kits
Application State and Session Management
Data Privacy Controls
Error Tracking
Opt Out
Push Notifications
WebView Integration
Logger
Preventing Blocked HTTP Traffic with CNAME
Workspace Switching
Linting Data Plans
Troubleshooting the Android SDK
API Reference
Upgrade to Version 5
Direct URL Routing FAQ
Web
Android
iOS
Workspace Switching
Initialization
Configuration
Event Tracking
User Attributes
IDSync
Screen Tracking
Commerce Events
Location Tracking
Media
Kits
Application State and Session Management
Data Privacy Controls
Error Tracking
Opt Out
Push Notifications
Webview Integration
Upload Frequency
App Extensions
Preventing Blocked HTTP Traffic with CNAME
Linting Data Plans
Troubleshooting iOS SDK
Social Networks
iOS 14 Guide
iOS 15 FAQ
iOS 16 FAQ
iOS 17 FAQ
iOS 18 FAQ
API Reference
Upgrade to Version 7
Getting Started
Identity
Upload Frequency
Getting Started
Opt Out
Initialize the SDK
Event Tracking
Commerce Tracking
Error Tracking
Screen Tracking
Identity
Location Tracking
Session Management
Initialization
Configuration
Content Security Policy
Event Tracking
User Attributes
IDSync
Page View Tracking
Commerce Events
Location Tracking
Media
Kits
Application State and Session Management
Data Privacy Controls
Error Tracking
Opt Out
Custom Logger
Persistence
Native Web Views
Self-Hosting
Multiple Instances
Web SDK via Google Tag Manager
Preventing Blocked HTTP Traffic with CNAME
Facebook Instant Articles
Troubleshooting the Web SDK
Browser Compatibility
Linting Data Plans
API Reference
Upgrade to Version 2 of the SDK
Getting Started
Identity
Alexa
Overview
Step 1. Create an input
Step 2. Verify your input
Step 3. Set up your output
Step 4. Create a connection
Step 5. Verify your connection
Step 6. Track events
Step 7. Track user data
Step 8. Create a data plan
Step 9. Test your local app
Overview
Step 1. Create an input
Step 2. Verify your input
Step 3. Set up your output
Step 4. Create a connection
Step 5. Verify your connection
Step 6. Track events
Step 7. Track user data
Step 8. Create a data plan
Step 1. Create an input
Step 2. Create an output
Step 3. Verify output
Node SDK
Go SDK
Python SDK
Ruby SDK
Java SDK
Introduction
Outbound Integrations
Firehose Java SDK
Inbound Integrations
Compose ID
Data Hosting Locations
Glossary
Migrate from Segment to mParticle
Migrate from Segment to Client-side mParticle
Migrate from Segment to Server-side mParticle
Segment-to-mParticle Migration Reference
Rules Developer Guide
API Credential Management
The Developer's Guided Journey to mParticle
Composable Audiences Overview
User Guide Overview
Warehouse Setup Overview
Audience Setup
Frequently Asked Questions
Overview
Overview
User Profiles
Overview
Create and Manage Group Definitions
Calculated Attributes Overview
Using Calculated Attributes
Create with AI Assistance
Calculated Attributes Reference
Predictions Overview
What's Changed in the New Predictions UI
View and Manage Predictions
Identity Dashboard (Early Access)
Create an Input
Start capturing data
Connect an Event Output
Create an Audience
Connect an Audience Output
Transform and Enhance Your Data
Usage and Billing Report
The new mParticle Experience
The Overview Map
Observability Overview
Observability User Guide
Observability Troubleshooting Examples
Observability Span Glossary
Audit Logs
Key Management
Platform Configuration
Event Forwarding
Event Match Quality Dashboard
Notifications
System Alerts
Trends
Introduction
Data Retention
Data Catalog
Connections
Activity
Data Plans
Live Stream
Filters
Rules
Blocked Data Backfill Guide
Tiered Events
mParticle Users and Roles
Analytics Free Trial
Troubleshooting mParticle
Usage metering for value-based pricing (VBP)
IDSync Overview
Use Cases for IDSync
Components of IDSync
Store and Organize User Data
Identify Users
Default IDSync Configuration
Profile Conversion Strategy
Profile Link Strategy
Profile Isolation Strategy
Best Match Strategy
Aliasing
Audiences Overview
Create an Audience
Connect an Audience
Manage Audiences
Audience Sharing
Match Boost
FAQ
Inclusive & Exclusive Audiences Overview
Using Logic Blocks in Audiences
Combining Inclusive and Exclusive Audiences
Inclusive & Exclusive Audiences FAQ
Standard Audiences (Legacy)
Predictive Audiences Overview
Using Predictive Audiences
New vs. Classic Experience Comparison
Introduction
Core Analytics (Beta)
Sync and Activate Analytics User Segments in mParticle
User Segment Activation
Welcome Page Announcements
Project Settings
Roles and Teammates
Organization Settings
Global Project Filters
Portfolio Analytics
Analytics Data Manager Overview
Events
Event Properties
User Properties
Revenue Mapping
Export Data
UTM Guide
Analyses Introduction
Getting Started
Visualization Options
For Clauses
Date Range and Time Settings
Calculator
Numerical Settings
Assisted Analysis
Properties Explorer
Frequency in Segmentation
Trends in Segmentation
Did [not] Perform Clauses
Cumulative vs. Non-Cumulative Analysis in Segmentation
Total Count of vs. Users Who Performed
Save Your Segmentation Analysis
Export Results in Segmentation
Explore Users from Segmentation
Getting Started with Funnels
Group By Settings
Conversion Window
Tracking Properties
Date Range and Time Settings
Visualization Options
Interpreting a Funnel Analysis
Group By
Filters
Conversion over Time
Conversion Order
Trends
Funnel Direction
Multi-path Funnels
Analyze as Cohort from Funnel
Save a Funnel Analysis
Explore Users from a Funnel
Export Results from a Funnel
Saved Analyses
Manage Analyses in Dashboards
Data Dictionary
Query Builder Overview
Modify Filters With And/Or Clauses
Query-time Sampling
Query Notes
Filter Where Clauses
Event vs. User Properties
Group By Clauses
Annotations
Cross-tool Compatibility
Apply All for Filter Where Clauses
Date Range and Time Settings Overview
User Attributes at Event Time
Understanding the Screen View Event
User Aliasing
Dashboards––Getting Started
Manage Dashboards
Organize Dashboards
Dashboard Filters
Scheduled Reports
Favorites
Time and Interval Settings in Dashboards
Query Notes in Dashboards
The Demo Environment
Keyboard Shortcuts
User Segments
Data Privacy Controls
Data Subject Requests
Default Service Limits
Feeds
Cross-Account Audience Sharing
Import Data with CSV Files
CSV File Reference
Glossary
Video Index
Single Sign-On (SSO)
Setup Examples
Introduction
Introduction
Introduction
Rudderstack
Google Tag Manager
Segment
AWS Kinesis (Snowplow)
Advanced Data Warehouse Settings
AWS Redshift (Define Your Own Schema)
AWS S3 Integration (Define Your Own Schema)
AWS S3 (Snowplow Schema)
BigQuery (Snowplow Schema)
BigQuery Firebase Schema
BigQuery (Define Your Own Schema)
GCP BigQuery Export
Snowflake (Snowplow Schema)
Snowplow Schema Overview
Snowflake (Define Your Own Schema)
Aliasing
Event
Audience
Audience
Feed
Event
Cookie Sync
Server-to-Server Events
Platform SDK Events
Audience
Audience
Event
Audience
Audience
Feed
Event
Event
Audience
Event
Data Warehouse
Event
Event
Audience
Event
Event
Feed
Event
Event
Event
Event
Event
Audience
Event
Event
Feed
Event
Event
Audience
Feed
Event
Event
Event
Custom Feed
Data Warehouse
Event
Event
Audience
Audience
Audience
Audience
Event
Event
Event
Event
Event
Event
Event
Audience
Event
Audience
Event
Audience
Data Warehouse
Event
Audience
Cookie Sync
Event
Event
Event
Event
Feed
Event
Feed
Event
Event
Kit
Event
Audience
Event
Event
Audience
Event
Event
Event
Feed
Audience
Event
Audience
Event
Event
Audience
Audience
Audience
Microsoft Ads Audience Integration
Audience
Event
Audience
Event
Event
Event
Event
Feed
Event
Event
Event
Event
Event
Feed
Event
Audience
Event
Event
Event
Event
Event
Event
Feed
Event
Event
Event
Custom Pixel
Feed
Event
Event
Audience
Event
Event
Event
Audience
Data Warehouse
Event
Event
Audience
Audience
Event
Loyalty Feed
Feed
Audience
Audience
Event
Audience
Audience
Audience
Cookie Sync
Event
Feed
Audience
Event
Event
Audience
Audience
Event
Event
Event
Event
Audience
Cookie Sync
Audience
Cookie Sync
Feed
Audience
Event
Snowflake is a cloud data warehouse commonly used to centralize customer data for analysis, reporting, and downstream activation. The Snowflake Audience integration lets you forward mParticle audiences directly to Snowflake for activation, analysis, and enrichment.
This guide covers how to set up the integration, including Snowflake prerequisites, mParticle configuration settings, and the schema structure used to store audience data in Snowflake. It also explains upload frequency, audience deletion behavior, and how to query mParticle audience membership from within Snowflake.
Key pair authentication is required to connect to Snowflake. To set this up:
All of the following steps can be completed from a Snowflake Worksheet.
You may use any names you choose for your warehouse, database, schema, role, user and account, as long as you provide the correct names to mParticle in the Configuration Settings. Note that mParticle does not support Snowflake’s double-quoted identifiers, so do not use double quotes when creating any of these objects.
-- Create a warehouse. Adjust size and AUTO_SUSPEND as needed.
CREATE WAREHOUSE sfAudTestWarehouse WITH WAREHOUSE_SIZE = 'XSMALL' AUTO_SUSPEND = 600 AUTO_RESUME = TRUE;
-- Create database
CREATE DATABASE sfAudTestDatabase;
-- Create schema
CREATE SCHEMA sfAudTestSchema WITH MANAGED ACCESS;Once your database is ready, you need to create a dedicated role with permissions to manage the database.
-- Create new role:
CREATE ROLE sf_aud_data_loader;
-- Grant access to your warehouse, database and schema, and grant access to modify programmatic authentication methods
GRANT USAGE ON WAREHOUSE sfAudTestWarehouse TO ROLE sf_aud_data_loader;
GRANT USAGE ON DATABASE sfAudTestDatabase TO ROLE sf_aud_data_loader;
GRANT ALL ON SCHEMA sfAudTestSchema TO ROLE sf_aud_data_loader;
-- Create user with your new role. Make sure to set your new user as a LEGACY_SERVICE user to avoid Snowflake's MFA requirement.
CREATE USER sf_aud_test_user
DEFAULT_ROLE = sf_aud_data_loader
SET RSA_PUBLIC_KEY='YOUR-PUBLIC-KEY';
GRANT ROLE sf_aud_data_loader TO USER sf_aud_test_user;
GRANT MODIFY PROGRAMMATIC AUTHENTICATION METHODS TO ROLE sf_aud_test_user;If you have created an IP allowlist as part of your Snowflake Network Policy, you can access a current list of IP addresses used by mParticle here.
After creating your Snowflake output configuration, you need to connect it to one or more audiences.
Once connected, mParticle will begin forwarding audience membership updates to Snowflake based on the upload frequency schedule.
All audience data is stored in Snowflake as tables. Each table represents changes to audience membership over time as users are added and removed; it does not represent the current state of the audience at any given moment.
The table names are in the format {audience name}_{audience ID}. The audience name is either audience or the external audience name, depending on the Use External Audience Name in Table Name setting. If a table with the configured name does not exist, a new table will be created on the next update.
For example, if your audience ID is 7185 and the external audience name is New Users Low Engagement:
audience_7185.NEWUSERSLOWENGAGEMENT_7185.You can optionally merge audience membership updates into a single global view by enabling the Create Global Audience View setting. This creates a view that unions all audience tables in the schema.
| Field Name | Data Type | Description |
|---|---|---|
| androidid | string |
Android ID |
| audienceid | int |
ID of the Audience |
| audiencename | string |
External Name of the Audience |
| audiencestatus | string |
added for a user added to an audience. removed for a user removed. deleted for an audience deleted from mParticle. |
| customerid | string |
Customer ID |
string |
||
| facebookid | string |
Facebook ID |
| googleaid | string |
GAID (Google Advertising ID) |
| googleuserid | string |
Google User ID |
| idfa | string |
IDFA (Apple Advertising ID) |
| idfv | string |
IDFV (Apple Vendor ID) |
| microsoftid | string |
Microsoft ID |
| mpid | int |
mParticle ID |
| otheruserid | string |
Other User ID |
| otheruserid2 | string |
Other User ID 2 |
| otheruserid3 | string |
Other User ID 3 |
| otheruserid4 | string |
Other User ID 4 |
| otheruserid5 | string |
Other User ID 5 |
| otheruserid6 | string |
Other User ID 6 |
| otheruserid7 | string |
Other User ID 7 |
| otheruserid8 | string |
Other User ID 8 |
| otheruserid9 | string |
Other User ID 9 |
| otheruserid10 | string |
Other User ID 10 |
| pushtoken | string |
Push Token |
| rokuaid | string |
Roku Advertising ID |
| rokupublisherid | string |
Roku Publisher ID |
| fireadvertisingid | string |
Fire Advertising ID |
| timestamp | string |
Unix timestamp for the update |
| twitterid | string |
Twitter ID |
| userattributes | string |
A list of user attribute name and value pairs |
| yahooid | string |
Yahoo ID |
Because each table stores a log of membership changes rather than current state, you need to query for the most recent record per user to get the current audience membership. Here are some example queries:
-- Selects the most recent CustomerIds for currently active members
WITH latest AS (
SELECT *,
ROW_NUMBER() OVER (PARTITION BY mpid ORDER BY timestamp DESC) AS rn
FROM {schema}.{audiencename}_{audienceid}
)
SELECT f.value::STRING AS CustomerId
FROM latest,
LATERAL FLATTEN(input => CustomerId) f
WHERE rn = 1 AND audiencestatus = 'added';
-- Query the global view (unions all audience tables in the schema)
SELECT *
FROM {schema}.audience_view
ORDER BY timestamp DESC;The Snowflake Audience integration uses Bulk Forwarding. Instead of uploading audience membership updates in real-time, mParticle compiles updates into a queue until a given amount of time has passed since the last upload, or until a certain number of updates are waiting to be sent.
By default, mParticle uploads to Snowflake whenever at least one of the following conditions are met:
Reach out to your mParticle Customer Success Manager if you need to adjust upload frequency.
When you delete an audience in mParticle, the corresponding table in Snowflake is not deleted. Instead, mParticle sends a new record for all users in the audience with a membership status of deleted.
| Setting Name | Data Type | Default Value | Description |
|---|---|---|---|
| Configuration Name | string |
The name you are giving to this configuration. | |
| Schema Name | string |
Schema name in Snowflake for this workspace. | |
| User ID | string |
Snowflake account username that can read/write. | |
| Account | string |
Snowflake account domain. | |
| Database Name | string |
The database name created in your Snowflake setup. | |
| Data Warehouse Name | string |
Name of the data warehouse in Snowflake. | |
| Key ID | string |
The ID of the key pair to use when connecting to the Snowflake database. | |
| Create Global Audience View | bool |
False | If enabled, a global view unioning all audience tables will be created in Snowflake. |
| Use External Audience Name in Table Name | bool |
False | If enabled, the external audience name will be used in the Snowflake table name. If a table with the configured name does not exist, a new table will be created. |
| Send External Audience Name as Column | bool |
False | If enabled, an AudienceName column will be added to audience tables in Snowflake. |
| Send User Attributes | bool |
False | If enabled, user attribute values will be forwarded to audience tables in Snowflake. |
| Setting Name | Data Type | Default Value | Description |
|---|---|---|---|
| Identities to Include | List |
An optional setting allowing one to indicate which user and device identities to include in outgoing data. |