
oa-test.2.1.0.source-code.com_adgear_avro_openrtb_Geo.thrift Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of anoa-test Show documentation
Show all versions of anoa-test Show documentation
Test module for other Anoa modules, which exposes complex records (OpenRTB bid requests) through
utility classes for use in unit tests within other Anoa modules (anoa-core, for instance).
The newest version!
namespace * thrift.com.adgear.avro.openrtb
/** 3.3.11 Geo Object
The geo object itself and all of its parameters are optional, so default values are not provided. If an optional parameter is not specified, it should be considered unknown.
Note that the Geo Object may appear in one or both the Device Object and the User Object. This is intentional, since the information may be derived from either a device-oriented source (such as IP geo lookup), or by user registration information (for example provided to a publisher through a user registration). If the information is in conflict, it’s up to the bidder to determine which information to use. */
struct Geo {
/** [01] Latitude from -90 to 90. South is negative. This should only be passed if known to be accurate (For example, not the centroid of a postal code). */
01: optional double lat,
/** [02] Longitude from -180 to 180. West is negative. This should only be passed if known to be accurate. */
02: optional double lon,
/** [03] Country using ISO-3166-1 Alpha-3. */
03: optional string country,
/** [04] Region using ISO 3166-2. */
04: optional string region,
/** [05] Region of a country using FIPS 10-4 notation (alternative to ISO 3166-2). */
05: optional string regionfips104,
/** [06] Pass the metro code (seehttp://code.google.com/apis/adwords/docs/appendix/metrocodes.html). Metro codes are similar to but not exactly the same as Nielsen DMAs. */
06: optional string metro,
/** [07] City using United Nations Code for Trade and Transport Locations (http://www.unece.org/cefact/locode/ser vice/location.htm). */
07: optional string city,
/** [08] Zip/postal code. */
08: optional string zip,
/** [09] Indicate the source of the geo data (GPS, IP address, user provided). See Table 6.15 Location Type for a list of potential values. Type should be provided when lat/lon is provided. */
09: optional i32 type
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy