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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2021-03-03 UTC."],[],[],null,["# GoogleMobileAds Framework Reference\n\nFunctions\n=========\n\nThe following functions are available globally.\n[Custom Sizes\n------------](#/Custom%20Sizes)\n\n- `\n ``\n ``\n `\n\n ### [GADAdSizeFromCGSize](#/c:@F@GADAdSizeFromCGSize)\n\n `\n ` \n Returns a custom GADAdSize for the provided CGSize. Use this only if you require a non-standard\n size. Otherwise, use one of the standard size constants above. \n\n #### Declaration\n\n Objective-C \n\n extern /docs/reference/ios/googlemobileads/api/reference/Structs/GADAdSize GADAdSizeFromCGSize(CGSize size)\n\n- `\n ``\n ``\n `\n\n ### [GADAdSizeFullWidthPortraitWithHeight](#/c:@F@GADAdSizeFullWidthPortraitWithHeight)\n\n `\n ` \n Returns a custom GADAdSize that spans the full width of the application in portrait orientation\n with the height provided. \n\n #### Declaration\n\n Objective-C \n\n extern /docs/reference/ios/googlemobileads/api/reference/Structs/GADAdSize GADAdSizeFullWidthPortraitWithHeight(CGFloat height)\n\n- `\n ``\n ``\n `\n\n ### [GADAdSizeFullWidthLandscapeWithHeight](#/c:@F@GADAdSizeFullWidthLandscapeWithHeight)\n\n `\n ` \n Returns a custom GADAdSize that spans the full width of the application in landscape orientation\n with the height provided. \n\n #### Declaration\n\n Objective-C \n\n extern /docs/reference/ios/googlemobileads/api/reference/Structs/GADAdSize GADAdSizeFullWidthLandscapeWithHeight(CGFloat height)\n\n[Convenience Functions\n---------------------](#/Convenience%20Functions)\n\n- `\n ``\n ``\n `\n\n ### [GADAdSizeEqualToSize](#/c:@F@GADAdSizeEqualToSize)\n\n `\n ` \n Returns YES if the two GADAdSizes are equal, otherwise returns NO. \n\n #### Declaration\n\n Objective-C \n\n extern BOOL GADAdSizeEqualToSize(/docs/reference/ios/googlemobileads/api/reference/Structs/GADAdSize size1, /docs/reference/ios/googlemobileads/api/reference/Structs/GADAdSize size2)\n\n- `\n ``\n ``\n `\n\n ### [CGSizeFromGADAdSize](#/c:@F@CGSizeFromGADAdSize)\n\n `\n ` \n Returns a CGSize for the provided a GADAdSize constant. If the GADAdSize is unknown, returns\n CGSizeZero. \n\n #### Declaration\n\n Objective-C \n\n extern CGSize CGSizeFromGADAdSize(/docs/reference/ios/googlemobileads/api/reference/Structs/GADAdSize size)\n\n- `\n ``\n ``\n `\n\n ### [IsGADAdSizeValid](#/c:@F@IsGADAdSizeValid)\n\n `\n ` \n Returns YES if \\|size\\| is one of the predefined constants or is a custom GADAdSize generated by\n GADAdSizeFromCGSize. \n\n #### Declaration\n\n Objective-C \n\n extern BOOL IsGADAdSizeValid(/docs/reference/ios/googlemobileads/api/reference/Structs/GADAdSize size)\n\n- `\n ``\n ``\n `\n\n ### [GADAdSizeIsFluid](#/c:@F@GADAdSizeIsFluid)\n\n `\n ` \n Returns YES if \\|size\\| is a fluid ad size. \n\n #### Declaration\n\n Objective-C \n\n extern BOOL GADAdSizeIsFluid(/docs/reference/ios/googlemobileads/api/reference/Structs/GADAdSize size)\n\n- `\n ``\n ``\n `\n\n ### [NSStringFromGADAdSize](#/c:@F@NSStringFromGADAdSize)\n\n `\n ` \n Returns a NSString describing the provided GADAdSize. \n\n #### Declaration\n\n Objective-C \n\n extern NSString *_Nonnull NSStringFromGADAdSize(/docs/reference/ios/googlemobileads/api/reference/Structs/GADAdSize size)\n\n- `\n ``\n ``\n `\n\n ### [NSValueFromGADAdSize](#/c:@F@NSValueFromGADAdSize)\n\n `\n ` \n Returns an NSValue representing the GADAdSize. \n\n #### Declaration\n\n Objective-C \n\n extern NSValue *_Nonnull NSValueFromGADAdSize(/docs/reference/ios/googlemobileads/api/reference/Structs/GADAdSize size)\n\n- `\n ``\n ``\n `\n\n ### [GADAdSizeFromNSValue](#/c:@F@GADAdSizeFromNSValue)\n\n `\n ` \n Returns a GADAdSize from an NSValue. Returns kGADAdSizeInvalid if the value is not a GADAdSize. \n\n #### Declaration\n\n Objective-C \n\n extern /docs/reference/ios/googlemobileads/api/reference/Structs/GADAdSize GADAdSizeFromNSValue(NSValue *_Nonnull value)\n\n- `\n ``\n ``\n `\n\n ### [GADClosestValidSizeForAdSizes](#/c:@F@GADClosestValidSizeForAdSizes)\n\n `\n ` \n Returns the closest valid ad size from possibleAdSizes as compared to \\|original\\|. The selected\n size must be smaller than or equal in size to the original. The selected size must also be\n within a configurable fraction of the width and height of the original. If no valid size exists,\n returns kGADAdSizeInvalid. \n\n #### Declaration\n\n Objective-C \n\n extern /docs/reference/ios/googlemobileads/api/reference/Structs/GADAdSize\n GADClosestValidSizeForAdSizes(/docs/reference/ios/googlemobileads/api/reference/Structs/GADAdSize original,\n NSArray\u003cNSValue *\u003e *_Nonnull possibleAdSizes)"]]