github.com/prebid/prebid-server/v2@v2.18.0/adapters/flipp/flipp_params.go (about)

     1  package flipp
     2  
     3  import "github.com/prebid/prebid-server/v2/openrtb_ext"
     4  
     5  type CampaignRequestBodyUser struct {
     6  	Key *string `json:"key"`
     7  }
     8  
     9  type Properties struct {
    10  	ContentCode *string `json:"contentCode,omitempty"`
    11  }
    12  
    13  type PrebidRequest struct {
    14  	CreativeType            *string `json:"creativeType"`
    15  	Height                  *int64  `json:"height"`
    16  	PublisherNameIdentifier *string `json:"publisherNameIdentifier"`
    17  	RequestID               *string `json:"requestId"`
    18  	Width                   *int64  `json:"width"`
    19  }
    20  
    21  type Placement struct {
    22  	AdTypes    []int64                        `json:"adTypes"`
    23  	Count      *int64                         `json:"count"`
    24  	DivName    string                         `json:"divName,omitempty"`
    25  	NetworkID  int64                          `json:"networkId,omitempty"`
    26  	Prebid     *PrebidRequest                 `json:"prebid,omitempty"`
    27  	Properties *Properties                    `json:"properties,omitempty"`
    28  	SiteID     *int64                         `json:"siteId"`
    29  	ZoneIds    []int64                        `json:"zoneIds"`
    30  	Options    openrtb_ext.ImpExtFlippOptions `json:"options,omitempty"`
    31  }
    32  
    33  type CampaignRequestBody struct {
    34  	IP                string                   `json:"ip,omitempty"`
    35  	Keywords          []string                 `json:"keywords"`
    36  	Placements        []*Placement             `json:"placements"`
    37  	PreferredLanguage *string                  `json:"preferred_language,omitempty"`
    38  	URL               string                   `json:"url,omitempty"`
    39  	User              *CampaignRequestBodyUser `json:"user"`
    40  }
    41  
    42  type CampaignResponseBody struct {
    43  	CandidateRetrieval interface{} `json:"candidateRetrieval,omitempty"`
    44  	Decisions          *Decisions  `json:"decisions"`
    45  }
    46  
    47  type Decisions struct {
    48  	Inline Inline `json:"inline,omitempty"`
    49  }
    50  
    51  type Inline []*InlineModel
    52  
    53  type Contents []*Content
    54  
    55  type Content struct {
    56  	Body           string `json:"body,omitempty"`
    57  	CustomTemplate string `json:"customTemplate,omitempty"`
    58  	Data           *Data2 `json:"data,omitempty"`
    59  	Type           string `json:"type,omitempty"`
    60  }
    61  
    62  type Data2 struct {
    63  	CustomData interface{} `json:"customData,omitempty"`
    64  	Height     int64       `json:"height,omitempty"`
    65  	Width      int64       `json:"width,omitempty"`
    66  }
    67  
    68  type InlineModel struct {
    69  	AdID          int64           `json:"adId,omitempty"`
    70  	AdvertiserID  int64           `json:"advertiserId,omitempty"`
    71  	CampaignID    int64           `json:"campaignId,omitempty"`
    72  	ClickURL      string          `json:"clickUrl,omitempty"`
    73  	Contents      Contents        `json:"contents,omitempty"`
    74  	CreativeID    int64           `json:"creativeId,omitempty"`
    75  	FlightID      int64           `json:"flightId,omitempty"`
    76  	Height        int64           `json:"height,omitempty"`
    77  	ImpressionURL string          `json:"impressionUrl,omitempty"`
    78  	Prebid        *PrebidResponse `json:"prebid,omitempty"`
    79  	PriorityID    int64           `json:"priorityId,omitempty"`
    80  	Width         int64           `json:"width,omitempty"`
    81  }
    82  
    83  type PrebidResponse struct {
    84  	Cpm          *float64 `json:"cpm"`
    85  	Creative     *string  `json:"creative"`
    86  	CreativeType *string  `json:"creativeType"`
    87  	RequestID    *string  `json:"requestId"`
    88  }