From a9dc96e9ecdf5dcdc0711ab8d8031b4d2d3fa4d6 Mon Sep 17 00:00:00 2001 From: Max Cherry Date: Wed, 15 Jun 2016 10:50:33 +0300 Subject: [PATCH] Added missing Bid.Attr property, fixed godoc comments --- bid.go | 10 +++++++++- bid_request.go | 4 ++-- deal.go | 2 +- device.go | 1 - 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/bid.go b/bid.go index 942a4b1..2cfd2cb 100644 --- a/bid.go +++ b/bid.go @@ -110,9 +110,17 @@ type Bid struct { // Type: // string array // Description: - // IAB content categories of the creative. Refer to List 5.1.attr integer array Set of attributes describing the creative. Refer to List 5.3. + // IAB content categories of the creative. Refer to List 5.1. Cat []string `json:"cat,omitempty"` + // Attribute: + // attr + // Type: + // integer array + // Description: + // Set of attributes describing the creative. Refer to List 5.3. + Attr []int8 `json:"attr,omitempty"` + // Attribute: // dealid // Type: diff --git a/bid_request.go b/bid_request.go index 7890932..063c025 100644 --- a/bid_request.go +++ b/bid_request.go @@ -140,8 +140,8 @@ type BidRequest struct { // Type: // object // Description: - // Blocked advertiser categories using the IAB content categories. Refer to List 5.1. or governmental - // regulations in force for this request. + // A Regs object (Section 3.2.16) that specifies any industry, legal, + // or governmental regulations in force for this request. Regs *Regs `json:"regs,omitempty"` // Attribute: diff --git a/deal.go b/deal.go index 09d1e30..5cb2da0 100644 --- a/deal.go +++ b/deal.go @@ -56,7 +56,7 @@ type Deal struct { // Type: // string array // Description: - // Array of advertiser domains (e.g., advertiser.com) allowed to bid on this deal. Omission implies + // Array of advertiser domains (e.g., advertiser.com) allowed to bid on this deal. Omission implies // no advertiser restrictions. WADomain []string `json:"wadomain,omitempty"` diff --git a/device.go b/device.go index 67ca947..c314a3c 100644 --- a/device.go +++ b/device.go @@ -170,7 +170,6 @@ type Device struct { // Description: // Carrier or ISP (e.g., “VERIZON”). “WIFI” is often used in mobile // to indicate high bandwidth (e.g., video friendly vs. cellular). - // connectiontype integer Network connection type. Refer to List 5.18. Carrier string `json:"carrier,omitempty"` // Attribute: