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

TL-28813: Add Transaction ID #54

Closed
wants to merge 1 commit into from
Closed

Conversation

allison3lift
Copy link

Ticket: https://triplelift.atlassian.net/browse/TL-28813 - conversation screen grab is included in ticket

This PR allows for our bid adapter to pass auction ID to transaction ID. This PR includes 1 test - to check if the data object includes source.tid. We are using the bidRequests[0] similarly to other adapters that pass multiple bid requests.

@@ -48,6 +48,8 @@ export const tripleliftAdapterSpec = {
}
}

utils.deepSetValue(data, 'source.tid', bidRequests[0].auctionId);

Choose a reason for hiding this comment

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

Will need to import this on line 1

import { tryAppendQueryString, logMessage, logError, isEmpty, isStr, isPlainObject, isArray, logWarn } from '../src/utils.js';

Copy link

@nllerandi3lift nllerandi3lift Jun 22, 2022

Choose a reason for hiding this comment

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

We'll actually need to put this inside _buildPostBody because each .transactionId is unique for each adUnit (auctionId is not the correct value to reference).

Screen Shot 2022-06-22 at 3 36 44 PM

So deepSetValue into each imp object.

Screen Shot 2022-06-22 at 3 41 04 PM

@nllerandi3lift nllerandi3lift self-requested a review June 22, 2022 19:38
@allison3lift
Copy link
Author

closing due to new direction from prebid

@patmmccann
Copy link

we're interested in your thoughts on if source.tid should exist (is imp.ext.tid enough), be request[0].transactionId, or be request.auctionId

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

Successfully merging this pull request may close these issues.

3 participants