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

Adnuntius Bid Adapter: standardise kv targeting value handling when sent to adserver #11721

Merged
merged 1 commit into from
Jun 9, 2024

Conversation

antosarho
Copy link
Contributor

@antosarho antosarho commented Jun 6, 2024

Type of change

  • Bugfix

Description of change

Standardises how kv targeting data is sent to the adserver.

Kv targeting specified as an object and kvs from rtb information are converted to an array to avoid clashing with kv targeting specified as an array and to allow separate objects with the same key to be sent to the adserver via the array.

Other information

@antosarho antosarho force-pushed the fixKeyValuesMerge branch 6 times, most recently from 433976c to 0504552 Compare June 6, 2024 09:39
@@ -22,6 +22,15 @@ export const misc = {
getUnixTimestamp: function (addDays, asMinutes) {
const multiplication = addDays / (asMinutes ? 1440 : 1);
return Date.now() + (addDays && addDays > 0 ? (1000 * 60 * 60 * 24 * multiplication) : 0);
},
convertObjectToArray: function(obj) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like it should be a utility in utils folder

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK -- I've pushed both functions into the utils.js file and available now for anyone else.

@antosarho antosarho force-pushed the fixKeyValuesMerge branch 3 times, most recently from 2bca149 to 94bb71c Compare June 8, 2024 06:55
@patmmccann patmmccann merged commit 77a96f6 into prebid:master Jun 9, 2024
4 checks passed
@patmmccann patmmccann self-assigned this Jun 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants