Google Ads Ad Manager V1 Client - Class AdExchangeCreativeDetails (0.15.0)

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

An Ad Exchange dynamic allocation creative.

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

Namespace

Google \ Ads \ AdManager \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ native_eligible bool

Optional. Whether this creative is eligible for native ad-serving. This value is optional and defaults to false.

↳ interstitial bool

Optional. True if this creative is interstitial. An interstitial creative will not consider an impression served until it is fully rendered in the browser.

↳ allows_all_requested_sizes bool

Optional. True if this creative is eligible for all requested sizes.

↳ slot_id string

Output only. The ID of ad slot (inventory) that an advertiser might want to target.

↳ backfill_snippet string

Optional. The code snippet (ad tag) from Ad Exchange or AdSense to traffic the dynamic allocation creative. Only valid Ad Exchange or AdSense parameters will be considered. Any extraneous HTML or JavaScript will be ignored.

getNativeEligible

Optional. Whether this creative is eligible for native ad-serving. This value is optional and defaults to false.

Returns
Type Description
bool

hasNativeEligible

clearNativeEligible

setNativeEligible

Optional. Whether this creative is eligible for native ad-serving. This value is optional and defaults to false.

Parameter
Name Description
var bool
Returns
Type Description
$this

getInterstitial

Optional. True if this creative is interstitial. An interstitial creative will not consider an impression served until it is fully rendered in the browser.

Returns
Type Description
bool

hasInterstitial

clearInterstitial

setInterstitial

Optional. True if this creative is interstitial. An interstitial creative will not consider an impression served until it is fully rendered in the browser.

Parameter
Name Description
var bool
Returns
Type Description
$this

getAllowsAllRequestedSizes

Optional. True if this creative is eligible for all requested sizes.

Returns
Type Description
bool

hasAllowsAllRequestedSizes

clearAllowsAllRequestedSizes

setAllowsAllRequestedSizes

Optional. True if this creative is eligible for all requested sizes.

Parameter
Name Description
var bool
Returns
Type Description
$this

getSlotId

Output only. The ID of ad slot (inventory) that an advertiser might want to target.

Returns
Type Description
string

hasSlotId

clearSlotId

setSlotId

Output only. The ID of ad slot (inventory) that an advertiser might want to target.

Parameter
Name Description
var string
Returns
Type Description
$this

getBackfillSnippet

Optional. The code snippet (ad tag) from Ad Exchange or AdSense to traffic the dynamic allocation creative. Only valid Ad Exchange or AdSense parameters will be considered. Any extraneous HTML or JavaScript will be ignored.

Returns
Type Description
string

hasBackfillSnippet

clearBackfillSnippet

setBackfillSnippet

Optional. The code snippet (ad tag) from Ad Exchange or AdSense to traffic the dynamic allocation creative. Only valid Ad Exchange or AdSense parameters will be considered. Any extraneous HTML or JavaScript will be ignored.

Parameter
Name Description
var string
Returns
Type Description
$this