Skip to content

adQuery Bid Adapter: pass qid to user sync URL#15265

Open
adzida-adquery wants to merge 10 commits into
prebid:masterfrom
adquery:adquery-work-pass-qid-to-sync
Open

adQuery Bid Adapter: pass qid to user sync URL#15265
adzida-adquery wants to merge 10 commits into
prebid:masterfrom
adquery:adquery-work-pass-qid-to-sync

Conversation

@adzida-adquery

Copy link
Copy Markdown
Contributor

Type of change

  • Feature
  • Updated bidder adapter

Description of change

Passes qid (query ID) from the bid server response (body.data.qid) to the user sync URL as a query parameter. This allows adQuery's sync endpoint to identify the user server-side during synchronization.

Additionally, syncs are skipped when no qid is present in any server response, and GDPR Purpose 1 consent is verified before syncing.

@github-actions

Copy link
Copy Markdown

Tread carefully! This PR adds 10 linter errors (possibly disabled through directives):

  • modules/adqueryBidAdapter.js (+10 errors)

@review-assignment-bot review-assignment-bot Bot requested a review from lksharma June 30, 2026 09:49

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 65bed1006b

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

*/
getUserSyncs: (syncOptions, serverResponses, gdprConsent, uspConsent) => {
logMessage('getUserSyncs', syncOptions, serverResponses, gdprConsent, uspConsent);
if (!gdprConsent?.gdprApplies || !hasPurpose1Consent(gdprConsent)) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Allow syncs when GDPR does not apply

When gdprConsent is absent or has gdprApplies: false, this condition returns [] before building the sync URL, so adQuery will not register any user syncs for non-GDPR traffic or setups without the TCF module. The imported hasPurpose1Consent helper already treats non-applicable GDPR as allowed, and the previous code emitted gdpr=0, so this regresses syncing for those environments even when a qid is present.

Useful? React with 👍 / 👎.

@barecheck

barecheck Bot commented Jun 30, 2026

Copy link
Copy Markdown

Barecheck - Code coverage report

Total: 96.55%

Your code coverage diff: 0.00% ▴

Uncovered files and lines
FileLines
modules/adqueryBidAdapter.js49, 167, 221, 223, 234, 240

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.

1 participant