public class AdMediaInfo
The minimal information required to play an ad. Note that multiple AdMediaInfo objects may resolve to the same content, but refer to different ads. Thus when comparing AdMediaInfo objects one should use the identity equality check, as opposed to comparing their URLs.
Summary
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-01-22 UTC.
[null,null,["Last updated 2025-01-22 UTC."],[[["`AdMediaInfo` objects contain the minimum data needed for ad playback."],["Different `AdMediaInfo` objects might point to the same ad content but represent distinct ads, requiring identity checks for comparison instead of URL comparisons."],["The primary way to access the ad content is through the `getUrl()` method, which provides the URL of the ad."]]],[]]