devicePreference property

String? devicePreference
getter/setter pair

The device preference for the ad.

You can only specify a preference for mobile devices. When this preference is set the ad will be preferred over other ads when being displayed on a mobile device. The ad can still be displayed on other device types, for example, if no other ads are available. If unspecified (no device preference), all devices are targeted. This is only supported by some ad types. Possible string values are:

  • "UNSPECIFIED" : Not specified.
  • "UNKNOWN" : The value is unknown in this version.
  • "MOBILE" : Mobile devices with full browsers.
  • "TABLET" : Tablets with full browsers.
  • "DESKTOP" : Computers.
  • "CONNECTED_TV" : Smart TVs and game consoles.
  • "OTHER" : Other device types.

Implementation

core.String? devicePreference;