chromium/third_party/blink/renderer/modules/ad_auction/ad_request_config.idl

// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Information about an ad a given AdRequestConfig might show.
// https://github.com/WICG/privacy-preserving-ads/blob/main/Parakeet.md

enum AdSignals {
  "coarse-geolocation",
  "coarse-ua",
  "targeting",
  "user-ad-interests"
};
dictionary AdProperties {
  DOMString width;
  DOMString height;
  DOMString slot;
  DOMString lang;
  DOMString adtype;
  double bidFloor;
};
dictionary AdTargeting {
  sequence<DOMString> interests;
  GeolocationCoordinates geolocation;
};

dictionary AdRequestConfig {
  required USVString adRequestUrl;
  required (AdProperties or sequence<AdProperties>) adProperties;
  DOMString publisherCode;
  AdTargeting targeting;
  sequence<AdSignals> anonymizedProxiedSignals;
  USVString fallbackSource;
};