Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PAAPI: example page and perBuyerSignals bad key + FPD module error #11839

Closed
piotrj-rtbh opened this issue Jun 20, 2024 · 1 comment · Fixed by #11845
Closed

PAAPI: example page and perBuyerSignals bad key + FPD module error #11839

piotrj-rtbh opened this issue Jun 20, 2024 · 1 comment · Fixed by #11845

Comments

@piotrj-rtbh
Copy link
Contributor

Type of issue

Possibly a bug in topLevelPaapi or paapi modules.
Error in FPD module topics.

Description

The runAdAuction log contains componentAuctions with wrong perBuyerSignals key being a domain split by dot (.)
Yet another error found in the console:

ERROR: Error in FPD module topics TypeError: Cannot read properties of undefined (reading 'bidders')

Steps to reproduce

  • Start local server with:
gulp serve-fast --https
  • Run Chrome with flags:

--enable-features=CookieDeprecationFacilitatedTesting:label/treatment_1.2/force_eligible/true --privacy-sandbox-enrollment-overrides=https://localhost:9999

Visit https://localhost:9999/integrationExamples/top-level-paapi/no_adserver.html

In the browser's console find runAdAuction and expand the Object's tree: componentAuctions[0].perBuyerSignals.

Test page

https://localhost:9999/integrationExamples/top-level-paapi/no_adserver.html

Expected results

perBuyerSignals: { "https://ads.optable.co": { prebid: {...}}}

No error from FPD module.

Actual results

perBuyerSignals
FPDmoduleError

Platform details

Prebid.js: current master branch (currently 9.2.0-pre)
Browser: Chrome Version 126.0.6478.63 (Official Build) (64-bit)
OS: Ubuntu 20.04.6 LTS
Node v18.18.2
NPM: 9.8.1

Other information

#11379
@dgirardi

@piotrj-rtbh
Copy link
Contributor Author

@dgirardi The following line in the paapi module makes the key in perBuyerSignals be split by dot:

deepSetValue(config, `perBuyerSignals.${buyer}`, setFPD(config.perBuyerSignals?.[buyer] || {}, request));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging a pull request may close this issue.

1 participant