Skip to content

Commit

Permalink
Merge pull request #8606 from torossian97/patch-1
Browse files Browse the repository at this point in the history
Updated banner integration code snippet
  • Loading branch information
internetisaiah authored Dec 11, 2024
2 parents 7405430 + c78a70d commit cb69b5b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions _docs/_developer_guide/banner_cards/integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit cb69b5b

Please sign in to comment.