To discuss and provide feedback on our products, join the official AdMob Discord channel in the Google Advertising and Measurement Community server.

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;

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年08月20日 UTC.