Skip to main content

Sandbox integration

With a sandbox integration, you can add a configuration flag to test against a sandbox environment. The sandbox environment follows a normal offers, bidding, and matching process against your production configuration. While a sandbox environment is part of the Rokt production environment, it does not charge advertisers or generate referrals. As a result, you can use it for acceptance testing before deploying to production.

The integration follows the same steps as in previous examples, with an additional sandbox flag required in the initialization function.

See Rokt.createLauncher for more details on the method.

const launcher = await createLauncher({  accountId: 'roktAccountId',  sandbox: true,});

Once the sandbox flag is set you should see Rokt's solution executing API calls against instead of production ensuring sandboxing works correctly.

Note: The sandbox flag should only be used in testing environments.

Was this article helpful?