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

    Objective-C

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

    Declaration

    Objective-C

    extern GADAdSize GADAdSizeFullWidthPortraitWithHeight(CGFloat height)
  • Returns a custom GADAdSize that spans the full width of the application in landscape orientation with the height provided.

    Declaration

    Objective-C

    extern GADAdSize GADAdSizeFullWidthLandscapeWithHeight(CGFloat height)
  • Returns YES if the two GADAdSizes are equal, otherwise returns NO.

    Declaration

    Objective-C

    extern BOOL GADAdSizeEqualToSize(GADAdSize size1, GADAdSize size2)
  • Returns a CGSize for the provided a GADAdSize constant. If the GADAdSize is unknown, returns CGSizeZero.

    Declaration

    Objective-C

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

    Declaration

    Objective-C

    extern BOOL IsGADAdSizeValid(GADAdSize size)
  • Returns YES if |size| is a fluid ad size.

    Declaration

    Objective-C

    extern BOOL GADAdSizeIsFluid(GADAdSize size)
  • Returns a NSString describing the provided GADAdSize.

    Declaration

    Objective-C

    extern NSString *_Nonnull NSStringFromGADAdSize(GADAdSize size)
  • Returns an NSValue representing the GADAdSize.

    Declaration

    Objective-C

    extern NSValue *_Nonnull NSValueFromGADAdSize(GADAdSize size)
  • Returns a GADAdSize from an NSValue. Returns kGADAdSizeInvalid if the value is not a GADAdSize.

    Declaration

    Objective-C

    extern GADAdSize GADAdSizeFromNSValue(NSValue *_Nonnull value)