flipp

package
v3.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Builder

func Builder(bidderName openrtb_ext.BidderName, config config.Adapter, server config.Server) (adapters.Bidder, error)

Builder builds a new instance of the Flipp adapter for the given bidder with the given config.

Types

type CampaignRequestBody

type CampaignRequestBody struct {
	IP                string                   `json:"ip,omitempty"`
	Keywords          []string                 `json:"keywords"`
	Placements        []*Placement             `json:"placements"`
	PreferredLanguage *string                  `json:"preferred_language,omitempty"`
	URL               string                   `json:"url,omitempty"`
	User              *CampaignRequestBodyUser `json:"user"`
}

type CampaignRequestBodyUser

type CampaignRequestBodyUser struct {
	Key *string `json:"key"`
}

type CampaignResponseBody

type CampaignResponseBody struct {
	CandidateRetrieval interface{} `json:"candidateRetrieval,omitempty"`
	Decisions          *Decisions  `json:"decisions"`
}

type Content

type Content struct {
	Body           string `json:"body,omitempty"`
	CustomTemplate string `json:"customTemplate,omitempty"`
	Data           *Data2 `json:"data,omitempty"`
	Type           string `json:"type,omitempty"`
}

type Contents

type Contents []*Content

type Data2

type Data2 struct {
	CustomData interface{} `json:"customData,omitempty"`
	Height     int64       `json:"height,omitempty"`
	Width      int64       `json:"width,omitempty"`
}

type Decisions

type Decisions struct {
	Inline Inline `json:"inline,omitempty"`
}

type Inline

type Inline []*InlineModel

type InlineModel

type InlineModel struct {
	AdID          int64           `json:"adId,omitempty"`
	AdvertiserID  int64           `json:"advertiserId,omitempty"`
	CampaignID    int64           `json:"campaignId,omitempty"`
	ClickURL      string          `json:"clickUrl,omitempty"`
	Contents      Contents        `json:"contents,omitempty"`
	CreativeID    int64           `json:"creativeId,omitempty"`
	FlightID      int64           `json:"flightId,omitempty"`
	Height        int64           `json:"height,omitempty"`
	ImpressionURL string          `json:"impressionUrl,omitempty"`
	Prebid        *PrebidResponse `json:"prebid,omitempty"`
	PriorityID    int64           `json:"priorityId,omitempty"`
	Width         int64           `json:"width,omitempty"`
}

type Placement

type Placement struct {
	AdTypes    []int64                        `json:"adTypes"`
	Count      *int64                         `json:"count"`
	DivName    string                         `json:"divName,omitempty"`
	NetworkID  int64                          `json:"networkId,omitempty"`
	Prebid     *PrebidRequest                 `json:"prebid,omitempty"`
	Properties *Properties                    `json:"properties,omitempty"`
	SiteID     *int64                         `json:"siteId"`
	ZoneIds    []int64                        `json:"zoneIds"`
	Options    openrtb_ext.ImpExtFlippOptions `json:"options,omitempty"`
}

type PrebidRequest

type PrebidRequest struct {
	CreativeType            *string `json:"creativeType"`
	Height                  *int64  `json:"height"`
	PublisherNameIdentifier *string `json:"publisherNameIdentifier"`
	RequestID               *string `json:"requestId"`
	Width                   *int64  `json:"width"`
}

type PrebidResponse

type PrebidResponse struct {
	Cpm          *float64 `json:"cpm"`
	Creative     *string  `json:"creative"`
	CreativeType *string  `json:"creativeType"`
	RequestID    *string  `json:"requestId"`
}

type Properties

type Properties struct {
	ContentCode *string `json:"contentCode,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL