From c78a70d5a85e8f2a6390828bbfd3a40f5a697489 Mon Sep 17 00:00:00 2001 From: Antoine Torossian <36382519+torossian97@users.noreply.github.com> Date: Tue, 10 Dec 2024 14:26:18 -0800 Subject: [PATCH] Updated banner integration code snippet --- _docs/_developer_guide/banner_cards/integration.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/_docs/_developer_guide/banner_cards/integration.md b/_docs/_developer_guide/banner_cards/integration.md index c2da9fd3c1..4af8774540 100644 --- a/_docs/_developer_guide/banner_cards/integration.md +++ b/_docs/_developer_guide/banner_cards/integration.md @@ -190,6 +190,11 @@ This feature is not currently supported on Roku. ```javascript import * as braze from "@braze/web-sdk"; +braze.initialize("sdk-api-key", { + baseUrl: "sdk-base-url", + allowUserSuppliedJavascript: true, // banners require you to opt-in to user-supplied javascript +}); + braze.subscribeToBannersUpdates((banners) => { // get this placement's banner. If it's `null` the user did not qualify for one.