Skip to content

Commit

Permalink
Merge cbfc075 into 25f3376
Browse files Browse the repository at this point in the history
  • Loading branch information
deedeeh authored Nov 18, 2024
2 parents 25f3376 + cbfc075 commit 1ea4b15
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/large-emus-sin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@guardian/commercial': minor
---

Add Keywords parameter to Sonobi prebid
1 change: 1 addition & 0 deletions src/lib/header-bidding/prebid-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export type PrebidSonobiParams = {
dom_id: string;
appNexusTargeting: string;
pageViewId: string;
keywords: string[];
render?: string;
};

Expand Down
3 changes: 3 additions & 0 deletions src/lib/header-bidding/prebid/bid-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,9 @@ const sonobiBidder: (pageTargeting: PageTargeting) => PrebidBidder = (
dom_id: slotId,
appNexusTargeting: buildAppNexusTargeting(pageTargeting),
pageViewId: window.guardian.ophan.pageViewId,
keywords: window.guardian.config.page.keywords
? window.guardian.config.page.keywords.split(',')
: [],
}),
});

Expand Down

0 comments on commit 1ea4b15

Please sign in to comment.