Ads API .NET library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Google.Api.Ads.AdManager.v202305.AdUnitSize Class Reference

An More...

Properties

Size size [get, set]
 The permissible creative size that can be served inside this ad unit. More...
 
EnvironmentType environmentType [get, set]
 The environment type of the ad unit size. The default value is EnvironmentType::BROWSER. More...
 
bool environmentTypeSpecified [get, set]
 
AdUnitSize[] companions [get, set]
 The companions for this ad unit size. Companions are only valid if the environment is EnvironmentType::VIDEO_PLAYER. If the environment is EnvironmentType::BROWSER including companions results in an error. More...
 
string fullDisplayString [get, set]
 The full (including companion sizes, if applicable) display string of the size, e.g. More...
 
bool isAudio [get, set]
 Whether the inventory size is audio. If set to true, More...
 
bool isAudioSpecified [get, set]
 

Detailed Description

An

AdUnitSize represents the size of an ad in an ad unit. This also represents the environment and companions of a particular ad in an ad unit. In most cases, it is a simple size with just a width and a height (sometimes representing an aspect ratio).

Property Documentation

AdUnitSize [] Google.Api.Ads.AdManager.v202305.AdUnitSize.companions
getset

The companions for this ad unit size. Companions are only valid if the environment is EnvironmentType::VIDEO_PLAYER. If the environment is EnvironmentType::BROWSER including companions results in an error.

EnvironmentType Google.Api.Ads.AdManager.v202305.AdUnitSize.environmentType
getset

The environment type of the ad unit size. The default value is EnvironmentType::BROWSER.

bool Google.Api.Ads.AdManager.v202305.AdUnitSize.environmentTypeSpecified
getset

true, if a value is specified for environmentType, false otherwise.

string Google.Api.Ads.AdManager.v202305.AdUnitSize.fullDisplayString
getset

The full (including companion sizes, if applicable) display string of the size, e.g.

"300x250" or "300x250v (180x150)"

bool Google.Api.Ads.AdManager.v202305.AdUnitSize.isAudio
getset

Whether the inventory size is audio. If set to true,

Size will be set to "1x1" and EnvironmentType will be set to EnvironmentType::VIDEO_PLAYER regardless of user input.

bool Google.Api.Ads.AdManager.v202305.AdUnitSize.isAudioSpecified
getset

true, if a value is specified for isAudio, false otherwise.

Size Google.Api.Ads.AdManager.v202305.AdUnitSize.size
getset

The permissible creative size that can be served inside this ad unit.


The documentation for this class was generated from the following file: