Skip to content

Conversation

@ChristianPavilonis
Copy link
Collaborator

@ChristianPavilonis ChristianPavilonis commented Jan 14, 2026

Waiting until #147 is merged.

}));
}

// Parse bids from query parameter if present
Copy link
Collaborator

Choose a reason for hiding this comment

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

🤔 I know this is draft but can we finally move to specific structs.

@aram356 aram356 linked an issue Jan 19, 2026 that may be closed by this pull request
@ChristianPavilonis ChristianPavilonis force-pushed the feature/kargo-integration branch 2 times, most recently from fbae661 to 1f11d06 Compare January 20, 2026 21:51
@ChristianPavilonis ChristianPavilonis changed the base branch from main to fix/proxy-compression-issues January 20, 2026 21:51
@ChristianPavilonis ChristianPavilonis force-pushed the feature/kargo-integration branch 2 times, most recently from 1543ff3 to dac30b3 Compare January 21, 2026 01:28
@ChristianPavilonis ChristianPavilonis force-pushed the feature/kargo-integration branch from dac30b3 to d199f21 Compare January 21, 2026 15:43
@ChristianPavilonis ChristianPavilonis force-pushed the fix/proxy-compression-issues branch from 9de521a to d0b99c1 Compare January 21, 2026 15:43
@ChristianPavilonis ChristianPavilonis marked this pull request as ready for review January 21, 2026 15:43
Copy link
Collaborator

@aram356 aram356 left a comment

Choose a reason for hiding this comment

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

There is some opportunity to improve it.

let mut page_url = format!("https://{}", settings.publisher.domain);

// Append debug query params if configured
if let Some(ref params) = config.debug_query_params {
Copy link
Collaborator

Choose a reason for hiding this comment

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

⛏️ similar on 827 and 280

extract to a function

fn append_query_params(url: &str, params: &str) -> String {
    if params.is_empty() || url.contains(params) {
        return url.to_string();
    }
    if url.contains('?') {
        format!("{}&{}", url, params)
    } else {
        format!("{}?{}", url, params)
    }
}

}

// Add debug flag if enabled
if self.config.debug {
Copy link
Collaborator

Choose a reason for hiding this comment

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

🔧 Please use concrete types

}
}

log::info!("Prebid OpenRTB request: {:#?}", openrtb_json);
Copy link
Collaborator

Choose a reason for hiding this comment

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

❓ Should we be logging the whole request? At least change to debug

}

let body_bytes = response.take_body_bytes();
log::info!("Prebid OpenRTB response: {}", String::from_utf8_lossy(&body_bytes));
Copy link
Collaborator

Choose a reason for hiding this comment

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

❓ Should we log the whole response? At least change to debug

bidder.insert(bidder_name.clone(), Json::Object(serde_json::Map::new()));
}
// Use bidder params from the slot (passed through from the request)
let bidder: std::collections::HashMap<String, Json> = slot
Copy link
Collaborator

Choose a reason for hiding this comment

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

❓ What happens if there no bidders. Should we the settings?

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.

As publisher I want to use Kargo SSP through Prebid server

3 participants