Files
sdk/docs/CampaignChannelMetric.md

5.9 KiB

CampaignChannelMetric

Properties

Name Type Description Notes
ExternalId Pointer to string ExternalID is the provider-side id of the execution the spend belongs to. Absent until the channel has launched. [optional]
Kind Pointer to string Kind is which channel this row is: paid, organic or email. It is also the row's identity — a campaign carries at most one channel per kind. [optional]
Platform Pointer to string Platform is the provider the spend was read from: meta, google, x, instagram, or the email provider. [optional]
SpendCents Pointer to int64 SpendCents is what the provider itself reports this channel spent, in CENTS. 0 when the channel never launched, when no executor is wired for it, or when the read failed — SpendError tells the last case apart from a genuine zero. [optional]
SpendError Pointer to string SpendError is why this channel's spend could not be read (connector not connected, provider error), as one secret-free line. Present only on failure; the campaign total then simply omits this channel rather than failing. [optional]
Status Pointer to string Status is the channel's launch state on the campaign — pending, live, paused, failed or unavailable. Only a live channel is asked for its spend at all. [optional]

Methods

NewCampaignChannelMetric

func NewCampaignChannelMetric() *CampaignChannelMetric

NewCampaignChannelMetric instantiates a new CampaignChannelMetric 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

NewCampaignChannelMetricWithDefaults

func NewCampaignChannelMetricWithDefaults() *CampaignChannelMetric

NewCampaignChannelMetricWithDefaults instantiates a new CampaignChannelMetric 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

GetExternalId

func (o *CampaignChannelMetric) GetExternalId() string

GetExternalId returns the ExternalId field if non-nil, zero value otherwise.

GetExternalIdOk

func (o *CampaignChannelMetric) GetExternalIdOk() (*string, bool)

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

SetExternalId

func (o *CampaignChannelMetric) SetExternalId(v string)

SetExternalId sets ExternalId field to given value.

HasExternalId

func (o *CampaignChannelMetric) HasExternalId() bool

HasExternalId returns a boolean if a field has been set.

GetKind

func (o *CampaignChannelMetric) GetKind() string

GetKind returns the Kind field if non-nil, zero value otherwise.

GetKindOk

func (o *CampaignChannelMetric) GetKindOk() (*string, bool)

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

SetKind

func (o *CampaignChannelMetric) SetKind(v string)

SetKind sets Kind field to given value.

HasKind

func (o *CampaignChannelMetric) HasKind() bool

HasKind returns a boolean if a field has been set.

GetPlatform

func (o *CampaignChannelMetric) GetPlatform() string

GetPlatform returns the Platform field if non-nil, zero value otherwise.

GetPlatformOk

func (o *CampaignChannelMetric) GetPlatformOk() (*string, bool)

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

SetPlatform

func (o *CampaignChannelMetric) SetPlatform(v string)

SetPlatform sets Platform field to given value.

HasPlatform

func (o *CampaignChannelMetric) HasPlatform() bool

HasPlatform returns a boolean if a field has been set.

GetSpendCents

func (o *CampaignChannelMetric) GetSpendCents() int64

GetSpendCents returns the SpendCents field if non-nil, zero value otherwise.

GetSpendCentsOk

func (o *CampaignChannelMetric) GetSpendCentsOk() (*int64, bool)

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

SetSpendCents

func (o *CampaignChannelMetric) SetSpendCents(v int64)

SetSpendCents sets SpendCents field to given value.

HasSpendCents

func (o *CampaignChannelMetric) HasSpendCents() bool

HasSpendCents returns a boolean if a field has been set.

GetSpendError

func (o *CampaignChannelMetric) GetSpendError() string

GetSpendError returns the SpendError field if non-nil, zero value otherwise.

GetSpendErrorOk

func (o *CampaignChannelMetric) GetSpendErrorOk() (*string, bool)

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

SetSpendError

func (o *CampaignChannelMetric) SetSpendError(v string)

SetSpendError sets SpendError field to given value.

HasSpendError

func (o *CampaignChannelMetric) HasSpendError() bool

HasSpendError returns a boolean if a field has been set.

GetStatus

func (o *CampaignChannelMetric) GetStatus() string

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

GetStatusOk

func (o *CampaignChannelMetric) 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 *CampaignChannelMetric) SetStatus(v string)

SetStatus sets Status field to given value.

HasStatus

func (o *CampaignChannelMetric) HasStatus() bool

HasStatus returns a boolean if a field has been set.

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