Returns a GADAdSize with the given width and the device’s portrait height. This ad size
allows Google servers to choose an optimal ad size less than or equal to the returned size. The
exact size of the ad returned is passed through the banner’s ad size delegate and is indicated
by the banner’s intrinsicContentSize. This ad size is most suitable for ads intended for scroll
views.
Returns a GADAdSize with the given width and the device’s landscape height. This ad size
allows Google servers to choose an optimal ad size less than or equal to the returned size. The
exact size of the ad returned is passed through the banner’s ad size delegate and is indicated
by the banner’s intrinsicContentSize. This ad size is most suitable for ads intended for scroll
views.
Returns a GADAdSize with the given width and the device’s height. This is a convenience
function to return GADPortraitInlineAdaptiveBannerAdSizeWithWidth or
GADLandscapeInlineAdaptiveBannerAdSizeWithWidth based on the current interface orientation.
This function must be called on the main queue.
Returns a GADAdSize with the given width and max height. This ad size allows Google servers to
choose an optimal ad size less than or equal to the returned size. The exact size of the ad
returned is passed through the banner’s ad size delegate and is indicated by the banner’s
intrinsicContentSize. This ad size is most suitable for ads intended for scroll views.
Returns a GADAdSize with the given width and a Google-optimized height to create a banner ad.
The size returned has an aspect ratio similar to that of GADAdSizeBanner, suitable for
anchoring near the top or bottom of your app. The height is never larger than 15% of the
device’s portrait height and is always between 50-90 points. This function always returns the
same height for any width / device combination.
Returns a GADAdSize with the given width and a Google-optimized height to create a banner ad.
The size returned is suitable for use in a banner ad anchored near the top or bottom of your
app, similar to use of GADAdSizeBanner. The height is never larger than 15% of the devices’s
landscape height and is always between 50-90 points. This function always returns the same
height for any width / device combination.
Returns a GADAdSize with the given width and a Google-optimized height. This is a convenience
function to return GADPortraitAnchoredAdaptiveBannerAdSizeWithWidth or
GADLandscapeAnchoredAdaptiveBannerAdSizeWithWidth based on the current interface orientation.
This function must be called on the main queue.
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 GADAdSizeInvalid.
[[["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 2023-06-26 UTC."],[[["This document outlines the available functions for defining and managing ad sizes within the Google Mobile Ads SDK."],["It categorizes functions into Inline Adaptive, Anchored Adaptive, Custom, and Convenience groups for easier navigation."],["Each function is described with its purpose, declaration in Swift and Objective-C, and any relevant parameters."],["The functions provide ways to create standard, adaptive, custom, and fluid ad sizes, and to perform operations like size comparisons and conversions."],["Developers can use these functions to request ads of specific dimensions, handle size adjustments, and ensure ad display compatibility within their applications."]]],[]]