GoogleMobileAds Framework Reference
GADVideoOptions
Video ad options.
-
Indicates whether videos should start muted. By default this property value is YES.
Declaration
Swift
var shouldStartMuted: Bool { get set }
Objective-C
@property (nonatomic) BOOL startMuted;
-
Indicates whether the requested video should have custom controls enabled for
play/pause/mute/unmute.
Declaration
Swift
var areCustomControlsRequested: Bool { get set }
Objective-C
@property (nonatomic) BOOL customControlsRequested;
-
Indicates whether the requested video should have the click to expand behavior.
Declaration
Swift
var isClickToExpandRequested: Bool { get set }
Objective-C
@property (nonatomic) BOOL clickToExpandRequested;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-04 UTC.
[null,null,["Last updated 2025-02-04 UTC."],[[["`GADVideoOptions` provides customization settings for video ads displayed within Google Mobile Ads SDK."],["Control video playback behavior with options like starting muted (`startMuted`) and enabling custom controls (`customControlsRequested`)."],["Determine whether the video ad can expand upon clicking using the `clickToExpandRequested` property."]]],["GADVideoOptions configures video ad behavior. The `startMuted` property determines if videos begin muted, defaulting to YES. `customControlsRequested` dictates whether play/pause/mute controls are enabled. `clickToExpandRequested` specifies if the video should have a click-to-expand feature. These properties are accessible and modifiable via Swift and Objective-C, allowing developers to adjust the user's video ad experience.\n"]]