Skip to content

As publisher I would like to pass geo information to prebid server #68

Closed

Description

@jevansnyc

As a partner such as a CMP for consent, or an SSP or DSP who are selling and buying impression opportunities, we need to accurately communicate one or more of the following:

  • Country (required)
  • Region (required)
  • City
  • DMA (metro-code in Fastly)

and potentially other data that are available for geo-targeting or consent requirements.

We currently collect this in common - src - constants.rs and I think this is fine for now, but we must consider that not all edge cloud platforms will have the same geo information available in the request.

For the time being, lets ensure that at least the 3 fields above are passed in appropriate headers as such:

pub const HEADER_X_GEO_CITY: HeaderName = HeaderName::from_static("x-geo-city");
pub const HEADER_X_GEO_COUNTRY: HeaderName = HeaderName::from_static("x-geo-country");
pub const HEADER_X_GEO_METRO_CODE: HeaderName = HeaderName::from_static("x-geo-metro-code");
pub const HEADER_X_GEO_REGION: HeaderName = HeaderName::from_static("x-geo-region");

Pass geo information to prebid within device properties

Please ask questions if this isn't clear.

Activity

  1. added theissue type on Oct 23, 2025
  2. ChristianPavilonis commented on Oct 23, 2025

    @ChristianPavilonis
    Collaborator

    I see that we're already getting geo info (from fastly) in geo.rs (except region).
    When geo::get_dma_code() is called the headers do get set.

    Where do I need to pass the geo info to?
    I see there's a todo comment to add geo info if available in prebid_proxy.rs
    Does google ad manager need it?

    For Didomi are you suggesting to rewrite the script like in the html_processor.rs? or developers just use our headers?

  3. therevoltingx commented on Oct 24, 2025

    @therevoltingx

    BTW, DSPs/SSPs read the go information from within the OpenRTB request. Not sure about Prebid but we should probably format it in a way that they can read.

  4. changed the issue type fromtoon Nov 10, 2025
  5. changed the title [-]Trusted Server should read and pass geo information to CMP and other downstream partners[/-] [+]As publisher I would like to pass geo information to prebid server[/+] on Nov 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions