Files
sdk/docs/CampaignCampaignRecord.md

9.3 KiB

CampaignCampaignRecord

Properties

Name Type Description Notes
Audience Pointer to string Audience is an opaque reference to the segment this campaign targets. It is stored and echoed but not yet handed to the executors — a channel targets through the provider account it runs under — so it is documentation for now. Absent when never set. [optional]
Budget Pointer to int64 Budget is the campaign's total budget in CENTS, handed to each executor as the budget for its channel. 0 means none was set. [optional]
Channels Pointer to []CampaignChannelSpec Channels are the fan-out targets, at most one per kind and at most 12, each carrying its own post-launch state. Empty means nothing to launch, which is what makes a launch of this campaign a 400. [optional]
Content Pointer to []string Content is the ordered creative set, at most 32, empty entries dropped. Content[0] is the creative that runs; the rest are A/B variants a wired experiment can assign per launch. [optional]
CreatedAt Pointer to int64 CreatedAt is when the campaign was created, in unix seconds. Server-set. [optional]
Id Pointer to string ID is the campaign's server-minted handle — "cmp_" and 128 random bits — and the id every other campaign call is addressed by. Never read off the wire: a create that sends one has it ignored. [optional]
Name Pointer to string Name is the campaign's display name. Required on write, trimmed, and capped at 2048 characters. [optional]
ScheduleAt Pointer to int64 ScheduleAt is when the campaign should run, in unix seconds. 0 (absent) means launch immediately. It is passed to each executor; nothing in this service wakes up to launch it for you. [optional]
Status Pointer to string Status is the lifecycle state, server-owned and never accepted from a caller. Four values actually occur: draft (inert and fully mutable — nothing is sent and no budget is committed), live, paused and failed. After a fan-out live means AT LEAST ONE channel launched — read the channel rows for the rest — and failed means none did. [optional]
UpdatedAt Pointer to int64 UpdatedAt is the last write in unix seconds — an edit, a launch or a pause. Server-set on every save. [optional]

Methods

NewCampaignCampaignRecord

func NewCampaignCampaignRecord() *CampaignCampaignRecord

NewCampaignCampaignRecord instantiates a new CampaignCampaignRecord object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

NewCampaignCampaignRecordWithDefaults

func NewCampaignCampaignRecordWithDefaults() *CampaignCampaignRecord

NewCampaignCampaignRecordWithDefaults instantiates a new CampaignCampaignRecord object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

GetAudience

func (o *CampaignCampaignRecord) GetAudience() string

GetAudience returns the Audience field if non-nil, zero value otherwise.

GetAudienceOk

func (o *CampaignCampaignRecord) GetAudienceOk() (*string, bool)

GetAudienceOk returns a tuple with the Audience field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetAudience

func (o *CampaignCampaignRecord) SetAudience(v string)

SetAudience sets Audience field to given value.

HasAudience

func (o *CampaignCampaignRecord) HasAudience() bool

HasAudience returns a boolean if a field has been set.

GetBudget

func (o *CampaignCampaignRecord) GetBudget() int64

GetBudget returns the Budget field if non-nil, zero value otherwise.

GetBudgetOk

func (o *CampaignCampaignRecord) GetBudgetOk() (*int64, bool)

GetBudgetOk returns a tuple with the Budget field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetBudget

func (o *CampaignCampaignRecord) SetBudget(v int64)

SetBudget sets Budget field to given value.

HasBudget

func (o *CampaignCampaignRecord) HasBudget() bool

HasBudget returns a boolean if a field has been set.

GetChannels

func (o *CampaignCampaignRecord) GetChannels() []CampaignChannelSpec

GetChannels returns the Channels field if non-nil, zero value otherwise.

GetChannelsOk

func (o *CampaignCampaignRecord) GetChannelsOk() (*[]CampaignChannelSpec, bool)

GetChannelsOk returns a tuple with the Channels field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetChannels

func (o *CampaignCampaignRecord) SetChannels(v []CampaignChannelSpec)

SetChannels sets Channels field to given value.

HasChannels

func (o *CampaignCampaignRecord) HasChannels() bool

HasChannels returns a boolean if a field has been set.

GetContent

func (o *CampaignCampaignRecord) GetContent() []string

GetContent returns the Content field if non-nil, zero value otherwise.

GetContentOk

func (o *CampaignCampaignRecord) GetContentOk() (*[]string, bool)

GetContentOk returns a tuple with the Content field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetContent

func (o *CampaignCampaignRecord) SetContent(v []string)

SetContent sets Content field to given value.

HasContent

func (o *CampaignCampaignRecord) HasContent() bool

HasContent returns a boolean if a field has been set.

GetCreatedAt

func (o *CampaignCampaignRecord) GetCreatedAt() int64

GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.

GetCreatedAtOk

func (o *CampaignCampaignRecord) GetCreatedAtOk() (*int64, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetCreatedAt

func (o *CampaignCampaignRecord) SetCreatedAt(v int64)

SetCreatedAt sets CreatedAt field to given value.

HasCreatedAt

func (o *CampaignCampaignRecord) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

GetId

func (o *CampaignCampaignRecord) GetId() string

GetId returns the Id field if non-nil, zero value otherwise.

GetIdOk

func (o *CampaignCampaignRecord) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetId

func (o *CampaignCampaignRecord) SetId(v string)

SetId sets Id field to given value.

HasId

func (o *CampaignCampaignRecord) HasId() bool

HasId returns a boolean if a field has been set.

GetName

func (o *CampaignCampaignRecord) GetName() string

GetName returns the Name field if non-nil, zero value otherwise.

GetNameOk

func (o *CampaignCampaignRecord) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetName

func (o *CampaignCampaignRecord) SetName(v string)

SetName sets Name field to given value.

HasName

func (o *CampaignCampaignRecord) HasName() bool

HasName returns a boolean if a field has been set.

GetScheduleAt

func (o *CampaignCampaignRecord) GetScheduleAt() int64

GetScheduleAt returns the ScheduleAt field if non-nil, zero value otherwise.

GetScheduleAtOk

func (o *CampaignCampaignRecord) GetScheduleAtOk() (*int64, bool)

GetScheduleAtOk returns a tuple with the ScheduleAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetScheduleAt

func (o *CampaignCampaignRecord) SetScheduleAt(v int64)

SetScheduleAt sets ScheduleAt field to given value.

HasScheduleAt

func (o *CampaignCampaignRecord) HasScheduleAt() bool

HasScheduleAt returns a boolean if a field has been set.

GetStatus

func (o *CampaignCampaignRecord) GetStatus() string

GetStatus returns the Status field if non-nil, zero value otherwise.

GetStatusOk

func (o *CampaignCampaignRecord) GetStatusOk() (*string, bool)

GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetStatus

func (o *CampaignCampaignRecord) SetStatus(v string)

SetStatus sets Status field to given value.

HasStatus

func (o *CampaignCampaignRecord) HasStatus() bool

HasStatus returns a boolean if a field has been set.

GetUpdatedAt

func (o *CampaignCampaignRecord) GetUpdatedAt() int64

GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise.

GetUpdatedAtOk

func (o *CampaignCampaignRecord) GetUpdatedAtOk() (*int64, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetUpdatedAt

func (o *CampaignCampaignRecord) SetUpdatedAt(v int64)

SetUpdatedAt sets UpdatedAt field to given value.

HasUpdatedAt

func (o *CampaignCampaignRecord) HasUpdatedAt() bool

HasUpdatedAt returns a boolean if a field has been set.

[Back to Model list] [Back to API list] [Back to README]