앱에 자체 볼륨 컨트롤 (예: 맞춤 음악 또는 음향 효과)이 있는 경우
Google 모바일 광고 SDK에 앱 볼륨을 공개하면 동영상 광고가
앱 볼륨 설정을 따릅니다. 이렇게 하면 사용자가
예상할 수 있는 오디오 볼륨이 있습니다.
볼륨 버튼 또는 OS 수준 볼륨 슬라이더로 조절되는 기기 볼륨
기기 오디오 출력의 볼륨을 결정합니다. 하지만 앱은
기기 볼륨에 상대적인 볼륨으로 오디오 맞춤
경험해 볼 수 있습니다
다음을 호출하여 Google 모바일 광고 SDK에 상대적인 앱 볼륨을 보고할 수 있습니다.
SetApplicationVolume() 메서드를 사용하여 지도 가장자리에
패딩을 추가할 수 있습니다. 유효한 광고 수량 값의 범위는 0.0입니다.
(무음)에서 1.0 (현재 기기 볼륨)로 설정합니다. 이 예시에서는
SDK에 대한 상대적인 앱 볼륨을 제공합니다.
// Set app volume to be half of current device volume.
MobileAds.SetApplicationVolume(0.5f);
[null,null,["최종 업데이트: 2024-09-08(UTC)"],[[["The `MobileAds` class allows you to manage global settings for the Mobile Ads SDK, including video ad volume."],["You can control the volume of video ads relative to your app's volume using `SetApplicationVolume()` for a better user experience."],["Muting or lowering app volume can impact video ad eligibility and potentially reduce ad revenue, so use volume controls judiciously and only when reflecting actual user preferences."]]],["The `MobileAds` class allows control over video ad volume. Apps with custom volume controls can set the relative app volume using `SetApplicationVolume()` with values from `0.0` (silent) to `1.0` (device volume). Muting the app is possible via `SetApplicationMuted(true)`. Default app volume is `1`, and the app is not muted. Lowering volume or muting reduces video ad eligibility and may lower revenue, thus these APIs should only reflect user volume choices.\n"]]