Share your feedback and help shape the Google Mobile Ads SDK roadmap. Take the Google Mobile Ads SDK Annual Survey for 2023 before it closes on May 5th, 2023.

GoogleMobileAds Framework Reference

Stay organized with collections Save and categorize content based on your preferences.

GADMediaAspectRatio

enum GADMediaAspectRatio : NSInteger {}

Media aspect ratio.

  • Unknown media aspect ratio.

    Declaration

    Swift

    case unknown = 0

    Objective-C

    GADMediaAspectRatioUnknown = 0
  • Any media aspect ratio.

    Declaration

    Swift

    case any = 1

    Objective-C

    GADMediaAspectRatioAny = 1
  • Landscape media aspect ratio.

    Declaration

    Swift

    case landscape = 2

    Objective-C

    GADMediaAspectRatioLandscape = 2
  • Portrait media aspect ratio.

    Declaration

    Swift

    case portrait = 3

    Objective-C

    GADMediaAspectRatioPortrait = 3
  • Close to square media aspect ratio. This is not a strict 1:1 aspect ratio.

    Declaration

    Swift

    case square = 4

    Objective-C

    GADMediaAspectRatioSquare = 4