How do I signal web vs in-app inventory in a bid request?

Answer

Include a site object for website inventory or an app object for non-browser application inventory; OpenRTB 2.6 adds a third option, dooh, for digital out-of-home screens. A bid request must not contain more than one of site, app, or dooh. Neither object has strictly required fields, but a site should carry at least an id or page URL and an app at least an id or bundle, since buyers key brand safety and ads.txt or app-ads.txt checks off site.domain and app.bundle. Requests carrying both site and app are a common integration bug and get rejected by many DSPs.

Fields in this answer

FieldTypeSinceStatus in 2.6
site.domainstring2.0Current
app.bundlestring2.0Current

Go deeper

More questions on openrtb basics and the bid request

All 93 questions are listed in the OpenRTB FAQ.