Struct openrtb2::App

source ·
pub struct App {
Show 15 fields pub id: Option<String>, pub name: Option<String>, pub bundle: Option<String>, pub domain: Option<String>, pub storeurl: Option<String>, pub cat: Option<Vec<ContentCategory>>, pub sectioncat: Option<Vec<ContentCategory>>, pub pagecat: Option<Vec<ContentCategory>>, pub ver: Option<String>, pub privacypolicy: Option<bool>, pub paid: Option<bool>, pub publisher: Option<Publisher>, pub content: Option<Content>, pub keywords: Option<String>, pub ext: Option<Map<String, Value>>,
}
Expand description

3.2.14 Object: App

This object should be included if the ad supported content is a non-browser application (typically in mobile) as opposed to a website. A bid request must not contain both an App and a Site object. At a minimum, it is useful to provide an App ID or bundle, but this is not strictly required.

Fields§

§id: Option<String>

string; recommended Exchange-specific app ID.

§name: Option<String>

string App name (may be aliased at the publisher’s request).

§bundle: Option<String>

string A platform-specific application identifier intended to be unique to the app and independent of the exchange. On Android, this should be a bundle or package name (e.g., com.foo.mygame). On iOS, it is typically a numeric ID.

§domain: Option<String>

string Domain of the app (e.g., “mygame.foo.com”).

§storeurl: Option<String>

string App store URL for an installed app; for IQG 2.1 compliance.

§cat: Option<Vec<ContentCategory>>

string array Array of IAB content categories of the app. Refer to List 5.1.

§sectioncat: Option<Vec<ContentCategory>>

string array Array of IAB content categories that describe the current section of the app. Refer to List 5.1.

§pagecat: Option<Vec<ContentCategory>>

string array Array of IAB content categories that describe the current page or view of the app. Refer to List 5.1.

§ver: Option<String>

string Application version.

§privacypolicy: Option<bool>

integer Indicates if the app has a privacy policy, where 0 = no, 1 = yes.

§paid: Option<bool>

integer 0 = app is free, 1 = the app is a paid version.

§publisher: Option<Publisher>

object Details about the Publisher (Section 3.2.15) of the app.

§content: Option<Content>

object Details about the Content (Section 3.2.16) within the app.

§keywords: Option<String>

string Comma separated list of keywords about the app.

§ext: Option<Map<String, Value>>

object Placeholder for exchange-specific extensions to OpenRTB.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.