import * as $protobuf from "protobufjs"; /** Namespace openrtb. */ export namespace openrtb { /** Properties of a BidRequest. */ interface IBidRequest { /** BidRequest id */ id: string; /** BidRequest imp */ imp?: (openrtb.BidRequest.IImpression[]|null); /** BidRequest site */ site?: (openrtb.BidRequest.ISite|null); /** BidRequest app */ app?: (openrtb.BidRequest.IApp|null); /** BidRequest device */ device?: (openrtb.BidRequest.IDevice|null); /** BidRequest user */ user?: (openrtb.BidRequest.IUser|null); /** * Indicator of test mode in which auctions are not billable, * where 0 = live mode, 1 = test mode. */ test?: (boolean|null); /** BidRequest at */ at?: (number|null); /** BidRequest tmax */ tmax?: (number|null); /** BidRequest wseat */ wseat?: (string[]|null); /** BidRequest allimps */ allimps?: (openrtb.Flag|null); /** BidRequest cur */ cur?: (string[]|null); /** BidRequest bcat */ bcat?: (string[]|null); /** BidRequest badv */ badv?: (string[]|null); /** BidRequest regs */ regs?: (openrtb.BidRequest.IRegulations|null); /** BidRequest source */ source?: (openrtb.BidRequest.ISource|null); /** BidRequest ext */ ext?: (openrtb.IBidRequestExtensions|null); } /** Represents a BidRequest. */ class BidRequest implements IBidRequest { /** * Constructs a new BidRequest. * @param [properties] Properties to set */ constructor(properties?: openrtb.IBidRequest); /** BidRequest id. */ public id: string; /** BidRequest imp. */ public imp: openrtb.BidRequest.IImpression[]; /** BidRequest site. */ public site?: (openrtb.BidRequest.ISite|null); /** BidRequest app. */ public app?: (openrtb.BidRequest.IApp|null); /** BidRequest device. */ public device?: (openrtb.BidRequest.IDevice|null); /** BidRequest user. */ public user?: (openrtb.BidRequest.IUser|null); /** * Indicator of test mode in which auctions are not billable, * where 0 = live mode, 1 = test mode. */ public test: boolean; /** BidRequest at. */ public at: number; /** BidRequest tmax. */ public tmax: number; /** BidRequest wseat. */ public wseat: string[]; /** BidRequest allimps. */ public allimps: openrtb.Flag; /** BidRequest cur. */ public cur: string[]; /** BidRequest bcat. */ public bcat: string[]; /** BidRequest badv. */ public badv: string[]; /** BidRequest regs. */ public regs?: (openrtb.BidRequest.IRegulations|null); /** BidRequest source. */ public source?: (openrtb.BidRequest.ISource|null); /** BidRequest ext. */ public ext?: (openrtb.IBidRequestExtensions|null); /** * Creates a new BidRequest instance using the specified properties. * @param [properties] Properties to set * @returns BidRequest instance */ public static create(properties?: openrtb.IBidRequest): openrtb.BidRequest; /** * Encodes the specified BidRequest message. Does not implicitly {@link openrtb.BidRequest.verify|verify} messages. * @param message BidRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: openrtb.IBidRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified BidRequest message, length delimited. Does not implicitly {@link openrtb.BidRequest.verify|verify} messages. * @param message BidRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: openrtb.IBidRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a BidRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns BidRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): openrtb.BidRequest; /** * Decodes a BidRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns BidRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): openrtb.BidRequest; /** * Verifies a BidRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a BidRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns BidRequest */ public static fromObject(object: { [k: string]: any }): openrtb.BidRequest; /** * Creates a plain object from a BidRequest message. Also converts values to other types if specified. * @param message BidRequest * @param [options] Conversion options * @returns Plain object */ public static toObject(message: openrtb.BidRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this BidRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } namespace BidRequest { /** Properties of a Source. */ interface ISource { /** Source fd */ fd?: (boolean|null); /** Source tid */ tid?: (string|null); /** Source pchain */ pchain?: (string|null); /** Source ext */ ext?: (openrtb.ISourceExtensions|null); } /** Represents a Source. */ class Source implements ISource { /** * Constructs a new Source. * @param [properties] Properties to set */ constructor(properties?: openrtb.BidRequest.ISource); /** Source fd. */ public fd: boolean; /** Source tid. */ public tid: string; /** Source pchain. */ public pchain: string; /** Source ext. */ public ext?: (openrtb.ISourceExtensions|null); /** * Creates a new Source instance using the specified properties. * @param [properties] Properties to set * @returns Source instance */ public static create(properties?: openrtb.BidRequest.ISource): openrtb.BidRequest.Source; /** * Encodes the specified Source message. Does not implicitly {@link openrtb.BidRequest.Source.verify|verify} messages. * @param message Source message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: openrtb.BidRequest.ISource, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Source message, length delimited. Does not implicitly {@link openrtb.BidRequest.Source.verify|verify} messages. * @param message Source message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: openrtb.BidRequest.ISource, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Source message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Source * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): openrtb.BidRequest.Source; /** * Decodes a Source message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Source * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): openrtb.BidRequest.Source; /** * Verifies a Source message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a Source message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Source */ public static fromObject(object: { [k: string]: any }): openrtb.BidRequest.Source; /** * Creates a plain object from a Source message. Also converts values to other types if specified. * @param message Source * @param [options] Conversion options * @returns Plain object */ public static toObject(message: openrtb.BidRequest.Source, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Source to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of an Impression. */ interface IImpression { /** Impression id */ id: string; /** Impression banner */ banner?: (openrtb.BidRequest.Impression.IBanner|null); /** Impression video */ video?: (openrtb.BidRequest.Impression.IVideo|null); /** * A Native object (Section 3.2.5); required if this impression is * offered as a native ad opportunity. */ native?: (openrtb.BidRequest.Impression.INative|null); /** Impression displaymanager */ displaymanager?: (string|null); /** Impression displaymanagerver */ displaymanagerver?: (string|null); /** Impression instl */ instl?: (openrtb.Flag|null); /** Impression tagid */ tagid?: (string|null); /** Impression bidfloor */ bidfloor?: (number|null); /** Impression bidfloorcur */ bidfloorcur?: (string|null); /** Impression iframebuster */ iframebuster?: (string[]|null); /** Impression pmp */ pmp?: (openrtb.BidRequest.Impression.IPMP|null); /** Impression secure */ secure?: (number|null); /** Impression exp */ exp?: (number|null); /** Impression ext */ ext?: (openrtb.IImpressionExtensions|null); } /** Represents an Impression. */ class Impression implements IImpression { /** * Constructs a new Impression. * @param [properties] Properties to set */ constructor(properties?: openrtb.BidRequest.IImpression); /** Impression id. */ public id: string; /** Impression banner. */ public banner?: (openrtb.BidRequest.Impression.IBanner|null); /** Impression video. */ public video?: (openrtb.BidRequest.Impression.IVideo|null); /** * A Native object (Section 3.2.5); required if this impression is * offered as a native ad opportunity. */ public native?: (openrtb.BidRequest.Impression.INative|null); /** Impression displaymanager. */ public displaymanager: string; /** Impression displaymanagerver. */ public displaymanagerver: string; /** Impression instl. */ public instl: openrtb.Flag; /** Impression tagid. */ public tagid: string; /** Impression bidfloor. */ public bidfloor: number; /** Impression bidfloorcur. */ public bidfloorcur: string; /** Impression iframebuster. */ public iframebuster: string[]; /** Impression pmp. */ public pmp?: (openrtb.BidRequest.Impression.IPMP|null); /** Impression secure. */ public secure: number; /** Impression exp. */ public exp: number; /** Impression ext. */ public ext?: (openrtb.IImpressionExtensions|null); /** * Creates a new Impression instance using the specified properties. * @param [properties] Properties to set * @returns Impression instance */ public static create(properties?: openrtb.BidRequest.IImpression): openrtb.BidRequest.Impression; /** * Encodes the specified Impression message. Does not implicitly {@link openrtb.BidRequest.Impression.verify|verify} messages. * @param message Impression message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: openrtb.BidRequest.IImpression, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Impression message, length delimited. Does not implicitly {@link openrtb.BidRequest.Impression.verify|verify} messages. * @param message Impression message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: openrtb.BidRequest.IImpression, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an Impression message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Impression * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): openrtb.BidRequest.Impression; /** * Decodes an Impression message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Impression * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): openrtb.BidRequest.Impression; /** * Verifies an Impression message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates an Impression message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Impression */ public static fromObject(object: { [k: string]: any }): openrtb.BidRequest.Impression; /** * Creates a plain object from an Impression message. Also converts values to other types if specified. * @param message Impression * @param [options] Conversion options * @returns Plain object */ public static toObject(message: openrtb.BidRequest.Impression, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Impression to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } namespace Impression { /** Properties of a Banner. */ interface IBanner { /** Banner w */ w?: (number|null); /** Banner h */ h?: (number|null); /** * Maximum width of the impression in pixels. If included, it indicates that a range * of sizes is allowed with this maximum width and "w" is taken as recommended. * If not included, then "w" should be considered an exact requirement. */ wmax?: (number|null); /** * Maximum height of the impression in pixels. If included, it indicates that a range * of sizes is allowed with this maximum height and "h" is taken as recommended. * If not included, then "h" should be considered an exact requirement. */ hmax?: (number|null); /** * Minimum width of the impression in pixels. If included, it indicates that a range * of sizes is allowed with this minimum width and "w" is taken as recommended. * If not included, then "w" should be considered an exact requirement. */ wmin?: (number|null); /** * Minumum height of the impression in pixels. If included, it indicates * that a range of sizes is allowed with this minimum height and "h" is * taken as recommended. * If not included, then "h" should be considered an exact requirement. */ hmin?: (number|null); /** Banner id */ id?: (string|null); /** Banner pos */ pos?: (openrtb.Enums.BidRequest.Impression.AdPosition|null); /** Banner btype */ btype?: (openrtb.Enums.BidRequest.Impression.Banner.AdType[]|null); /** Banner battr */ battr?: (openrtb.CreativeAttribute[]|null); /** Banner mimes */ mimes?: (string[]|null); /** Banner topframe */ topframe?: (openrtb.Flag|null); /** Banner expdir */ expdir?: (openrtb.Enums.BidRequest.Impression.Banner.ExpandableDirection[]|null); /** Banner api */ api?: (openrtb.Enums.BidRequest.Impression.ApiFramework[]|null); /** Banner ext */ ext?: (openrtb.IBannerExtensions|null); } /** Represents a Banner. */ class Banner implements IBanner { /** * Constructs a new Banner. * @param [properties] Properties to set */ constructor(properties?: openrtb.BidRequest.Impression.IBanner); /** Banner w. */ public w: number; /** Banner h. */ public h: number; /** * Maximum width of the impression in pixels. If included, it indicates that a range * of sizes is allowed with this maximum width and "w" is taken as recommended. * If not included, then "w" should be considered an exact requirement. */ public wmax: number; /** * Maximum height of the impression in pixels. If included, it indicates that a range * of sizes is allowed with this maximum height and "h" is taken as recommended. * If not included, then "h" should be considered an exact requirement. */ public hmax: number; /** * Minimum width of the impression in pixels. If included, it indicates that a range * of sizes is allowed with this minimum width and "w" is taken as recommended. * If not included, then "w" should be considered an exact requirement. */ public wmin: number; /** * Minumum height of the impression in pixels. If included, it indicates * that a range of sizes is allowed with this minimum height and "h" is * taken as recommended. * If not included, then "h" should be considered an exact requirement. */ public hmin: number; /** Banner id. */ public id: string; /** Banner pos. */ public pos: openrtb.Enums.BidRequest.Impression.AdPosition; /** Banner btype. */ public btype: openrtb.Enums.BidRequest.Impression.Banner.AdType[]; /** Banner battr. */ public battr: openrtb.CreativeAttribute[]; /** Banner mimes. */ public mimes: string[]; /** Banner topframe. */ public topframe: openrtb.Flag; /** Banner expdir. */ public expdir: openrtb.Enums.BidRequest.Impression.Banner.ExpandableDirection[]; /** Banner api. */ public api: openrtb.Enums.BidRequest.Impression.ApiFramework[]; /** Banner ext. */ public ext?: (openrtb.IBannerExtensions|null); /** * Creates a new Banner instance using the specified properties. * @param [properties] Properties to set * @returns Banner instance */ public static create(properties?: openrtb.BidRequest.Impression.IBanner): openrtb.BidRequest.Impression.Banner; /** * Encodes the specified Banner message. Does not implicitly {@link openrtb.BidRequest.Impression.Banner.verify|verify} messages. * @param message Banner message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: openrtb.BidRequest.Impression.IBanner, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Banner message, length delimited. Does not implicitly {@link openrtb.BidRequest.Impression.Banner.verify|verify} messages. * @param message Banner message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: openrtb.BidRequest.Impression.IBanner, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Banner message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Banner * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): openrtb.BidRequest.Impression.Banner; /** * Decodes a Banner message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Banner * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): openrtb.BidRequest.Impression.Banner; /** * Verifies a Banner message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a Banner message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Banner */ public static fromObject(object: { [k: string]: any }): openrtb.BidRequest.Impression.Banner; /** * Creates a plain object from a Banner message. Also converts values to other types if specified. * @param message Banner * @param [options] Conversion options * @returns Plain object */ public static toObject(message: openrtb.BidRequest.Impression.Banner, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Banner to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of a Video. */ interface IVideo { /** Video mimes */ mimes?: (string[]|null); /** Video linearity */ linearity?: (openrtb.Enums.BidRequest.Impression.Video.Linearity|null); /** Video minduration */ minduration?: (number|null); /** Video maxduration */ maxduration?: (number|null); /** Video protocols */ protocols?: (openrtb.Enums.BidRequest.Impression.Video.Protocol[]|null); /** Video w */ w?: (number|null); /** Video h */ h?: (number|null); /** Video startdelay */ startdelay?: (number|null); /** Video sequence */ sequence?: (number|null); /** Video battr */ battr?: (openrtb.CreativeAttribute[]|null); /** Video maxextended */ maxextended?: (number|null); /** Video minbitrate */ minbitrate?: (number|null); /** Video maxbitrate */ maxbitrate?: (number|null); /** Video boxingallowed */ boxingallowed?: (openrtb.Flag|null); /** Video playbackmethod */ playbackmethod?: (openrtb.Enums.BidRequest.Impression.Video.PlaybackMethod[]|null); /** Video delivery */ delivery?: (openrtb.Enums.BidRequest.Impression.Video.ContentDelivery[]|null); /** Video pos */ pos?: (openrtb.Enums.BidRequest.Impression.AdPosition|null); /** Video companionad */ companionad?: (openrtb.BidRequest.Impression.IBanner[]|null); /** Video api */ api?: (openrtb.Enums.BidRequest.Impression.ApiFramework[]|null); /** Video companiontype */ companiontype?: (openrtb.Enums.BidRequest.Impression.Video.CompanionType[]|null); /** Video placement */ placement?: (openrtb.Enums.BidRequest.Impression.Video.VideoPlacementType|null); /** Video playbackend */ playbackend?: (openrtb.Enums.BidRequest.Impression.Video.PlaybackCessationMode|null); /** Video ext */ ext?: (openrtb.IVideoExtensions|null); } /** Represents a Video. */ class Video implements IVideo { /** * Constructs a new Video. * @param [properties] Properties to set */ constructor(properties?: openrtb.BidRequest.Impression.IVideo); /** Video mimes. */ public mimes: string[]; /** Video linearity. */ public linearity: openrtb.Enums.BidRequest.Impression.Video.Linearity; /** Video minduration. */ public minduration: number; /** Video maxduration. */ public maxduration: number; /** Video protocols. */ public protocols: openrtb.Enums.BidRequest.Impression.Video.Protocol[]; /** Video w. */ public w: number; /** Video h. */ public h: number; /** Video startdelay. */ public startdelay: number; /** Video sequence. */ public sequence: number; /** Video battr. */ public battr: openrtb.CreativeAttribute[]; /** Video maxextended. */ public maxextended: number; /** Video minbitrate. */ public minbitrate: number; /** Video maxbitrate. */ public maxbitrate: number; /** Video boxingallowed. */ public boxingallowed: openrtb.Flag; /** Video playbackmethod. */ public playbackmethod: openrtb.Enums.BidRequest.Impression.Video.PlaybackMethod[]; /** Video delivery. */ public delivery: openrtb.Enums.BidRequest.Impression.Video.ContentDelivery[]; /** Video pos. */ public pos: openrtb.Enums.BidRequest.Impression.AdPosition; /** Video companionad. */ public companionad: openrtb.BidRequest.Impression.IBanner[]; /** Video api. */ public api: openrtb.Enums.BidRequest.Impression.ApiFramework[]; /** Video companiontype. */ public companiontype: openrtb.Enums.BidRequest.Impression.Video.CompanionType[]; /** Video placement. */ public placement: openrtb.Enums.BidRequest.Impression.Video.VideoPlacementType; /** Video playbackend. */ public playbackend: openrtb.Enums.BidRequest.Impression.Video.PlaybackCessationMode; /** Video ext. */ public ext?: (openrtb.IVideoExtensions|null); /** * Creates a new Video instance using the specified properties. * @param [properties] Properties to set * @returns Video instance */ public static create(properties?: openrtb.BidRequest.Impression.IVideo): openrtb.BidRequest.Impression.Video; /** * Encodes the specified Video message. Does not implicitly {@link openrtb.BidRequest.Impression.Video.verify|verify} messages. * @param message Video message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: openrtb.BidRequest.Impression.IVideo, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Video message, length delimited. Does not implicitly {@link openrtb.BidRequest.Impression.Video.verify|verify} messages. * @param message Video message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: openrtb.BidRequest.Impression.IVideo, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Video message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Video * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): openrtb.BidRequest.Impression.Video; /** * Decodes a Video message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Video * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): openrtb.BidRequest.Impression.Video; /** * Verifies a Video message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a Video message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Video */ public static fromObject(object: { [k: string]: any }): openrtb.BidRequest.Impression.Video; /** * Creates a plain object from a Video message. Also converts values to other types if specified. * @param message Video * @param [options] Conversion options * @returns Plain object */ public static toObject(message: openrtb.BidRequest.Impression.Video, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Video to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of a Native. */ interface INative { /** Request payload complying with the Native Ad Specification. */ request: openrtb.INativeRequest; /** * Version of the Native Ad Specification to which request complies; * highly recommended for efficient parsing. */ ver?: (string|null); /** * List of supported API frameworks for this impression. Refer to List 5.6. * If an API is not explicitly listed, it is assumed not to be supported. */ api?: (openrtb.Enums.BidRequest.Impression.ApiFramework[]|null); /** Blocked creative attributes. Refer to List 5.3. */ battr?: (openrtb.CreativeAttribute[]|null); /** Native ext */ ext?: (openrtb.INativeExtensions|null); } /** * OpenRTB 3.2.5: This object represents a native type impression. * Native ad units are intended to blend seamlessly into the surrounding content * (e.g., a sponsored Twitter or Facebook post). As such, the response must be * well-structured to afford the publisher fine-grained control over rendering. * * The Native Subcommittee has developed a companion specification to OpenRTB * called the Native Ad Specification. It defines the request parameters and response markup * structure of native ad units. This object provides the means of transporting request * parameters as an opaque string so that the specific parameters can evolve separately * under the auspices of the Native Ad Specification. Similarly, the ad markup served * will be structured according to that specification. * * The presence of a Native as a subordinate of the Imp object indicates that this * impression is offered as a native type impression. At the publisher's discretion, * that same impression may also be offered as banner and/or video by also including as * Imp subordinates the Banner and/or Video objects, respectively. * However, any given bid for the impression must conform to one of the offered types. */ class Native implements INative { /** * Constructs a new Native. * @param [properties] Properties to set */ constructor(properties?: openrtb.BidRequest.Impression.INative); /** Request payload complying with the Native Ad Specification. */ public request: openrtb.INativeRequest; /** * Version of the Native Ad Specification to which request complies; * highly recommended for efficient parsing. */ public ver: string; /** * List of supported API frameworks for this impression. Refer to List 5.6. * If an API is not explicitly listed, it is assumed not to be supported. */ public api: openrtb.Enums.BidRequest.Impression.ApiFramework[]; /** Blocked creative attributes. Refer to List 5.3. */ public battr: openrtb.CreativeAttribute[]; /** Native ext. */ public ext?: (openrtb.INativeExtensions|null); /** * Creates a new Native instance using the specified properties. * @param [properties] Properties to set * @returns Native instance */ public static create(properties?: openrtb.BidRequest.Impression.INative): openrtb.BidRequest.Impression.Native; /** * Encodes the specified Native message. Does not implicitly {@link openrtb.BidRequest.Impression.Native.verify|verify} messages. * @param message Native message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: openrtb.BidRequest.Impression.INative, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Native message, length delimited. Does not implicitly {@link openrtb.BidRequest.Impression.Native.verify|verify} messages. * @param message Native message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: openrtb.BidRequest.Impression.INative, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Native message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Native * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): openrtb.BidRequest.Impression.Native; /** * Decodes a Native message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Native * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): openrtb.BidRequest.Impression.Native; /** * Verifies a Native message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a Native message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Native */ public static fromObject(object: { [k: string]: any }): openrtb.BidRequest.Impression.Native; /** * Creates a plain object from a Native message. Also converts values to other types if specified. * @param message Native * @param [options] Conversion options * @returns Plain object */ public static toObject(message: openrtb.BidRequest.Impression.Native, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Native to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of a PMP. */ interface IPMP { /** PMP private_auction */ private_auction?: (openrtb.Flag|null); /** PMP deals */ deals?: (openrtb.BidRequest.Impression.PMP.IDirectDeal[]|null); /** PMP ext */ ext?: (openrtb.IPMPExtensions|null); } /** Represents a PMP. */ class PMP implements IPMP { /** * Constructs a new PMP. * @param [properties] Properties to set */ constructor(properties?: openrtb.BidRequest.Impression.IPMP); /** PMP private_auction. */ public private_auction: openrtb.Flag; /** PMP deals. */ public deals: openrtb.BidRequest.Impression.PMP.IDirectDeal[]; /** PMP ext. */ public ext?: (openrtb.IPMPExtensions|null); /** * Creates a new PMP instance using the specified properties. * @param [properties] Properties to set * @returns PMP instance */ public static create(properties?: openrtb.BidRequest.Impression.IPMP): openrtb.BidRequest.Impression.PMP; /** * Encodes the specified PMP message. Does not implicitly {@link openrtb.BidRequest.Impression.PMP.verify|verify} messages. * @param message PMP message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: openrtb.BidRequest.Impression.IPMP, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified PMP message, length delimited. Does not implicitly {@link openrtb.BidRequest.Impression.PMP.verify|verify} messages. * @param message PMP message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: openrtb.BidRequest.Impression.IPMP, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a PMP message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns PMP * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): openrtb.BidRequest.Impression.PMP; /** * Decodes a PMP message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns PMP * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): openrtb.BidRequest.Impression.PMP; /** * Verifies a PMP message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a PMP message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns PMP */ public static fromObject(object: { [k: string]: any }): openrtb.BidRequest.Impression.PMP; /** * Creates a plain object from a PMP message. Also converts values to other types if specified. * @param message PMP * @param [options] Conversion options * @returns Plain object */ public static toObject(message: openrtb.BidRequest.Impression.PMP, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this PMP to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } namespace PMP { /** Properties of a DirectDeal. */ interface IDirectDeal { /** DirectDeal id */ id: string; /** DirectDeal bidfloor */ bidfloor?: (number|null); /** DirectDeal bidfloorcur */ bidfloorcur?: (string|null); /** DirectDeal wseat */ wseat?: (string[]|null); /** DirectDeal wadomain */ wadomain?: (string[]|null); /** DirectDeal at */ at?: (number|null); /** DirectDeal ogury_bidfloor */ ogury_bidfloor?: (number|null); /** DirectDeal ext */ ext?: (openrtb.IDirectDealExtensions|null); } /** Represents a DirectDeal. */ class DirectDeal implements IDirectDeal { /** * Constructs a new DirectDeal. * @param [properties] Properties to set */ constructor(properties?: openrtb.BidRequest.Impression.PMP.IDirectDeal); /** DirectDeal id. */ public id: string; /** DirectDeal bidfloor. */ public bidfloor: number; /** DirectDeal bidfloorcur. */ public bidfloorcur: string; /** DirectDeal wseat. */ public wseat: string[]; /** DirectDeal wadomain. */ public wadomain: string[]; /** DirectDeal at. */ public at: number; /** DirectDeal ogury_bidfloor. */ public ogury_bidfloor: number; /** DirectDeal ext. */ public ext?: (openrtb.IDirectDealExtensions|null); /** * Creates a new DirectDeal instance using the specified properties. * @param [properties] Properties to set * @returns DirectDeal instance */ public static create(properties?: openrtb.BidRequest.Impression.PMP.IDirectDeal): openrtb.BidRequest.Impression.PMP.DirectDeal; /** * Encodes the specified DirectDeal message. Does not implicitly {@link openrtb.BidRequest.Impression.PMP.DirectDeal.verify|verify} messages. * @param message DirectDeal message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: openrtb.BidRequest.Impression.PMP.IDirectDeal, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified DirectDeal message, length delimited. Does not implicitly {@link openrtb.BidRequest.Impression.PMP.DirectDeal.verify|verify} messages. * @param message DirectDeal message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: openrtb.BidRequest.Impression.PMP.IDirectDeal, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a DirectDeal message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns DirectDeal * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): openrtb.BidRequest.Impression.PMP.DirectDeal; /** * Decodes a DirectDeal message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns DirectDeal * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): openrtb.BidRequest.Impression.PMP.DirectDeal; /** * Verifies a DirectDeal message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a DirectDeal message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns DirectDeal */ public static fromObject(object: { [k: string]: any }): openrtb.BidRequest.Impression.PMP.DirectDeal; /** * Creates a plain object from a DirectDeal message. Also converts values to other types if specified. * @param message DirectDeal * @param [options] Conversion options * @returns Plain object */ public static toObject(message: openrtb.BidRequest.Impression.PMP.DirectDeal, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this DirectDeal to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } } } /** Properties of a Site. */ interface ISite { /** Site id */ id?: (string|null); /** Site name */ name?: (string|null); /** Site domain */ domain?: (string|null); /** Site cat */ cat?: (string[]|null); /** Site sectioncat */ sectioncat?: (string[]|null); /** Site pagecat */ pagecat?: (string[]|null); /** Site page */ page?: (string|null); /** Site privacypolicy */ privacypolicy?: (openrtb.Flag|null); /** Site ref */ ref?: (string|null); /** Site search */ search?: (string|null); /** Site mobile */ mobile?: (boolean|null); /** Site publisher */ publisher?: (openrtb.BidRequest.IPublisher|null); /** Site content */ content?: (openrtb.BidRequest.IContent|null); /** Site keywords */ keywords?: (string|null); /** Site ext */ ext?: (openrtb.ISiteExtensions|null); } /** Represents a Site. */ class Site implements ISite { /** * Constructs a new Site. * @param [properties] Properties to set */ constructor(properties?: openrtb.BidRequest.ISite); /** Site id. */ public id: string; /** Site name. */ public name: string; /** Site domain. */ public domain: string; /** Site cat. */ public cat: string[]; /** Site sectioncat. */ public sectioncat: string[]; /** Site pagecat. */ public pagecat: string[]; /** Site page. */ public page: string; /** Site privacypolicy. */ public privacypolicy: openrtb.Flag; /** Site ref. */ public ref: string; /** Site search. */ public search: string; /** Site mobile. */ public mobile: boolean; /** Site publisher. */ public publisher?: (openrtb.BidRequest.IPublisher|null); /** Site content. */ public content?: (openrtb.BidRequest.IContent|null); /** Site keywords. */ public keywords: string; /** Site ext. */ public ext?: (openrtb.ISiteExtensions|null); /** * Creates a new Site instance using the specified properties. * @param [properties] Properties to set * @returns Site instance */ public static create(properties?: openrtb.BidRequest.ISite): openrtb.BidRequest.Site; /** * Encodes the specified Site message. Does not implicitly {@link openrtb.BidRequest.Site.verify|verify} messages. * @param message Site message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: openrtb.BidRequest.ISite, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Site message, length delimited. Does not implicitly {@link openrtb.BidRequest.Site.verify|verify} messages. * @param message Site message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: openrtb.BidRequest.ISite, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Site message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Site * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): openrtb.BidRequest.Site; /** * Decodes a Site message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Site * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): openrtb.BidRequest.Site; /** * Verifies a Site message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a Site message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Site */ public static fromObject(object: { [k: string]: any }): openrtb.BidRequest.Site; /** * Creates a plain object from a Site message. Also converts values to other types if specified. * @param message Site * @param [options] Conversion options * @returns Plain object */ public static toObject(message: openrtb.BidRequest.Site, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Site to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of an App. */ interface IApp { /** App id */ id?: (string|null); /** App name */ name?: (string|null); /** App domain */ domain?: (string|null); /** App cat */ cat?: (string[]|null); /** App sectioncat */ sectioncat?: (string[]|null); /** App pagecat */ pagecat?: (string[]|null); /** App ver */ ver?: (string|null); /** App bundle */ bundle?: (string|null); /** App privacypolicy */ privacypolicy?: (openrtb.Flag|null); /** App paid */ paid?: (openrtb.Flag|null); /** App publisher */ publisher?: (openrtb.BidRequest.IPublisher|null); /** App content */ content?: (openrtb.BidRequest.IContent|null); /** App keywords */ keywords?: (string|null); /** App storeurl */ storeurl?: (string|null); /** App ext */ ext?: (openrtb.IAppExtensions|null); } /** Represents an App. */ class App implements IApp { /** * Constructs a new App. * @param [properties] Properties to set */ constructor(properties?: openrtb.BidRequest.IApp); /** App id. */ public id: string; /** App name. */ public name: string; /** App domain. */ public domain: string; /** App cat. */ public cat: string[]; /** App sectioncat. */ public sectioncat: string[]; /** App pagecat. */ public pagecat: string[]; /** App ver. */ public ver: string; /** App bundle. */ public bundle: string; /** App privacypolicy. */ public privacypolicy: openrtb.Flag; /** App paid. */ public paid: openrtb.Flag; /** App publisher. */ public publisher?: (openrtb.BidRequest.IPublisher|null); /** App content. */ public content?: (openrtb.BidRequest.IContent|null); /** App keywords. */ public keywords: string; /** App storeurl. */ public storeurl: string; /** App ext. */ public ext?: (openrtb.IAppExtensions|null); /** * Creates a new App instance using the specified properties. * @param [properties] Properties to set * @returns App instance */ public static create(properties?: openrtb.BidRequest.IApp): openrtb.BidRequest.App; /** * Encodes the specified App message. Does not implicitly {@link openrtb.BidRequest.App.verify|verify} messages. * @param message App message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: openrtb.BidRequest.IApp, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified App message, length delimited. Does not implicitly {@link openrtb.BidRequest.App.verify|verify} messages. * @param message App message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: openrtb.BidRequest.IApp, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an App message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns App * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): openrtb.BidRequest.App; /** * Decodes an App message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns App * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): openrtb.BidRequest.App; /** * Verifies an App message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates an App message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns App */ public static fromObject(object: { [k: string]: any }): openrtb.BidRequest.App; /** * Creates a plain object from an App message. Also converts values to other types if specified. * @param message App * @param [options] Conversion options * @returns Plain object */ public static toObject(message: openrtb.BidRequest.App, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this App to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of a Content. */ interface IContent { /** Content id */ id?: (string|null); /** Content episode */ episode?: (number|null); /** Content title */ title?: (string|null); /** Content series */ series?: (string|null); /** Content season */ season?: (string|null); /** Content url */ url?: (string|null); /** Content cat */ cat?: (string[]|null); /** Content videoquality */ videoquality?: (openrtb.Enums.BidRequest.Content.VideoQuality|null); /** Content keywords */ keywords?: (string|null); /** Content contentrating */ contentrating?: (string|null); /** Content userrating */ userrating?: (string|null); /** Content context */ context?: (openrtb.Enums.BidRequest.Content.Context|null); /** Content livestream */ livestream?: (openrtb.Flag|null); /** Content sourcerelationship */ sourcerelationship?: (openrtb.Enums.BidRequest.Content.SourceRelationship|null); /** Content producer */ producer?: (openrtb.BidRequest.IProducer|null); /** Content len */ len?: (number|null); /** Content qagmediarating */ qagmediarating?: (openrtb.Enums.BidRequest.Content.QAGMediaRating|null); /** Content embeddable */ embeddable?: (openrtb.Flag|null); /** Content language */ language?: (string|null); /** Content ext */ ext?: (openrtb.IContentExtensions|null); } /** Represents a Content. */ class Content implements IContent { /** * Constructs a new Content. * @param [properties] Properties to set */ constructor(properties?: openrtb.BidRequest.IContent); /** Content id. */ public id: string; /** Content episode. */ public episode: number; /** Content title. */ public title: string; /** Content series. */ public series: string; /** Content season. */ public season: string; /** Content url. */ public url: string; /** Content cat. */ public cat: string[]; /** Content videoquality. */ public videoquality: openrtb.Enums.BidRequest.Content.VideoQuality; /** Content keywords. */ public keywords: string; /** Content contentrating. */ public contentrating: string; /** Content userrating. */ public userrating: string; /** Content context. */ public context: openrtb.Enums.BidRequest.Content.Context; /** Content livestream. */ public livestream: openrtb.Flag; /** Content sourcerelationship. */ public sourcerelationship: openrtb.Enums.BidRequest.Content.SourceRelationship; /** Content producer. */ public producer?: (openrtb.BidRequest.IProducer|null); /** Content len. */ public len: number; /** Content qagmediarating. */ public qagmediarating: openrtb.Enums.BidRequest.Content.QAGMediaRating; /** Content embeddable. */ public embeddable: openrtb.Flag; /** Content language. */ public language: string; /** Content ext. */ public ext?: (openrtb.IContentExtensions|null); /** * Creates a new Content instance using the specified properties. * @param [properties] Properties to set * @returns Content instance */ public static create(properties?: openrtb.BidRequest.IContent): openrtb.BidRequest.Content; /** * Encodes the specified Content message. Does not implicitly {@link openrtb.BidRequest.Content.verify|verify} messages. * @param message Content message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: openrtb.BidRequest.IContent, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Content message, length delimited. Does not implicitly {@link openrtb.BidRequest.Content.verify|verify} messages. * @param message Content message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: openrtb.BidRequest.IContent, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Content message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Content * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): openrtb.BidRequest.Content; /** * Decodes a Content message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Content * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): openrtb.BidRequest.Content; /** * Verifies a Content message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a Content message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Content */ public static fromObject(object: { [k: string]: any }): openrtb.BidRequest.Content; /** * Creates a plain object from a Content message. Also converts values to other types if specified. * @param message Content * @param [options] Conversion options * @returns Plain object */ public static toObject(message: openrtb.BidRequest.Content, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Content to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of a Device. */ interface IDevice { /** Device dnt */ dnt?: (openrtb.Flag|null); /** Device ua */ ua?: (string|null); /** Device ip */ ip?: (string|null); /** Device geo */ geo?: (openrtb.BidRequest.IGeo|null); /** Device didsha1 */ didsha1?: (string|null); /** Device didmd5 */ didmd5?: (string|null); /** Device dpidsha1 */ dpidsha1?: (string|null); /** Device dpidmd5 */ dpidmd5?: (string|null); /** Device ipv6 */ ipv6?: (string|null); /** Device carrier */ carrier?: (string|null); /** Device language */ language?: (string|null); /** Device make */ make?: (string|null); /** Device model */ model?: (string|null); /** Device os */ os?: (string|null); /** Device osv */ osv?: (string|null); /** Device js */ js?: (openrtb.Flag|null); /** Device connectiontype */ connectiontype?: (openrtb.Enums.BidRequest.Device.ConnectionType|null); /** Device devicetype */ devicetype?: (openrtb.Enums.BidRequest.Device.DeviceType|null); /** Device flashver */ flashver?: (string|null); /** Device lmt */ lmt?: (boolean|null); /** Device hwv */ hwv?: (string|null); /** Device w */ w?: (number|null); /** Device h */ h?: (number|null); /** Device ppi */ ppi?: (number|null); /** Device pxratio */ pxratio?: (number|null); /** Device ifa */ ifa?: (string|null); /** Device macsha1 */ macsha1?: (string|null); /** MAC address of the device; hashed via MD5. */ macmd5?: (string|null); /** Device mccmnc */ mccmnc?: (string|null); /** Device ext */ ext?: (openrtb.IDeviceExtensions|null); } /** Represents a Device. */ class Device implements IDevice { /** * Constructs a new Device. * @param [properties] Properties to set */ constructor(properties?: openrtb.BidRequest.IDevice); /** Device dnt. */ public dnt: openrtb.Flag; /** Device ua. */ public ua: string; /** Device ip. */ public ip: string; /** Device geo. */ public geo?: (openrtb.BidRequest.IGeo|null); /** Device didsha1. */ public didsha1: string; /** Device didmd5. */ public didmd5: string; /** Device dpidsha1. */ public dpidsha1: string; /** Device dpidmd5. */ public dpidmd5: string; /** Device ipv6. */ public ipv6: string; /** Device carrier. */ public carrier: string; /** Device language. */ public language: string; /** Device make. */ public make: string; /** Device model. */ public model: string; /** Device os. */ public os: string; /** Device osv. */ public osv: string; /** Device js. */ public js: openrtb.Flag; /** Device connectiontype. */ public connectiontype: openrtb.Enums.BidRequest.Device.ConnectionType; /** Device devicetype. */ public devicetype: openrtb.Enums.BidRequest.Device.DeviceType; /** Device flashver. */ public flashver: string; /** Device lmt. */ public lmt: boolean; /** Device hwv. */ public hwv: string; /** Device w. */ public w: number; /** Device h. */ public h: number; /** Device ppi. */ public ppi: number; /** Device pxratio. */ public pxratio: number; /** Device ifa. */ public ifa: string; /** Device macsha1. */ public macsha1: string; /** MAC address of the device; hashed via MD5. */ public macmd5: string; /** Device mccmnc. */ public mccmnc: string; /** Device ext. */ public ext?: (openrtb.IDeviceExtensions|null); /** * Creates a new Device instance using the specified properties. * @param [properties] Properties to set * @returns Device instance */ public static create(properties?: openrtb.BidRequest.IDevice): openrtb.BidRequest.Device; /** * Encodes the specified Device message. Does not implicitly {@link openrtb.BidRequest.Device.verify|verify} messages. * @param message Device message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: openrtb.BidRequest.IDevice, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Device message, length delimited. Does not implicitly {@link openrtb.BidRequest.Device.verify|verify} messages. * @param message Device message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: openrtb.BidRequest.IDevice, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Device message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Device * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): openrtb.BidRequest.Device; /** * Decodes a Device message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Device * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): openrtb.BidRequest.Device; /** * Verifies a Device message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a Device message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Device */ public static fromObject(object: { [k: string]: any }): openrtb.BidRequest.Device; /** * Creates a plain object from a Device message. Also converts values to other types if specified. * @param message Device * @param [options] Conversion options * @returns Plain object */ public static toObject(message: openrtb.BidRequest.Device, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Device to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of a User. */ interface IUser { /** User id */ id?: (string|null); /** User buyeruid */ buyeruid?: (string|null); /** User yob */ yob?: (number|null); /** User gender */ gender?: (string|null); /** User keywords */ keywords?: (string|null); /** User customdata */ customdata?: (string|null); /** User geo */ geo?: (openrtb.BidRequest.IGeo|null); /** User data */ data?: (openrtb.BidRequest.IData[]|null); /** User ext */ ext?: (openrtb.IUserExtensions|null); } /** Represents a User. */ class User implements IUser { /** * Constructs a new User. * @param [properties] Properties to set */ constructor(properties?: openrtb.BidRequest.IUser); /** User id. */ public id: string; /** User buyeruid. */ public buyeruid: string; /** User yob. */ public yob: number; /** User gender. */ public gender: string; /** User keywords. */ public keywords: string; /** User customdata. */ public customdata: string; /** User geo. */ public geo?: (openrtb.BidRequest.IGeo|null); /** User data. */ public data: openrtb.BidRequest.IData[]; /** User ext. */ public ext?: (openrtb.IUserExtensions|null); /** * Creates a new User instance using the specified properties. * @param [properties] Properties to set * @returns User instance */ public static create(properties?: openrtb.BidRequest.IUser): openrtb.BidRequest.User; /** * Encodes the specified User message. Does not implicitly {@link openrtb.BidRequest.User.verify|verify} messages. * @param message User message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: openrtb.BidRequest.IUser, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified User message, length delimited. Does not implicitly {@link openrtb.BidRequest.User.verify|verify} messages. * @param message User message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: openrtb.BidRequest.IUser, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a User message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns User * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): openrtb.BidRequest.User; /** * Decodes a User message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns User * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): openrtb.BidRequest.User; /** * Verifies a User message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a User message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns User */ public static fromObject(object: { [k: string]: any }): openrtb.BidRequest.User; /** * Creates a plain object from a User message. Also converts values to other types if specified. * @param message User * @param [options] Conversion options * @returns Plain object */ public static toObject(message: openrtb.BidRequest.User, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this User to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of a Publisher. */ interface IPublisher { /** Publisher id */ id?: (string|null); /** Publisher name */ name?: (string|null); /** Publisher cat */ cat?: (string[]|null); /** Publisher domain */ domain?: (string|null); /** Publisher ext */ ext?: (openrtb.IPublisherExtensions|null); } /** Represents a Publisher. */ class Publisher implements IPublisher { /** * Constructs a new Publisher. * @param [properties] Properties to set */ constructor(properties?: openrtb.BidRequest.IPublisher); /** Publisher id. */ public id: string; /** Publisher name. */ public name: string; /** Publisher cat. */ public cat: string[]; /** Publisher domain. */ public domain: string; /** Publisher ext. */ public ext?: (openrtb.IPublisherExtensions|null); /** * Creates a new Publisher instance using the specified properties. * @param [properties] Properties to set * @returns Publisher instance */ public static create(properties?: openrtb.BidRequest.IPublisher): openrtb.BidRequest.Publisher; /** * Encodes the specified Publisher message. Does not implicitly {@link openrtb.BidRequest.Publisher.verify|verify} messages. * @param message Publisher message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: openrtb.BidRequest.IPublisher, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Publisher message, length delimited. Does not implicitly {@link openrtb.BidRequest.Publisher.verify|verify} messages. * @param message Publisher message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: openrtb.BidRequest.IPublisher, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Publisher message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Publisher * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): openrtb.BidRequest.Publisher; /** * Decodes a Publisher message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Publisher * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): openrtb.BidRequest.Publisher; /** * Verifies a Publisher message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a Publisher message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Publisher */ public static fromObject(object: { [k: string]: any }): openrtb.BidRequest.Publisher; /** * Creates a plain object from a Publisher message. Also converts values to other types if specified. * @param message Publisher * @param [options] Conversion options * @returns Plain object */ public static toObject(message: openrtb.BidRequest.Publisher, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Publisher to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of a Producer. */ interface IProducer { /** Producer id */ id?: (string|null); /** Producer name */ name?: (string|null); /** Producer cat */ cat?: (string[]|null); /** Producer domain */ domain?: (string|null); /** Producer ext */ ext?: (openrtb.IProducerExtensions|null); } /** Represents a Producer. */ class Producer implements IProducer { /** * Constructs a new Producer. * @param [properties] Properties to set */ constructor(properties?: openrtb.BidRequest.IProducer); /** Producer id. */ public id: string; /** Producer name. */ public name: string; /** Producer cat. */ public cat: string[]; /** Producer domain. */ public domain: string; /** Producer ext. */ public ext?: (openrtb.IProducerExtensions|null); /** * Creates a new Producer instance using the specified properties. * @param [properties] Properties to set * @returns Producer instance */ public static create(properties?: openrtb.BidRequest.IProducer): openrtb.BidRequest.Producer; /** * Encodes the specified Producer message. Does not implicitly {@link openrtb.BidRequest.Producer.verify|verify} messages. * @param message Producer message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: openrtb.BidRequest.IProducer, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Producer message, length delimited. Does not implicitly {@link openrtb.BidRequest.Producer.verify|verify} messages. * @param message Producer message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: openrtb.BidRequest.IProducer, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Producer message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Producer * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): openrtb.BidRequest.Producer; /** * Decodes a Producer message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Producer * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): openrtb.BidRequest.Producer; /** * Verifies a Producer message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a Producer message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Producer */ public static fromObject(object: { [k: string]: any }): openrtb.BidRequest.Producer; /** * Creates a plain object from a Producer message. Also converts values to other types if specified. * @param message Producer * @param [options] Conversion options * @returns Plain object */ public static toObject(message: openrtb.BidRequest.Producer, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Producer to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of a Geo. */ interface IGeo { /** Geo lat */ lat?: (number|null); /** Geo lon */ lon?: (number|null); /** Geo country */ country?: (string|null); /** Geo region */ region?: (string|null); /** Geo regionfips104 */ regionfips104?: (string|null); /** Geo metro */ metro?: (string|null); /** Geo city */ city?: (string|null); /** Geo zip */ zip?: (string|null); /** Geo type */ type?: (openrtb.Enums.BidRequest.Geo.LocationType|null); /** Geo utcoffset */ utcoffset?: (number|null); /** Geo ext */ ext?: (openrtb.IGeoExtensions|null); } /** Represents a Geo. */ class Geo implements IGeo { /** * Constructs a new Geo. * @param [properties] Properties to set */ constructor(properties?: openrtb.BidRequest.IGeo); /** Geo lat. */ public lat: number; /** Geo lon. */ public lon: number; /** Geo country. */ public country: string; /** Geo region. */ public region: string; /** Geo regionfips104. */ public regionfips104: string; /** Geo metro. */ public metro: string; /** Geo city. */ public city: string; /** Geo zip. */ public zip: string; /** Geo type. */ public type: openrtb.Enums.BidRequest.Geo.LocationType; /** Geo utcoffset. */ public utcoffset: number; /** Geo ext. */ public ext?: (openrtb.IGeoExtensions|null); /** * Creates a new Geo instance using the specified properties. * @param [properties] Properties to set * @returns Geo instance */ public static create(properties?: openrtb.BidRequest.IGeo): openrtb.BidRequest.Geo; /** * Encodes the specified Geo message. Does not implicitly {@link openrtb.BidRequest.Geo.verify|verify} messages. * @param message Geo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: openrtb.BidRequest.IGeo, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Geo message, length delimited. Does not implicitly {@link openrtb.BidRequest.Geo.verify|verify} messages. * @param message Geo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: openrtb.BidRequest.IGeo, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Geo message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Geo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): openrtb.BidRequest.Geo; /** * Decodes a Geo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Geo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): openrtb.BidRequest.Geo; /** * Verifies a Geo message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a Geo message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Geo */ public static fromObject(object: { [k: string]: any }): openrtb.BidRequest.Geo; /** * Creates a plain object from a Geo message. Also converts values to other types if specified. * @param message Geo * @param [options] Conversion options * @returns Plain object */ public static toObject(message: openrtb.BidRequest.Geo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Geo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of a Data. */ interface IData { /** Data id */ id?: (string|null); /** Data name */ name?: (string|null); /** Data segment */ segment?: (openrtb.BidRequest.Data.ISegment[]|null); /** Data ext */ ext?: (openrtb.IDataExtensions|null); } /** Represents a Data. */ class Data implements IData { /** * Constructs a new Data. * @param [properties] Properties to set */ constructor(properties?: openrtb.BidRequest.IData); /** Data id. */ public id: string; /** Data name. */ public name: string; /** Data segment. */ public segment: openrtb.BidRequest.Data.ISegment[]; /** Data ext. */ public ext?: (openrtb.IDataExtensions|null); /** * Creates a new Data instance using the specified properties. * @param [properties] Properties to set * @returns Data instance */ public static create(properties?: openrtb.BidRequest.IData): openrtb.BidRequest.Data; /** * Encodes the specified Data message. Does not implicitly {@link openrtb.BidRequest.Data.verify|verify} messages. * @param message Data message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: openrtb.BidRequest.IData, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Data message, length delimited. Does not implicitly {@link openrtb.BidRequest.Data.verify|verify} messages. * @param message Data message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: openrtb.BidRequest.IData, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Data message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Data * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): openrtb.BidRequest.Data; /** * Decodes a Data message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Data * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): openrtb.BidRequest.Data; /** * Verifies a Data message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a Data message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Data */ public static fromObject(object: { [k: string]: any }): openrtb.BidRequest.Data; /** * Creates a plain object from a Data message. Also converts values to other types if specified. * @param message Data * @param [options] Conversion options * @returns Plain object */ public static toObject(message: openrtb.BidRequest.Data, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Data to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } namespace Data { /** Properties of a Segment. */ interface ISegment { /** Segment id */ id?: (string|null); /** Segment name */ name?: (string|null); /** Segment value */ value?: (string|null); /** Segment ext */ ext?: (openrtb.ISegmentExtensions|null); } /** Represents a Segment. */ class Segment implements ISegment { /** * Constructs a new Segment. * @param [properties] Properties to set */ constructor(properties?: openrtb.BidRequest.Data.ISegment); /** Segment id. */ public id: string; /** Segment name. */ public name: string; /** Segment value. */ public value: string; /** Segment ext. */ public ext?: (openrtb.ISegmentExtensions|null); /** * Creates a new Segment instance using the specified properties. * @param [properties] Properties to set * @returns Segment instance */ public static create(properties?: openrtb.BidRequest.Data.ISegment): openrtb.BidRequest.Data.Segment; /** * Encodes the specified Segment message. Does not implicitly {@link openrtb.BidRequest.Data.Segment.verify|verify} messages. * @param message Segment message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: openrtb.BidRequest.Data.ISegment, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Segment message, length delimited. Does not implicitly {@link openrtb.BidRequest.Data.Segment.verify|verify} messages. * @param message Segment message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: openrtb.BidRequest.Data.ISegment, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Segment message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Segment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): openrtb.BidRequest.Data.Segment; /** * Decodes a Segment message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Segment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): openrtb.BidRequest.Data.Segment; /** * Verifies a Segment message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a Segment message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Segment */ public static fromObject(object: { [k: string]: any }): openrtb.BidRequest.Data.Segment; /** * Creates a plain object from a Segment message. Also converts values to other types if specified. * @param message Segment * @param [options] Conversion options * @returns Plain object */ public static toObject(message: openrtb.BidRequest.Data.Segment, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Segment to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } } /** Properties of a Regulations. */ interface IRegulations { /** Regulations coppa */ coppa?: (openrtb.Flag|null); /** Regulations ext */ ext?: (openrtb.IRegulationsExtensions|null); } /** Represents a Regulations. */ class Regulations implements IRegulations { /** * Constructs a new Regulations. * @param [properties] Properties to set */ constructor(properties?: openrtb.BidRequest.IRegulations); /** Regulations coppa. */ public coppa: openrtb.Flag; /** Regulations ext. */ public ext?: (openrtb.IRegulationsExtensions|null); /** * Creates a new Regulations instance using the specified properties. * @param [properties] Properties to set * @returns Regulations instance */ public static create(properties?: openrtb.BidRequest.IRegulations): openrtb.BidRequest.Regulations; /** * Encodes the specified Regulations message. Does not implicitly {@link openrtb.BidRequest.Regulations.verify|verify} messages. * @param message Regulations message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: openrtb.BidRequest.IRegulations, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Regulations message, length delimited. Does not implicitly {@link openrtb.BidRequest.Regulations.verify|verify} messages. * @param message Regulations message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: openrtb.BidRequest.IRegulations, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Regulations message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Regulations * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): openrtb.BidRequest.Regulations; /** * Decodes a Regulations message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Regulations * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): openrtb.BidRequest.Regulations; /** * Verifies a Regulations message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a Regulations message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Regulations */ public static fromObject(object: { [k: string]: any }): openrtb.BidRequest.Regulations; /** * Creates a plain object from a Regulations message. Also converts values to other types if specified. * @param message Regulations * @param [options] Conversion options * @returns Plain object */ public static toObject(message: openrtb.BidRequest.Regulations, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Regulations to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } } /** Properties of a BidResponse. */ interface IBidResponse { /** BidResponse id */ id?: (string|null); /** BidResponse seatbid */ seatbid?: (openrtb.BidResponse.ISeatBid[]|null); /** BidResponse bidid */ bidid?: (string|null); /** BidResponse cur */ cur?: (string|null); /** BidResponse customdata */ customdata?: (string|null); /** BidResponse nbr */ nbr?: (openrtb.Enums.BidResponse.NoBidReason|null); /** BidResponse ext */ ext?: (openrtb.IBidResponseExtensions|null); } /** Represents a BidResponse. */ class BidResponse implements IBidResponse { /** * Constructs a new BidResponse. * @param [properties] Properties to set */ constructor(properties?: openrtb.IBidResponse); /** BidResponse id. */ public id: string; /** BidResponse seatbid. */ public seatbid: openrtb.BidResponse.ISeatBid[]; /** BidResponse bidid. */ public bidid: string; /** BidResponse cur. */ public cur: string; /** BidResponse customdata. */ public customdata: string; /** BidResponse nbr. */ public nbr: openrtb.Enums.BidResponse.NoBidReason; /** BidResponse ext. */ public ext?: (openrtb.IBidResponseExtensions|null); /** * Creates a new BidResponse instance using the specified properties. * @param [properties] Properties to set * @returns BidResponse instance */ public static create(properties?: openrtb.IBidResponse): openrtb.BidResponse; /** * Encodes the specified BidResponse message. Does not implicitly {@link openrtb.BidResponse.verify|verify} messages. * @param message BidResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: openrtb.IBidResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified BidResponse message, length delimited. Does not implicitly {@link openrtb.BidResponse.verify|verify} messages. * @param message BidResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: openrtb.IBidResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a BidResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns BidResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): openrtb.BidResponse; /** * Decodes a BidResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns BidResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): openrtb.BidResponse; /** * Verifies a BidResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a BidResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns BidResponse */ public static fromObject(object: { [k: string]: any }): openrtb.BidResponse; /** * Creates a plain object from a BidResponse message. Also converts values to other types if specified. * @param message BidResponse * @param [options] Conversion options * @returns Plain object */ public static toObject(message: openrtb.BidResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this BidResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } namespace BidResponse { /** Properties of a SeatBid. */ interface ISeatBid { /** SeatBid bid */ bid?: (openrtb.BidResponse.SeatBid.IBid[]|null); /** SeatBid seat */ seat?: (string|null); /** SeatBid group */ group?: (openrtb.Flag|null); /** SeatBid ext */ ext?: (openrtb.ISeatBidExtensions|null); } /** Represents a SeatBid. */ class SeatBid implements ISeatBid { /** * Constructs a new SeatBid. * @param [properties] Properties to set */ constructor(properties?: openrtb.BidResponse.ISeatBid); /** SeatBid bid. */ public bid: openrtb.BidResponse.SeatBid.IBid[]; /** SeatBid seat. */ public seat: string; /** SeatBid group. */ public group: openrtb.Flag; /** SeatBid ext. */ public ext?: (openrtb.ISeatBidExtensions|null); /** * Creates a new SeatBid instance using the specified properties. * @param [properties] Properties to set * @returns SeatBid instance */ public static create(properties?: openrtb.BidResponse.ISeatBid): openrtb.BidResponse.SeatBid; /** * Encodes the specified SeatBid message. Does not implicitly {@link openrtb.BidResponse.SeatBid.verify|verify} messages. * @param message SeatBid message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: openrtb.BidResponse.ISeatBid, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified SeatBid message, length delimited. Does not implicitly {@link openrtb.BidResponse.SeatBid.verify|verify} messages. * @param message SeatBid message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: openrtb.BidResponse.ISeatBid, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a SeatBid message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns SeatBid * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): openrtb.BidResponse.SeatBid; /** * Decodes a SeatBid message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns SeatBid * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): openrtb.BidResponse.SeatBid; /** * Verifies a SeatBid message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a SeatBid message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns SeatBid */ public static fromObject(object: { [k: string]: any }): openrtb.BidResponse.SeatBid; /** * Creates a plain object from a SeatBid message. Also converts values to other types if specified. * @param message SeatBid * @param [options] Conversion options * @returns Plain object */ public static toObject(message: openrtb.BidResponse.SeatBid, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this SeatBid to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } namespace SeatBid { /** Properties of a Bid. */ interface IBid { /** Bid id */ id: string; /** Bid impid */ impid: string; /** Bid price */ price: number; /** Bid adid */ adid?: (string|null); /** Bid nurl */ nurl?: (string|null); /** Bid adm */ adm?: (string|null); /** Bid adm_native */ adm_native?: (openrtb.INativeResponse|null); /** Bid adomain */ adomain?: (string[]|null); /** * Bundle or package name (e.g., com.foo.mygame) of the app being advertised, if applicable; * intended to be a unique ID across exchanges. */ bundle?: (string|null); /** Bid iurl */ iurl?: (string|null); /** Bid cid */ cid?: (string|null); /** Bid crid */ crid?: (string|null); /** IAB content category of the creative. */ cat?: (string[]|null); /** Bid attr */ attr?: (openrtb.CreativeAttribute[]|null); /** Bid dealid */ dealid?: (string|null); /** * Width of the ad in pixels. If the bid request contained the wmax/hmax and wmin/hmin * optional fields it is recommended that the response bid contains this field to signal * the size of ad chosen. */ w?: (number|null); /** * Height of the ad in pixels. If the bid request contained the wmax/hmax and wmin/hmin * optional fields it is recommended that the response bid contains this field to signal * the size of ad chosen. */ h?: (number|null); /** Bid ext */ ext?: (openrtb.IBidExtensions|null); } /** Represents a Bid. */ class Bid implements IBid { /** * Constructs a new Bid. * @param [properties] Properties to set */ constructor(properties?: openrtb.BidResponse.SeatBid.IBid); /** Bid id. */ public id: string; /** Bid impid. */ public impid: string; /** Bid price. */ public price: number; /** Bid adid. */ public adid: string; /** Bid nurl. */ public nurl: string; /** Bid adm. */ public adm: string; /** Bid adm_native. */ public adm_native?: (openrtb.INativeResponse|null); /** Bid adomain. */ public adomain: string[]; /** * Bundle or package name (e.g., com.foo.mygame) of the app being advertised, if applicable; * intended to be a unique ID across exchanges. */ public bundle: string; /** Bid iurl. */ public iurl: string; /** Bid cid. */ public cid: string; /** Bid crid. */ public crid: string; /** IAB content category of the creative. */ public cat: string[]; /** Bid attr. */ public attr: openrtb.CreativeAttribute[]; /** Bid dealid. */ public dealid: string; /** * Width of the ad in pixels. If the bid request contained the wmax/hmax and wmin/hmin * optional fields it is recommended that the response bid contains this field to signal * the size of ad chosen. */ public w: number; /** * Height of the ad in pixels. If the bid request contained the wmax/hmax and wmin/hmin * optional fields it is recommended that the response bid contains this field to signal * the size of ad chosen. */ public h: number; /** Bid ext. */ public ext?: (openrtb.IBidExtensions|null); /** * Creates a new Bid instance using the specified properties. * @param [properties] Properties to set * @returns Bid instance */ public static create(properties?: openrtb.BidResponse.SeatBid.IBid): openrtb.BidResponse.SeatBid.Bid; /** * Encodes the specified Bid message. Does not implicitly {@link openrtb.BidResponse.SeatBid.Bid.verify|verify} messages. * @param message Bid message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: openrtb.BidResponse.SeatBid.IBid, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Bid message, length delimited. Does not implicitly {@link openrtb.BidResponse.SeatBid.Bid.verify|verify} messages. * @param message Bid message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: openrtb.BidResponse.SeatBid.IBid, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Bid message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Bid * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): openrtb.BidResponse.SeatBid.Bid; /** * Decodes a Bid message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Bid * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): openrtb.BidResponse.SeatBid.Bid; /** * Verifies a Bid message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a Bid message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Bid */ public static fromObject(object: { [k: string]: any }): openrtb.BidResponse.SeatBid.Bid; /** * Creates a plain object from a Bid message. Also converts values to other types if specified. * @param message Bid * @param [options] Conversion options * @returns Plain object */ public static toObject(message: openrtb.BidResponse.SeatBid.Bid, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Bid to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } } } /** Properties of a NativeRequest. */ interface INativeRequest { /** Version of the Native Markup version in use. */ ver?: (string|null); /** * The Layout ID of the native ad unit. * This field is not required, but it's highly recommended. */ layout?: (openrtb.Enums.BidRequest.Impression.NativeRequest.LayoutId|null); /** * The Ad unit ID of the native ad unit. This corresponds to one of IAB Core-6 native ad units. * This field is not required, but it's highly recommended. */ adunit?: (openrtb.Enums.BidRequest.Impression.NativeRequest.AdUnitId|null); /** The number of identical placements in this Layout. */ plcmtcnt?: (number|null); /** * 0 for the first ad, 1 for the second ad, and so on. * This is not the sequence number of the content in the stream. */ seq?: (number|null); /** Any bid must comply with the array of elements expressed by the Exchange. */ assets?: (openrtb.NativeRequest.IAsset[]|null); /** The context in which the ad appears. */ context?: (openrtb.Enums.BidRequest.Impression.NativeRequest.Context|null); /** A more detailed context in which the ad appears. */ contextsubtype?: (openrtb.Enums.BidRequest.Impression.NativeRequest.ContextSubtype|null); /** The design/format/layout of the ad unit being offered. */ plcmttype?: (openrtb.Enums.BidRequest.Impression.NativeRequest.PlacementType|null); } /** * OpenRTB Native 4.1: The Native Object defines the native advertising opportunity * available for bid via this bid request. It must be included directly in the * impression object if the impression offered for auction is a native ad format. */ class NativeRequest implements INativeRequest { /** * Constructs a new NativeRequest. * @param [properties] Properties to set */ constructor(properties?: openrtb.INativeRequest); /** Version of the Native Markup version in use. */ public ver: string; /** * The Layout ID of the native ad unit. * This field is not required, but it's highly recommended. */ public layout: openrtb.Enums.BidRequest.Impression.NativeRequest.LayoutId; /** * The Ad unit ID of the native ad unit. This corresponds to one of IAB Core-6 native ad units. * This field is not required, but it's highly recommended. */ public adunit: openrtb.Enums.BidRequest.Impression.NativeRequest.AdUnitId; /** The number of identical placements in this Layout. */ public plcmtcnt: number; /** * 0 for the first ad, 1 for the second ad, and so on. * This is not the sequence number of the content in the stream. */ public seq: number; /** Any bid must comply with the array of elements expressed by the Exchange. */ public assets: openrtb.NativeRequest.IAsset[]; /** The context in which the ad appears. */ public context: openrtb.Enums.BidRequest.Impression.NativeRequest.Context; /** A more detailed context in which the ad appears. */ public contextsubtype: openrtb.Enums.BidRequest.Impression.NativeRequest.ContextSubtype; /** The design/format/layout of the ad unit being offered. */ public plcmttype: openrtb.Enums.BidRequest.Impression.NativeRequest.PlacementType; /** * Creates a new NativeRequest instance using the specified properties. * @param [properties] Properties to set * @returns NativeRequest instance */ public static create(properties?: openrtb.INativeRequest): openrtb.NativeRequest; /** * Encodes the specified NativeRequest message. Does not implicitly {@link openrtb.NativeRequest.verify|verify} messages. * @param message NativeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: openrtb.INativeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified NativeRequest message, length delimited. Does not implicitly {@link openrtb.NativeRequest.verify|verify} messages. * @param message NativeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: openrtb.INativeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a NativeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns NativeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): openrtb.NativeRequest; /** * Decodes a NativeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns NativeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): openrtb.NativeRequest; /** * Verifies a NativeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a NativeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns NativeRequest */ public static fromObject(object: { [k: string]: any }): openrtb.NativeRequest; /** * Creates a plain object from a NativeRequest message. Also converts values to other types if specified. * @param message NativeRequest * @param [options] Conversion options * @returns Plain object */ public static toObject(message: openrtb.NativeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this NativeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } namespace NativeRequest { /** Properties of an Asset. */ interface IAsset { /** Unique asset ID, assigned by exchange. Typically a counter for the array. */ id: number; /** Set to true if asset is required (exchange will not accept a bid without it). */ required?: (boolean|null); /** Title object for title assets. */ title?: (openrtb.NativeRequest.Asset.ITitle|null); /** Image object for image assets. */ img?: (openrtb.NativeRequest.Asset.IImage|null); /** * Video object for video assets. * Note that in-stream video ads are not part of Native. Native ads may contain a video * as the ad creative itself. */ video?: (openrtb.BidRequest.Impression.IVideo|null); /** Data object for ratings, prices etc. */ data?: (openrtb.NativeRequest.Asset.IData|null); } /** * OpenRTB Native 4.2: The main container object for each asset requested or supported by * Exchange on behalf of the rendering client. Any object that is required * is to be flagged as such. Only one of the {title,img,video,data} objects should be * present in each object. All others should be null/absent. The id is to be unique within * the Asset array so that the response can be aligned. */ class Asset implements IAsset { /** * Constructs a new Asset. * @param [properties] Properties to set */ constructor(properties?: openrtb.NativeRequest.IAsset); /** Unique asset ID, assigned by exchange. Typically a counter for the array. */ public id: number; /** Set to true if asset is required (exchange will not accept a bid without it). */ public required: boolean; /** Title object for title assets. */ public title?: (openrtb.NativeRequest.Asset.ITitle|null); /** Image object for image assets. */ public img?: (openrtb.NativeRequest.Asset.IImage|null); /** * Video object for video assets. * Note that in-stream video ads are not part of Native. Native ads may contain a video * as the ad creative itself. */ public video?: (openrtb.BidRequest.Impression.IVideo|null); /** Data object for ratings, prices etc. */ public data?: (openrtb.NativeRequest.Asset.IData|null); /** * Creates a new Asset instance using the specified properties. * @param [properties] Properties to set * @returns Asset instance */ public static create(properties?: openrtb.NativeRequest.IAsset): openrtb.NativeRequest.Asset; /** * Encodes the specified Asset message. Does not implicitly {@link openrtb.NativeRequest.Asset.verify|verify} messages. * @param message Asset message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: openrtb.NativeRequest.IAsset, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Asset message, length delimited. Does not implicitly {@link openrtb.NativeRequest.Asset.verify|verify} messages. * @param message Asset message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: openrtb.NativeRequest.IAsset, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an Asset message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Asset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): openrtb.NativeRequest.Asset; /** * Decodes an Asset message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Asset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): openrtb.NativeRequest.Asset; /** * Verifies an Asset message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates an Asset message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Asset */ public static fromObject(object: { [k: string]: any }): openrtb.NativeRequest.Asset; /** * Creates a plain object from an Asset message. Also converts values to other types if specified. * @param message Asset * @param [options] Conversion options * @returns Plain object */ public static toObject(message: openrtb.NativeRequest.Asset, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Asset to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } namespace Asset { /** Properties of a Title. */ interface ITitle { /** Maximum length of the text in the title element. */ len: number; } /** OpenRTB Native 4.3: The Title object is to be used for title element of the Native ad. */ class Title implements ITitle { /** * Constructs a new Title. * @param [properties] Properties to set */ constructor(properties?: openrtb.NativeRequest.Asset.ITitle); /** Maximum length of the text in the title element. */ public len: number; /** * Creates a new Title instance using the specified properties. * @param [properties] Properties to set * @returns Title instance */ public static create(properties?: openrtb.NativeRequest.Asset.ITitle): openrtb.NativeRequest.Asset.Title; /** * Encodes the specified Title message. Does not implicitly {@link openrtb.NativeRequest.Asset.Title.verify|verify} messages. * @param message Title message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: openrtb.NativeRequest.Asset.ITitle, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Title message, length delimited. Does not implicitly {@link openrtb.NativeRequest.Asset.Title.verify|verify} messages. * @param message Title message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: openrtb.NativeRequest.Asset.ITitle, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Title message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Title * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): openrtb.NativeRequest.Asset.Title; /** * Decodes a Title message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Title * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): openrtb.NativeRequest.Asset.Title; /** * Verifies a Title message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a Title message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Title */ public static fromObject(object: { [k: string]: any }): openrtb.NativeRequest.Asset.Title; /** * Creates a plain object from a Title message. Also converts values to other types if specified. * @param message Title * @param [options] Conversion options * @returns Plain object */ public static toObject(message: openrtb.NativeRequest.Asset.Title, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Title to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } /** Properties of an Image. */ interface IImage { /** * Type ID of the image element supported by the publisher. * The publisher can display this information in an appropriate format. */ type?: (openrtb.NativeRequest.Asset.Image.ImageAssetType|null); /** Width of the image in pixels. */ w?: (number|null); /** Height of the image in pixels. */ h?: (number|null); /** * The minimum requested width of the image in pixels. This option should be used for any * rescaling of images by the client. Either w or wmin should be transmitted. * If only w is included, it should be considered an exact requirement. */ wmin?: (number|null); /** * The minimum requested height of the image in pixels. This option should be used for any * rescaling of images by the client. Either h or hmin should be transmitted. * If only h is included, it should be considered an exact requirement. */ hmin?: (number|null); /** * Whitelist of content MIME types supported. Popular MIME types include, but are not * limited to "image/jpg" and "image/gif". Each implementing Exchange should have their * own list of supported types in the integration docs. See Wikipedia's MIME page for * more information and links to all IETF RFCs. If blank, assume all types are allowed. */ mimes?: (string[]|null); } /** * OpenRTB Native 4.4: The Image object to be used for all image elements of the * Native ad such as Icons, Main Image, etc. */ class Image implements IImage { /** * Constructs a new Image. * @param [properties] Properties to set */ constructor(properties?: openrtb.NativeRequest.Asset.IImage); /** * Type ID of the image element supported by the publisher. * The publisher can display this information in an appropriate format. */ public type: openrtb.NativeRequest.Asset.Image.ImageAssetType; /** Width of the image in pixels. */ public w: number; /** Height of the image in pixels. */ public h: number; /** * The minimum requested width of the image in pixels. This option should be used for any * rescaling of images by the client. Either w or wmin should be transmitted. * If only w is included, it should be considered an exact requirement. */ public wmin: number; /** * The minimum requested height of the image in pixels. This option should be used for any * rescaling of images by the client. Either h or hmin should be transmitted. * If only h is included, it should be considered an exact requirement. */ public hmin: number; /** * Whitelist of content MIME types supported. Popular MIME types include, but are not * limited to "image/jpg" and "image/gif". Each implementing Exchange should have their * own list of supported types in the integration docs. See Wikipedia's MIME page for * more information and links to all IETF RFCs. If blank, assume all types are allowed. */ public mimes: string[]; /** * Creates a new Image instance using the specified properties. * @param [properties] Properties to set * @returns Image instance */ public static create(properties?: openrtb.NativeRequest.Asset.IImage): openrtb.NativeRequest.Asset.Image; /** * Encodes the specified Image message. Does not implicitly {@link openrtb.NativeRequest.Asset.Image.verify|verify} messages. * @param message Image message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: openrtb.NativeRequest.Asset.IImage, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Image message, length delimited. Does not implicitly {@link openrtb.NativeRequest.Asset.Image.verify|verify} messages. * @param message Image message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: openrtb.NativeRequest.Asset.IImage, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an Image message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Image * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): openrtb.NativeRequest.Asset.Image; /** * Decodes an Image message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Image * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): openrtb.NativeRequest.Asset.Image; /** * Verifies an Image message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates an Image message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Image */ public static fromObject(object: { [k: string]: any }): openrtb.NativeRequest.Asset.Image; /** * Creates a plain object from an Image message. Also converts values to other types if specified. * @param message Image * @param [options] Conversion options * @returns Plain object */ public static toObject(message: openrtb.NativeRequest.Asset.Image, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Image to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } namespace Image { /** * OpenRTB Native 7.4: Common image asset element types of native advertising at * the time of writing this spec. This list is non-exhaustive and intended to be * extended by the buyers and sellers as the format evolves. */ enum ImageAssetType { ICON = 1, LOGO = 2, MAIN = 3 } } /** Properties of a Data. */ interface IData { /** * Type ID of the element supported by the publisher. The publisher can display this * information in an appropriate format. */ type?: (openrtb.NativeRequest.Asset.Data.DataAssetType|null); /** Maximum length of the text in the element's response. */ len?: (number|null); } /** * OpenRT Native 4.6: The Data Object is to be used for all non-core elements of the * native unit such as Ratings, Review Count, Stars, Download count, descriptions etc. * It is also generic for future of Native elements not contemplated at the time of the * writing of this document. */ class Data implements IData { /** * Constructs a new Data. * @param [properties] Properties to set */ constructor(properties?: openrtb.NativeRequest.Asset.IData); /** * Type ID of the element supported by the publisher. The publisher can display this * information in an appropriate format. */ public type: openrtb.NativeRequest.Asset.Data.DataAssetType; /** Maximum length of the text in the element's response. */ public len: number; /** * Creates a new Data instance using the specified properties. * @param [properties] Properties to set * @returns Data instance */ public static create(properties?: openrtb.NativeRequest.Asset.IData): openrtb.NativeRequest.Asset.Data; /** * Encodes the specified Data message. Does not implicitly {@link openrtb.NativeRequest.Asset.Data.verify|verify} messages. * @param message Data message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: openrtb.NativeRequest.Asset.IData, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified Data message, length delimited. Does not implicitly {@link openrtb.NativeRequest.Asset.Data.verify|verify} messages. * @param message Data message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: openrtb.NativeRequest.Asset.IData, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Data message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns Data * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): openrtb.NativeRequest.Asset.Data; /** * Decodes a Data message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns Data * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): openrtb.NativeRequest.Asset.Data; /** * Verifies a Data message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a Data message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns Data */ public static fromObject(object: { [k: string]: any }): openrtb.NativeRequest.Asset.Data; /** * Creates a plain object from a Data message. Also converts values to other types if specified. * @param message Data * @param [options] Conversion options * @returns Plain object */ public static toObject(message: openrtb.NativeRequest.Asset.Data, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Data to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } namespace Data { /** * OpenRTB Native 7.3: Common asset element types of native advertising. * This list is non-exhaustive and intended to be extended by the buyers and sellers * as the format evolves. An implementing exchange may not support all asset variants * or introduce new ones unique to that system. */ enum DataAssetType { SPONSORED = 1, DESC = 2, RATING = 3, LIKES = 4, DOWNLOADS = 5, PRICE = 6, SALEPRICE = 7, PHONE = 8, ADDRESS = 9, DESC2 = 10, DISPLAYURL = 11, CTATEXT = 12, STORE = 500 } } } } /** Properties of a NativeResponse. */ interface INativeResponse { /** Version of the Native Markup version in use. */ ver?: (string|null); /** List of native ad's assets. */ assets?: (openrtb.NativeResponse.IAsset[]|null); /** Destination Link. */ link: openrtb.NativeResponse.ILink; /** * Array of impression tracking URLs, expected to return a 1x1 image or 204 response - * typically only passed when using 3rd party trackers. */ imptrackers?: (string[]|null); /** * Optional javascript impression tracker. Contains