GoogleMobileAds Framework Reference

  • GADVideoOptions provides customization settings for video ads, such as controlling playback, sound, and user interaction.

  • You can configure whether videos start muted by default, enable custom controls, or allow click-to-expand functionality.

  • These options are accessible through properties like startMuted, customControlsRequested, and clickToExpandRequested in both Swift and Objective-C.

GADVideoOptions


@interface GADVideoOptions : GADAdLoaderOptions

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;