GoogleMobileAds Framework Reference

Functions

The following functions are available globally.

  • Returns a custom GADAdSize for the provided CGSize. Use this only if you require a non-standard size. Otherwise, use one of the standard size constants above.

    Declaration

    Swift

    func GADAdSizeFromCGSize(_ size: CGSize) -> GADAdSize
  • Returns a custom GADAdSize that spans the full width of the application in portrait orientation with the height provided.

    Declaration

    Swift

    func GADAdSizeFullWidthPortraitWithHeight(_ height: CGFloat) -> GADAdSize
  • Returns a custom GADAdSize that spans the full width of the application in landscape orientation with the height provided.

    Declaration

    Swift

    func GADAdSizeFullWidthLandscapeWithHeight(_ height: CGFloat) -> GADAdSize
  • Returns YES if the two GADAdSizes are equal, otherwise returns NO.

    Declaration

    Swift

    func GADAdSizeEqualToSize(_ size1: GADAdSize, _ size2: GADAdSize) -> Bool
  • Returns a CGSize for the provided a GADAdSize constant. If the GADAdSize is unknown, returns CGSizeZero.

    Declaration

    Swift

    func CGSizeFromGADAdSize(_ size: GADAdSize) -> CGSize
  • Returns YES if |size| is one of the predefined constants or is a custom GADAdSize generated by GADAdSizeFromCGSize.

    Declaration

    Swift

    func IsGADAdSizeValid(_ size: GADAdSize) -> Bool
  • Returns YES if |size| is a fluid ad size.

    Declaration

    Swift

    func GADAdSizeIsFluid(_ size: GADAdSize) -> Bool
  • Returns a NSString describing the provided GADAdSize.

    Declaration

    Swift

    func NSStringFromGADAdSize(_ size: GADAdSize) -> String
  • Returns an NSValue representing the GADAdSize.

    Declaration

    Swift

    func NSValueFromGADAdSize(_ size: GADAdSize) -> NSValue
  • Returns a GADAdSize from an NSValue. Returns kGADAdSizeInvalid if the value is not a GADAdSize.

    Declaration

    Swift

    func GADAdSizeFromNSValue(_ value: NSValue) -> GADAdSize
  • Returns the closest valid ad size from possibleAdSizes as compared to |original|. The selected size must be smaller than or equal in size to the original. The selected size must also be within a configurable fraction of the width and height of the original. If no valid size exists, returns kGADAdSizeInvalid.

    Declaration

    Swift

    func GADClosestValidSizeForAdSizes(_ original: GADAdSize, _ possibleAdSizes: [NSValue]) -> GADAdSize
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy