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.init for more details on the method.

rokt.onLoaded(function (rokt) {  rokt.init({    sandbox: true,  });  // Integration steps as per other examples});

Once the sandbox flag is set you should see Rokt's solution executing API calls against https://apps-demo.rokt.com instead of production https://apps.rokt.com ensuring sandboxing works correctly.

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

Was this article helpful?