github.com/prebid/prebid-server/v2@v2.18.0/adapters/appnexus/models.go (about)

     1  package appnexus
     2  
     3  import (
     4  	"encoding/json"
     5  )
     6  
     7  type impExtAppnexus struct {
     8  	PlacementID       int             `json:"placement_id,omitempty"`
     9  	Keywords          string          `json:"keywords,omitempty"`
    10  	TrafficSourceCode string          `json:"traffic_source_code,omitempty"`
    11  	UsePmtRule        *bool           `json:"use_pmt_rule,omitempty"`
    12  	PrivateSizes      json.RawMessage `json:"private_sizes,omitempty"`
    13  	ExtInvCode        string          `json:"ext_inv_code,omitempty"`
    14  	ExternalImpID     string          `json:"external_imp_id,omitempty"`
    15  }
    16  
    17  type impExt struct {
    18  	Appnexus impExtAppnexus `json:"appnexus"`
    19  }
    20  
    21  type bidExtVideo struct {
    22  	Duration int `json:"duration"`
    23  }
    24  
    25  type bidExtCreative struct {
    26  	Video bidExtVideo `json:"video"`
    27  }
    28  
    29  type bidExtAppnexus struct {
    30  	BidType       int            `json:"bid_ad_type"`
    31  	BrandId       int            `json:"brand_id"`
    32  	BrandCategory int            `json:"brand_category_id"`
    33  	CreativeInfo  bidExtCreative `json:"creative_info"`
    34  	DealPriority  int            `json:"deal_priority"`
    35  }
    36  
    37  type bidExt struct {
    38  	Appnexus bidExtAppnexus `json:"appnexus"`
    39  }
    40  
    41  type bidReqExtAppnexus struct {
    42  	IncludeBrandCategory    *bool  `json:"include_brand_category,omitempty"`
    43  	BrandCategoryUniqueness *bool  `json:"brand_category_uniqueness,omitempty"`
    44  	IsAMP                   int    `json:"is_amp,omitempty"`
    45  	HeaderBiddingSource     int    `json:"hb_source,omitempty"`
    46  	AdPodID                 string `json:"adpod_id,omitempty"`
    47  }