5.7 KiB
CampaignCampaignWrite
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| Audience | Pointer to string | Audience is the segment or audience selector this campaign targets. | [optional] |
| Budget | Pointer to int64 | Budget is the campaign's total budget in CENTS. Negative reads as 0. | [optional] |
| Channels | Pointer to []CampaignChannelSpec | Channels are the fan-out targets, at most one per kind (paid, organic, email) and at most 12. A channel's status and provider id are server-owned: whatever the caller sends for them is replaced with "pending". | [optional] |
| Content | Pointer to []string | Content is the ordered creative set. Content[0] is the active creative and the rest are A/B variants; at most 32, empty entries dropped. | [optional] |
| Name | Pointer to string | Name is the campaign's display name. Required; trimmed and capped at 2048 characters. | [optional] |
| ScheduleAt | Pointer to int64 | ScheduleAt is when the campaign should run, in unix seconds. Negative reads as 0 (immediately). | [optional] |
Methods
NewCampaignCampaignWrite
func NewCampaignCampaignWrite() *CampaignCampaignWrite
NewCampaignCampaignWrite instantiates a new CampaignCampaignWrite 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
NewCampaignCampaignWriteWithDefaults
func NewCampaignCampaignWriteWithDefaults() *CampaignCampaignWrite
NewCampaignCampaignWriteWithDefaults instantiates a new CampaignCampaignWrite 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 *CampaignCampaignWrite) GetAudience() string
GetAudience returns the Audience field if non-nil, zero value otherwise.
GetAudienceOk
func (o *CampaignCampaignWrite) 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 *CampaignCampaignWrite) SetAudience(v string)
SetAudience sets Audience field to given value.
HasAudience
func (o *CampaignCampaignWrite) HasAudience() bool
HasAudience returns a boolean if a field has been set.
GetBudget
func (o *CampaignCampaignWrite) GetBudget() int64
GetBudget returns the Budget field if non-nil, zero value otherwise.
GetBudgetOk
func (o *CampaignCampaignWrite) 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 *CampaignCampaignWrite) SetBudget(v int64)
SetBudget sets Budget field to given value.
HasBudget
func (o *CampaignCampaignWrite) HasBudget() bool
HasBudget returns a boolean if a field has been set.
GetChannels
func (o *CampaignCampaignWrite) GetChannels() []CampaignChannelSpec
GetChannels returns the Channels field if non-nil, zero value otherwise.
GetChannelsOk
func (o *CampaignCampaignWrite) 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 *CampaignCampaignWrite) SetChannels(v []CampaignChannelSpec)
SetChannels sets Channels field to given value.
HasChannels
func (o *CampaignCampaignWrite) HasChannels() bool
HasChannels returns a boolean if a field has been set.
GetContent
func (o *CampaignCampaignWrite) GetContent() []string
GetContent returns the Content field if non-nil, zero value otherwise.
GetContentOk
func (o *CampaignCampaignWrite) 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 *CampaignCampaignWrite) SetContent(v []string)
SetContent sets Content field to given value.
HasContent
func (o *CampaignCampaignWrite) HasContent() bool
HasContent returns a boolean if a field has been set.
GetName
func (o *CampaignCampaignWrite) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
GetNameOk
func (o *CampaignCampaignWrite) 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 *CampaignCampaignWrite) SetName(v string)
SetName sets Name field to given value.
HasName
func (o *CampaignCampaignWrite) HasName() bool
HasName returns a boolean if a field has been set.
GetScheduleAt
func (o *CampaignCampaignWrite) GetScheduleAt() int64
GetScheduleAt returns the ScheduleAt field if non-nil, zero value otherwise.
GetScheduleAtOk
func (o *CampaignCampaignWrite) 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 *CampaignCampaignWrite) SetScheduleAt(v int64)
SetScheduleAt sets ScheduleAt field to given value.
HasScheduleAt
func (o *CampaignCampaignWrite) HasScheduleAt() bool
HasScheduleAt returns a boolean if a field has been set.