Google Ads Ad Manager V1 Client - Class YieldAdSource (0.17.0)

Reference documentation and code samples for the Google Ads Ad Manager V1 Client class YieldAdSource.

Represents an opportunity for a third party network to be mediated on a segment of inventory described in a YieldGroup.

Generated from protobuf message google.ads.admanager.v1.YieldAdSource

Namespace

Google \ Ads \ AdManager \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ open_bidding_settings YieldAdSource\OpenBiddingSettings

Settings for Open Bidding.

↳ sdk_mediation_settings YieldAdSource\SdkMediationSettings

Settings for mobile app display.

↳ ad_source_id int|string

Optional. Non-empty default. The ID of the ad source. This field is assigned by Google when the ad source is created. Provide this ID when updating an existing ad source; omit it when adding a new ad source.

↳ company string

Required. Immutable. The resource name of the Company. Format: networks/{network_code}/companies/{company_id}

↳ status int

Optional. User-assigned status of the ad source.

↳ manual_cpm Google\Type\Money

Optional. CPM manually assigned to this source.

↳ override_dynamic_cpm bool

Optional. If true, then the automatically collected CPM is ignored in favor of manualCpm.

getOpenBiddingSettings

Settings for Open Bidding.

Returns
Type Description
YieldAdSource\OpenBiddingSettings|null

hasOpenBiddingSettings

setOpenBiddingSettings

Settings for Open Bidding.

Parameter
Name Description
var YieldAdSource\OpenBiddingSettings
Returns
Type Description
$this

getSdkMediationSettings

Settings for mobile app display.

Returns
Type Description
YieldAdSource\SdkMediationSettings|null

hasSdkMediationSettings

setSdkMediationSettings

Settings for mobile app display.

Parameter
Name Description
var YieldAdSource\SdkMediationSettings
Returns
Type Description
$this

getAdSourceId

Optional. Non-empty default. The ID of the ad source. This field is assigned by Google when the ad source is created. Provide this ID when updating an existing ad source; omit it when adding a new ad source.

Returns
Type Description
int|string

hasAdSourceId

clearAdSourceId

setAdSourceId

Optional. Non-empty default. The ID of the ad source. This field is assigned by Google when the ad source is created. Provide this ID when updating an existing ad source; omit it when adding a new ad source.

Parameter
Name Description
var int|string
Returns
Type Description
$this

getCompany

Required. Immutable. The resource name of the Company.

Format: networks/{network_code}/companies/{company_id}

Returns
Type Description
string

hasCompany

clearCompany

setCompany

Required. Immutable. The resource name of the Company.

Format: networks/{network_code}/companies/{company_id}

Parameter
Name Description
var string
Returns
Type Description
$this

getStatus

Optional. User-assigned status of the ad source.

Returns
Type Description
int

hasStatus

clearStatus

setStatus

Optional. User-assigned status of the ad source.

Parameter
Name Description
var int
Returns
Type Description
$this

getManualCpm

Optional. CPM manually assigned to this source.

Returns
Type Description
Google\Type\Money|null

hasManualCpm

clearManualCpm

setManualCpm

Optional. CPM manually assigned to this source.

Parameter
Name Description
var Google\Type\Money
Returns
Type Description
$this

getOverrideDynamicCpm

Optional. If true, then the automatically collected CPM is ignored in favor of manualCpm.

Returns
Type Description
bool

hasOverrideDynamicCpm

clearOverrideDynamicCpm

setOverrideDynamicCpm

Optional. If true, then the automatically collected CPM is ignored in favor of manualCpm.

Parameter
Name Description
var bool
Returns
Type Description
$this

getDisplaySettings

Returns
Type Description
string