Snowflake Data Sharing

If your data is stored in Snowflake, you can deliver it to Optimove using Snowflake Secure Data Sharing. This page explains the supported sharing options, the setup steps on your side, and what Optimove needs from you to complete the connection.

Overview

With Secure Data Sharing, you share selected tables or secure views from your Snowflake account with Optimove's Snowflake account. No data is transferred as files. If your Snowflake account is in the same cloud and region as Optimove's, no data is copied, and your data stays in your account. If it is in a different cloud or region, Snowflake automatically replicates your data, encrypted, into a Snowflake-managed storage area in Optimove's region so Optimove can query it directly.

  • No file transfers: No daily file exports, SFTP uploads, or cloud storage buckets are required.
  • Read-only access: Optimove can only read the objects you include in the share. You control what is shared and can revoke access at any time.
  • Always current: Optimove reads the latest version of your data at the time of each daily load.
  • Costs: Optimove covers the compute (warehouse) costs of querying the shared data. You continue to pay for storing your data, as you do today. With a Direct Share (same cloud and region), there are no additional costs on your side. With a Private Listing (different cloud or region), cross-region replication may incur additional Snowflake costs on your account (see Step 3b).
📘

Note: Secure Data Sharing requires that you already have a Snowflake account. If you don't use Snowflake, see Files Delivery or Direct Database Connection for other delivery methods.

Choose a sharing method

The method depends on whether your Snowflake account is hosted in the same region and cloud platform as Optimove's Snowflake account. Optimove's Snowflake accounts are hosted on Google Cloud Platform (GCP):

Optimove environmentCloud platformSnowflake regionSnowflake region ID
USGoogle Cloud Platform (GCP)US Central 1 (Iowa)GCP_US_CENTRAL1
EUGoogle Cloud Platform (GCP)Europe West 4 (Netherlands)GCP_EUROPE_WEST4

Compare your Snowflake region (see Step 1 below) with the Optimove environment your instance is hosted in. If you are not sure which Optimove environment you are on, Optimove can confirm.

Direct SharePrivate Listing
When to useYour Snowflake account is in the same region as your Optimove environment (GCP_US_CENTRAL1 for US, GCP_EUROPE_WEST4 for EU).Your Snowflake account is in a different region or cloud platform (for example, any AWS or Azure region, or another GCP region).
How it worksData is shared directly between the two accounts and is available to Optimove almost immediately.Snowflake replicates the shared data to Optimove's region (cross-region auto-fulfillment), based on a refresh frequency you set.
Where it is set upSQL (worksheet) or SnowsightSnowsight > Provider Studio
Snowflake guideShare secure database objectsCreate a free (or paid off-platform) private listing
❗️

Important A Direct Share only works between accounts in the same region. If your account is in a different region or cloud, the share will not be visible to Optimove. Use a Private Listing instead.

Prerequisites

  • A Snowflake account in which you can create shares or listings. This requires the ACCOUNTADMIN role, or a role with the CREATE SHARE privilege (and CREATE LISTING for a Private Listing).
  • Your data prepared according to the Optimove data schema for your vertical. See Recommended Data Schemas.
  • The objects you share must be tables or secure views. Regular (non-secure) views cannot be shared in Snowflake.

Setup steps

Step 1: Contact Optimove

Let Optimove know that you want to deliver data via Snowflake Data Sharing. Optimove will provide the Snowflake account identifier to add as the consumer of your share or listing.

To check your own account details and region, run the following in a Snowflake worksheet, then compare the region with the table in Choose a sharing method:

SELECT CURRENT_ORGANIZATION_NAME() AS organization_name,
       CURRENT_ACCOUNT_NAME()      AS account_name,
       CURRENT_ACCOUNT()           AS account_locator,
       CURRENT_REGION()            AS region;

Step 2: Prepare the objects to share

Create the tables or secure views that Optimove will read, following your vertical's data schema. Optimove recommends placing them in a dedicated database or schema for Optimove.

  • Each table loaded incrementally must include a LastUpdated (last-modified timestamp) column, so Optimove can load only new or changed records.
  • Transactional data (for example, game or bet activity) should be aggregated to a daily level per customer, as defined in the vertical schema.

Step 3a: Create a Direct Share (same region)

Follow Snowflake's guide: Share secure database objects. Example:

-- 1. Create the share
CREATE SHARE <SHARE_NAME>;

-- 2. Grant access to the database and schema
GRANT USAGE ON DATABASE <DATABASE_NAME> TO SHARE <SHARE_NAME>;
GRANT USAGE ON SCHEMA <DATABASE_NAME>.<SCHEMA_NAME> TO SHARE <SHARE_NAME>;

-- 3. Grant SELECT on each table / secure view
GRANT SELECT ON TABLE <DATABASE_NAME>.<SCHEMA_NAME>.<TABLE_NAME> TO SHARE <SHARE_NAME>;
GRANT SELECT ON VIEW <DATABASE_NAME>.<SCHEMA_NAME>.<SECURE_VIEW_NAME> TO SHARE <SHARE_NAME>;

-- 4. Verify the grants
SHOW GRANTS TO SHARE <SHARE_NAME>;

-- 5. Add Optimove's account as a consumer
ALTER SHARE <SHARE_NAME> ADD ACCOUNTS = <OPTIMOVE_ACCOUNT_IDENTIFIER>;
📘

Tip Run SHOW GRANTS TO SHARE before adding Optimove's account. Once the account is added, the share becomes visible to Optimove.

📘

Note If you share views, you must grant SELECT on each view to the share (for example, GRANT SELECT ON VIEW <DATABASE_NAME>.<SCHEMA_NAME>.<SECURE_VIEW_NAME> TO SHARE <SHARE_NAME>;). Granting access to the database and schema alone does not make the views readable. Only secure views can be shared. If a view references objects in another database, also grant REFERENCE_USAGE on that database to the share.

Step 3b: Create a Private Listing (different region or cloud)

Follow Snowflake's guide: Create a free (or paid off-platform) private listing. In summary:

  1. Sign in to Snowsight and go to Marketplace > Provider Studio.
  2. Select Create Listing > Specified Consumers and give the listing a name.
  3. Add the tables or secure views to share (or select an existing share).
  4. Set Access type to Free.
  5. Under Who can access, add Optimove's account identifier.
  6. Because Optimove's account is in a different region, Snowflake enables auto-fulfillment. Set the refresh frequency so the latest data is replicated before Optimove's daily load (see Set up auto-fulfillment).
  7. Add the required description and select Publish.
📘

Note Cross-region auto-fulfillment replicates your data to another region. This replication may incur additional Snowflake costs on your account. See Snowflake's auto-fulfillment documentation for details.

Step 4: Send the share details to Optimove

Once the share or listing is ready, send the following to Optimove:

DetailExample / description
Sharing methodDirect Share or Private Listing
Your Snowflake account identifierORGNAME.ACCOUNTNAME and account locator (from Step 1)
Your Snowflake region and cloud platformFor example, AWS_US_EAST_1
Share name or listing nameThe exact name of the share or listing created in Step 3
List of shared objectsDatabase, schema, and table/view names, and which Optimove data type each one maps to
Load type per tableIncremental (with the LastUpdated column name) or full
Daily data availability timeThe time (with time zone) by which the previous day's data is complete in the shared objects

Step 5: Optimove connects and validates the data

Optimove connects to your share, validates the data structure and content, and schedules the daily data load. Optimove will update you once the connection is active or if any changes are needed.

Best practices

  • Data timing: Make sure the previous day's data is complete in the shared objects at a consistent time each day. Optimove schedules the daily load with a buffer after this time (Optimove recommends at least 30 minutes).
  • Incremental loads: Large tables (for example, transactional or game activity tables) should be loaded incrementally, based on a reliable LastUpdated column.
  • Keep the share stable: Do not rename, drop, or recreate the share, listing, or shared objects without notifying Optimove in advance, as this will interrupt the daily load.
  • New objects: If you add new tables or views, grant them to the share (or add them to the listing) and let Optimove know.
  • Schema changes: Notify Optimove before adding, removing, or renaming columns. See Attribute Creation and Updates Governance.

Useful Snowflake resources

Questions

For any questions about setting up Snowflake Data Sharing, contact Optimove.


Did this page help you?