Name | Type | Description | Notes |
---|---|---|---|
Id | string | ||
Name | string | ||
ExternalKey | Pointer to string | [optional] | |
Format | string | ||
Reward | Pointer to AdReward | [optional] | |
Provider | AdProvider |
func NewAdUnit(id string, name string, format string, provider AdProvider, ) *AdUnit
NewAdUnit instantiates a new AdUnit 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
func NewAdUnitWithDefaults() *AdUnit
NewAdUnitWithDefaults instantiates a new AdUnit 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
func (o *AdUnit) GetId() string
GetId returns the Id field if non-nil, zero value otherwise.
func (o *AdUnit) 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.
func (o *AdUnit) SetId(v string)
SetId sets Id field to given value.
func (o *AdUnit) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *AdUnit) 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.
func (o *AdUnit) SetName(v string)
SetName sets Name field to given value.
func (o *AdUnit) GetExternalKey() string
GetExternalKey returns the ExternalKey field if non-nil, zero value otherwise.
func (o *AdUnit) GetExternalKeyOk() (*string, bool)
GetExternalKeyOk returns a tuple with the ExternalKey field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *AdUnit) SetExternalKey(v string)
SetExternalKey sets ExternalKey field to given value.
func (o *AdUnit) HasExternalKey() bool
HasExternalKey returns a boolean if a field has been set.
func (o *AdUnit) GetFormat() string
GetFormat returns the Format field if non-nil, zero value otherwise.
func (o *AdUnit) GetFormatOk() (*string, bool)
GetFormatOk returns a tuple with the Format field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *AdUnit) SetFormat(v string)
SetFormat sets Format field to given value.
func (o *AdUnit) GetReward() AdReward
GetReward returns the Reward field if non-nil, zero value otherwise.
func (o *AdUnit) GetRewardOk() (*AdReward, bool)
GetRewardOk returns a tuple with the Reward field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *AdUnit) SetReward(v AdReward)
SetReward sets Reward field to given value.
func (o *AdUnit) HasReward() bool
HasReward returns a boolean if a field has been set.
func (o *AdUnit) GetProvider() AdProvider
GetProvider returns the Provider field if non-nil, zero value otherwise.
func (o *AdUnit) GetProviderOk() (*AdProvider, bool)
GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *AdUnit) SetProvider(v AdProvider)
SetProvider sets Provider field to given value.