diff --git a/adcom1/asset.go b/adcom1/asset.go index 0fa724a..ea0982e 100644 --- a/adcom1/asset.go +++ b/adcom1/asset.go @@ -11,7 +11,7 @@ type Asset struct { // integer // Definition: // The value of AssetFormat.id if this ad references a specific native placement defined by a Placement object and its structure. - ID int `json:"id,omitempty"` + ID int64 `json:"id,omitempty"` // Attribute: // req diff --git a/adcom1/asset_format.go b/adcom1/asset_format.go index db267ea..189f645 100644 --- a/adcom1/asset_format.go +++ b/adcom1/asset_format.go @@ -12,7 +12,7 @@ type AssetFormat struct { // integer; required // Definition: // Asset ID, unique within the scope of this placement specification. - ID int `json:"id"` + ID int64 `json:"id"` // Attribute: // req diff --git a/adcom1/content.go b/adcom1/content.go index 00cadac..04b0959 100644 --- a/adcom1/content.go +++ b/adcom1/content.go @@ -20,7 +20,7 @@ type Content struct { // integer // Definition: // Episode number. - Episode int `json:"episode,omitempty"` + Episode uint16 `json:"episode,omitempty"` // Attribute: // title diff --git a/adcom1/device.go b/adcom1/device.go index e9d1df2..fbac5d1 100644 --- a/adcom1/device.go +++ b/adcom1/device.go @@ -95,7 +95,7 @@ type Device struct { // integer // Definition: // Physical height of the screen in pixels. - H int `json:"h,omitempty"` + H uint64 `json:"h,omitempty"` // Attribute: // w @@ -103,7 +103,7 @@ type Device struct { // integer // Definition: // Physical width of the screen in pixels. - W int `json:"w,omitempty"` + W uint64 `json:"w,omitempty"` // Attribute: // ppi @@ -111,7 +111,7 @@ type Device struct { // integer // Definition: // Screen size as pixels per linear inch. - PPI int `json:"ppi,omitempty"` + PPI uint16 `json:"ppi,omitempty"` // Attribute: // pxratio diff --git a/adcom1/display.go b/adcom1/display.go index 53943e7..2a4a0ca 100644 --- a/adcom1/display.go +++ b/adcom1/display.go @@ -40,7 +40,7 @@ type Display struct { // Definition: // Absolute width of the creative in device independent pixels (DIPS), typically for non-native ads. // Note that mixing absolute and relative sizes is not recommended. - W int `json:"w,omitempty"` + W uint64 `json:"w,omitempty"` // Attribute: // h @@ -49,7 +49,7 @@ type Display struct { // Definition: // Absolute height of the creative in device independent pixels (DIPS), typically for non-native ads. // Note that mixing absolute and relative sizes is not recommended. - H int `json:"h,omitempty"` + H uint64 `json:"h,omitempty"` // Attribute: // wratio @@ -58,7 +58,7 @@ type Display struct { // Definition: // Relative width of the creative when expressing size as a ratio, typically for non-native ads. // Note that mixing absolute and relative sizes is not recommended. - WRatio int `json:"wratio,omitempty"` + WRatio uint64 `json:"wratio,omitempty"` // Attribute: // hratio @@ -67,7 +67,7 @@ type Display struct { // Definition: // Relative height of the creative when expressing size as a ratio, typically for non-native ads. // Note that mixing absolute and relative sizes is not recommended. - HRatio int `json:"hratio,omitempty"` + HRatio uint64 `json:"hratio,omitempty"` // Attribute: // priv diff --git a/adcom1/display_format.go b/adcom1/display_format.go index aeba591..6f3d1be 100644 --- a/adcom1/display_format.go +++ b/adcom1/display_format.go @@ -11,7 +11,7 @@ type DisplayFormat struct { // Definition: // Absolute width of the creative in units specified by DisplayPlacement.unit. // Note that mixing absolute and relative sizes is not recommended. - W int `json:"w,omitempty"` + W uint64 `json:"w,omitempty"` // Attribute: // h @@ -20,7 +20,7 @@ type DisplayFormat struct { // Definition: // Absolute height of the creative in units specified by DisplayPlacement.unit. // Note that mixing absolute and relative sizes is not recommended. - H int `json:"h,omitempty"` + H uint64 `json:"h,omitempty"` // Attribute: // wratio @@ -29,7 +29,7 @@ type DisplayFormat struct { // Definition: // Relative width of the creative when expressing size as a ratio. // Note that mixing absolute and relative sizes is not recommended. - WRatio int `json:"wratio,omitempty"` + WRatio uint64 `json:"wratio,omitempty"` // Attribute: // hratio @@ -38,7 +38,7 @@ type DisplayFormat struct { // Definition: // Relative height of the creative when expressing size as a ratio. // Note that mixing absolute and relative sizes is not recommended. - HRatio int `json:"hratio,omitempty"` + HRatio uint64 `json:"hratio,omitempty"` // Attribute: // expdir diff --git a/adcom1/display_placement.go b/adcom1/display_placement.go index b63c399..4179626 100644 --- a/adcom1/display_placement.go +++ b/adcom1/display_placement.go @@ -110,7 +110,7 @@ type DisplayPlacement struct { // Definition: // Width of the placement in units specified by unit. // Note that this size applies to the placement itself; permitted creative sizes are specified elsewhere (e.g., DisplayFormat, ImageAssetFormat, etc.). - W int `json:"w,omitempty"` + W uint64 `json:"w,omitempty"` // Attribute: // h @@ -119,7 +119,7 @@ type DisplayPlacement struct { // Definition: // Width of the placement in units specified by unit. // Note that this size applies to the placement itself; permitted creative sizes are specified elsewhere (e.g., DisplayFormat, ImageAssetFormat, etc.). - H int `json:"h,omitempty"` + H uint64 `json:"h,omitempty"` // Attribute: // unit diff --git a/adcom1/dooh.go b/adcom1/dooh.go index 0086e56..855faa2 100644 --- a/adcom1/dooh.go +++ b/adcom1/dooh.go @@ -38,7 +38,7 @@ type DOOH struct { // integer // Definition: // Minimum DPI for text-based creative elements to display clearly. - DPI int `json:"dpi,omitempty"` + DPI uint16 `json:"dpi,omitempty"` // Attribute: // ext diff --git a/adcom1/geo.go b/adcom1/geo.go index a53725b..94388f5 100644 --- a/adcom1/geo.go +++ b/adcom1/geo.go @@ -42,7 +42,7 @@ type Geo struct { // Estimated location accuracy in meters; recommended when lat/lon are specified and derived from a device's location services (i.e., type = 1). // Note that this is the accuracy as reported from the device. // Consult OS specific documentation (e.g., Android, iOS) for exact interpretation. - Accur int `json:"accur,omitempty"` + Accur int64 `json:"accur,omitempty"` // Attribute: // lastfix @@ -113,7 +113,7 @@ type Geo struct { // integer // Definition: // Local time as the number +/- of minutes from UTC. - UTCOffset int `json:"utcoffset,omitempty"` + UTCOffset int64 `json:"utcoffset,omitempty"` // Attribute: // ext diff --git a/adcom1/image_asset.go b/adcom1/image_asset.go index 45f1899..1594cbe 100644 --- a/adcom1/image_asset.go +++ b/adcom1/image_asset.go @@ -19,7 +19,7 @@ type ImageAsset struct { // integer; recommended // Definition: // Width of the image asset in device independent pixels (DIPS). - W int `json:"w,omitempty"` + W uint64 `json:"w,omitempty"` // Attribute: // h @@ -27,7 +27,7 @@ type ImageAsset struct { // integer; recommended // Definition: // Height of the image asset in device independent pixels (DIPS). - H int `json:"h,omitempty"` + H uint64 `json:"h,omitempty"` // Attribute: // type diff --git a/adcom1/image_asset_format.go b/adcom1/image_asset_format.go index 2f7905e..4efde00 100644 --- a/adcom1/image_asset_format.go +++ b/adcom1/image_asset_format.go @@ -30,7 +30,7 @@ type ImageAssetFormat struct { // Definition: // Absolute width of the image asset in device independent pixels (DIPS). // Note that mixing absolute and relative sizes is not recommended. - W int `json:"w,omitempty"` + W uint64 `json:"w,omitempty"` // Attribute: // h @@ -39,7 +39,7 @@ type ImageAssetFormat struct { // Definition: // Absolute height of the image asset in device independent pixels (DIPS). // Note that mixing absolute and relative sizes is not recommended. - H int `json:"h,omitempty"` + H uint64 `json:"h,omitempty"` // Attribute: // wmin @@ -48,7 +48,7 @@ type ImageAssetFormat struct { // Definition: // The minimum requested absolute width of the image in device independent pixels (DIPS). // This option should be used for any scaling of images by the client. - WMin int `json:"wmin,omitempty"` + WMin uint64 `json:"wmin,omitempty"` // Attribute: // hmin @@ -57,7 +57,7 @@ type ImageAssetFormat struct { // Definition: // The minimum requested absolute height of the image in device independent pixels (DIPS). // This option should be used for any scaling of images by the client. - HMin int `json:"hmin,omitempty"` + HMin uint64 `json:"hmin,omitempty"` // Attribute: // wratio @@ -66,7 +66,7 @@ type ImageAssetFormat struct { // Definition: // Relative width of the image asset when expressing size as a ratio. // Note that mixing absolute and relative sizes is not recommended. - WRatio int `json:"wratio,omitempty"` + WRatio uint64 `json:"wratio,omitempty"` // Attribute: // hratio @@ -75,7 +75,7 @@ type ImageAssetFormat struct { // Definition: // Relative height of the image asset when expressing size as a ratio. // Note that mixing absolute and relative sizes is not recommended. - HRatio int `json:"hratio,omitempty"` + HRatio uint64 `json:"hratio,omitempty"` // Attribute: // ext diff --git a/adcom1/video_placement.go b/adcom1/video_placement.go index 2f77758..682d561 100644 --- a/adcom1/video_placement.go +++ b/adcom1/video_placement.go @@ -116,7 +116,7 @@ type VideoPlacement struct { // integer // Definition: // Width of the placement in units specified by unit. - W int `json:"w,omitempty"` + W uint64 `json:"w,omitempty"` // Attribute: // h @@ -124,7 +124,7 @@ type VideoPlacement struct { // integer // Definition: // Height of the placement in units specified by unit. - H int `json:"h,omitempty"` + H uint64 `json:"h,omitempty"` // Attribute: // unit