MastheadAd class
Details for a Masthead Ad.
Constructors
-
MastheadAd({String? autoplayVideoDuration, String? autoplayVideoStartMillisecond, String? callToActionButtonLabel, String? callToActionFinalUrl, String? callToActionTrackingUrl, List<
YoutubeVideoDetails> ? companionYoutubeVideos, String? description, String? headline, bool? showChannelArt, YoutubeVideoDetails? video, String? videoAspectRatio}) - MastheadAd.fromJson(Map json_)
Properties
- autoplayVideoDuration ↔ String?
-
The duration of time the video will autoplay.
getter/setter pair
- autoplayVideoStartMillisecond ↔ String?
-
The amount of time in milliseconds after which the video will start to
play.
getter/setter pair
- callToActionButtonLabel ↔ String?
-
The text on the call-to-action button.
getter/setter pair
- callToActionFinalUrl ↔ String?
-
The destination URL for the call-to-action button.
getter/setter pair
- callToActionTrackingUrl ↔ String?
-
The tracking URL for the call-to-action button.
getter/setter pair
-
companionYoutubeVideos
↔ List<
YoutubeVideoDetails> ? -
The videos that appear next to the Masthead Ad on desktop.
getter/setter pair
- description ↔ String?
-
The description of the ad.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- headline ↔ String?
-
The headline of the ad.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showChannelArt ↔ bool?
-
Whether to show a background or banner that appears at the top of a
YouTube page.
getter/setter pair
- video ↔ YoutubeVideoDetails?
-
The YouTube video used by the ad.
getter/setter pair
- videoAspectRatio ↔ String?
-
The aspect ratio of the autoplaying YouTube video on the Masthead.
Possible string values are:
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited