Stay organized with collections
Save and categorize content based on your preferences.
GoogleMobileAds.Api.VideoOptions
Options for controlling video playback in supported ad formats.
Summary
Public attributes
|
ClickToExpandRequested
|
bool
Indicates whether the requested video should have the click to expand behavior.
|
CustomControlsRequested
|
bool
Indicates whether the requested video should have custom controls enabled for play/pause/mute/unmute.
|
StartMuted
|
bool
Indicates whether videos should start muted.
|
Public attributes
ClickToExpandRequested
bool ClickToExpandRequested
Indicates whether the requested video should have the click to expand behavior.
CustomControlsRequested
bool CustomControlsRequested
Indicates whether the requested video should have custom controls enabled for play/pause/mute/unmute.
StartMuted
bool StartMuted
Indicates whether videos should start muted.
Public functions
VideoOptions
VideoOptions()
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.
[null,null,["Last updated 2025-08-20 UTC."],[[["\u003cp\u003e\u003ccode\u003eVideoOptions\u003c/code\u003e allows control over video playback in supported Google Mobile Ads formats.\u003c/p\u003e\n"],["\u003cp\u003eIt provides options to enable click-to-expand, custom controls (play/pause/mute/unmute), and starting videos muted.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use \u003ccode\u003eClickToExpandRequested\u003c/code\u003e, \u003ccode\u003eCustomControlsRequested\u003c/code\u003e, and \u003ccode\u003eStartMuted\u003c/code\u003e properties to customize video behavior.\u003c/p\u003e\n"],["\u003cp\u003eA new \u003ccode\u003eVideoOptions\u003c/code\u003e object is created using the \u003ccode\u003eVideoOptions()\u003c/code\u003e constructor.\u003c/p\u003e\n"]]],["The `VideoOptions` class in GoogleMobileAds.Api controls video playback in ads. Key actions include creating a new `VideoOptions` object and setting three boolean attributes: `ClickToExpandRequested`, `CustomControlsRequested`, and `StartMuted`. These attributes determine if the video should expand on click, have custom play/pause/mute controls, and begin muted, respectively. Developers can configure these settings to tailor the video ad experience.\n"],null,["# GoogleMobileAds.Api.VideoOptions Class Reference\n\nGoogleMobileAds.Api.VideoOptions\n================================\n\nOptions for controlling video playback in supported ad formats.\n\nSummary\n-------\n\n| ### Constructors and Destructors ||\n|---|---|\n| [VideoOptions](#class_google_mobile_ads_1_1_api_1_1_video_options_1a4c2c6cca5af6f0c699b3904a1e3412a8)`()` Create a new [VideoOptions](/admob/unity/reference/class/google-mobile-ads/api/video-options#class_google_mobile_ads_1_1_api_1_1_video_options) object. ||\n\n| ### Public attributes ||\n|------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------|\n| [ClickToExpandRequested](#class_google_mobile_ads_1_1_api_1_1_video_options_1a27990391e58f1e4d316a3e5c2fe23dc6) | `bool` Indicates whether the requested video should have the click to expand behavior. |\n| [CustomControlsRequested](#class_google_mobile_ads_1_1_api_1_1_video_options_1a7983f626f16badf706438ee91454fad6) | `bool` Indicates whether the requested video should have custom controls enabled for play/pause/mute/unmute. |\n| [StartMuted](#class_google_mobile_ads_1_1_api_1_1_video_options_1a444efc8b3a721b50df41473b7db30fc3) | `bool` Indicates whether videos should start muted. |\n\nPublic attributes\n-----------------\n\n### ClickToExpandRequested\n\n```c#\nbool ClickToExpandRequested\n``` \nIndicates whether the requested video should have the click to expand behavior. \n\n### CustomControlsRequested\n\n```c#\nbool CustomControlsRequested\n``` \nIndicates whether the requested video should have custom controls enabled for play/pause/mute/unmute. \n\n### StartMuted\n\n```c#\nbool StartMuted\n``` \nIndicates whether videos should start muted.\n\nPublic functions\n----------------\n\n### VideoOptions\n\n```c#\n VideoOptions()\n``` \nCreate a new [VideoOptions](/admob/unity/reference/class/google-mobile-ads/api/video-options#class_google_mobile_ads_1_1_api_1_1_video_options) object."]]