How to integrate

DSP prebid integration

Novatiq enables buyers to access audiences of their choice in real-time, using the network verified Hyper ID to enable addressability.

The Hyper ID is an anonymous, unique and transient ad request ‘label’ that is generated by the buy-side and delivered to the buyer via the RTB bid request.

A DSP integration requires access to the Novatiq Hyper ID and the completion of two integration functions:

1. Access to the Novatiq Hyper ID

The DSP uses Hyper IDs to retrieve audiences for real-time activation. Hyper IDs are located in the bidstream managed by prebid. For more information about prebid see https://docs.prebid.org/

The Hyper ID is located within the EIDS source value under “novatiq.com”.

If needed, more about Extended Identifiers (EIDS) can be found in the IAB’s OpenRTB 2.6 spec.

2. ConsumOR audience retrieval

The Novatiq Fusion ConsumOR delivers the audience codes for each DSP’s matched campaigns in real-time. The audience codes are available in ConsumOR when the DSP receives an Open RTB request.

ConsumOR is cloud-based and makes the audience codes available via a standardised interface. Novatiq will provision a Fusion account, including ConsumOR, and provide the endpoint and credential ID for DSP API queries.

Once the Hyper ID has been received by the DSP advertising platform(s) both it and other user IDs contained within the oRTB request must be extracted and utilised as a query within an API call to the Novatiq ConsumOR for retrieval of audience codes that match active campaigns.

Sample API call code for this function can be found in the Appendix – Section 2 – Making a ConsumOR call

The ConsumOR will return json audience ID responses that the user is part of and that have been requested by the DSP for a campaign, to enable the response to form part of the DSP campaign decisioning.

[Note: if the Hyper ID is not recognised or there are no audience codes matching the Hyper ID, an HTTP 204 status is returned.]

3. Audience usage reporting for billing

To ensure Novatiq bills the DSP, accurately the DSP needs to provide Novatiq with near real-time audience usage reports – i.e. impressions delivered using a Hyper ID audience.

A report may be either CSV or json format and should be delivered to a Novatiq Amazon S3 bucket/input folder from between every 5 mins to every hour. Each report file should include:

  • Filename – identifying the DSP and the date/time range for the report batch
  • Usage report – one line per impression.

Audience usage report fields:

Hyper ID Novatiq Hyper ID associated to the bid request. If no Hyper ID (ID match) then use 1 of the additional identifiers
Timestamp Timestamp associated to the bid request, indicating when this bid request was received and processed, up to the millisecond. The timestamp is in UTC 0 and the format is yyyy-mm-ddTHH:MM:SS.msZ
Exchange/SSP Exchange or supply-side-platform which generated the bid request (optional)
Inventory price Price paid by the DSP for the ad space impression (optional).
The value is a decimal in USD as currency
Data price Blank (Deprecated. Novatiq audience pricing is used)
DSP campaign identifier This is provided by the DSP. This piece of information is used to provide further details when running the billing process and generating detailed invoices in a per campaign basis
Segments Audience (segment) codes used by the DSP to win the bid request. When more than one audience is used these must be enclosed in double quotes and separated by commas.

Note: The audience codes provided *must* only refer to the winning campaign for a delivered impression, and not the audience codes for all matching campaigns as delivered in the ConsumOR query response

IntFlag When data was matched from Hyper ID set to 0
When data was matched from additional IDs set to 2
BidRequestID The BidID and the impression ID for the bid request in the format
<BidID>:<ImpresionID>

Sample WinLog code for this function can be found in the Appendix – Section 3 – sample winlog formats

Novatiq will supply the S3 bucket name and access credentials for reporting when the DSP registers as a partner.

4. Audience creation – Fusion web UI or API

Novatiq Fusion is a web UI for audience creation and campaign activation, including edit, pause, re-start and extension. It can be utilised as a UI interface accessed from within the DSP environment or provisioned as an API into the DSP UI.

If using the Novatiq UI, access is granted by Novatiq provisioning an admin user within the DSP who can then provision additional users to create and manage audiences and campaigns as needed.

If using the Fusion API integration to the DSP platform for audience and campaign management via the DSP interface a rest API is used.
Creating audiences and launching campaigns via the web UI or API, results in campaign specific audience codes being generated and made available in the expanded campaign dashboard.

The 11 digit audience codes appear, in brackets, under the audience name, e.g. “10000000611”. and must be either copied and pasted into the corresponding campaigns in the DSP campaign management platform or will be automatically added if a full API integration is in place.

To understand more about Fusion please email laura.brennan@novatiq.com for a comprehensive demo.

Appendix – sample code for integration functions

Section 1 – Novatiq Hyper ID explainer

The Novatiq Hyper ID is an extended-length version of the universal and industry standard unique identifier, UUID.

For example: 33c3c5e2-70b4-eae8-f259-93c6631eb2ae0379

The Hyper ID is randomly generated by the Novatiq Prebid ID Module for each bid request within the publisher Prebid wrapper.

Section 2 – making a ConsumOR call

The ConsumOR call must be made from the DSP backend. If you are using a non node.js backend please contact Novatiq raj.sidhu@novatiq.com.

  • The Hyper ID must be the one retrieved from the bid request
  • The AltID must be the same and consistent across all sessions for each user
  • The region will be assigned by Novatiq
  • The DSP ID will be assigned by Novatiq

Sample Javascript code

(using the Fetch API and within a function)


async function fetchSegments(region, dataPartnerId, hyperId, altId) {
const url = `https://${region}.consumor.io/segments/v1/${dataPartnerId}/${hyperId}/${altId}?v=2`;
try {
const response = await fetch(url);
if (response.status === 404) {
console.log("No segments found");
} else if (response.status === 200) {
const data = await response.json();
console.log("Segments:", data);
} else {
console.log("Unexpected status code:", response.status);
}
} catch (error) {
console.error("Error fetching segments:", error);
}
}
// Example usage
const region = "";
const dataPartnerId = "";
const hyperId = "";
const altId = "";
fetchSegments(region, dataPartnerId, hyperId, altId);

Novatiq provides a test ConsumOR for integration and debugging purposes accessed here:

https://novademo.consumor.io/segments/v1/novademo/f8b2d5ae-02f8-40fd-b2d3-5e26930bf2149999?v=2

This will return a test audience code.

Section 3 – sample winlog formats

3.1 Sample json winlog format

This is the Novatiq preferred format.

When using the json format, each json formatted record is appended to the current winlog file as a single line (no line breaks within the json).

An example json WinLog:

{ "hyperid": "566844cd-19b8-431c-be57-55363431fe4b6094", "timestamp": "2016-12-02T00:03:23.85061Z", "exchange_ssp": "BidSwitch", "invprice": "0.00023", "dspcampid": "dsp_camp_id_123", "segments": ["10000000001","10000000002", "10000000003"], "intflag": "0", "bidrequestid": "E9811C02F4C1F02649D1E3F68E60DCC4:6-970-342" }

Note: It is recognised that the overall file will not be json syntax compliant, but each row within the file will be.

3.1 Sample CSV winlog format

In CSV format, each audience usage record is a single comma-separated row in the file.

Example:

566844cd-19b8-431c-be57-55363431fe4b6094,"2016-12-02T00:03:23.85061Z“, BidSwitch,0.00023,,dsp_camp_id_123,”10000000001,10000000002,10000000003”, 0,E9811C02F4C1F02649D1E3F68E60DCC4:6-970-342

Close

See Fusion in action

Request a live preview

Join the world’s leading brands, publishers and telcos and discover how Fusion can help you drive more value from your data, improve customer experiences and increase performance across the open web.

Close

By entering your email address, you agree to receive our marketing newsletters in accordance with our Privacy Policy.

Close

FREE report: Digital identity verification for a privacy-first world. A growth strategy for telcos

Telcos are looking for greater revenue streams than their current models provide. Could a smart digital strategy, providing telco-verified ID solutions at scale for publishers and brands, be the answer?

Download your free guide to find out why digital identity could be a lucrative new opportunity.

Download now

We'll use your email to provide you info about Novatiq’s products and services. You can unsubscribe at any time. More information in our Privacy Policy.

Thank you for your submission. Please click below to download your whitepaper.

accordion-arrow-down arrow-downarrow-left-greyarrow-leftarrow-right-greyarrow-rightclosefooter-menu-arrow slider-arrow-right-secondaryslider-arrow-right social_facebooksocial_googleplussocial_instagramsocial_linkedin_altsocial_linkedin_altsocial_pinterestlogo-twitter-glyph-32social_youtube