GoogleMobileAds Framework Reference
GADNativeAdImageAdLoaderOptions
Ad loader options for native ad image settings.
-
Indicates whether image asset content should be loaded by the SDK. If set to YES, the SDK will
not load image asset content and native ad image URLs can be used to fetch content. Defaults to
NO, image assets are loaded by the SDK.
Declaration
Swift
var isImageLoadingDisabled: Bool { get set }
Objective-C
@property (nonatomic) BOOL disableImageLoading;
-
Indicates whether multiple images should be loaded for each asset. Defaults to NO.
Declaration
Swift
var shouldRequestMultipleImages: Bool { get set }
Objective-C
@property (nonatomic) BOOL shouldRequestMultipleImages;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-04 UTC.
[null,null,["Last updated 2025-02-04 UTC."],[[["`GADNativeAdImageAdLoaderOptions` provides settings to control the loading of images for native ads."],["It allows publishers to disable the SDK's default image loading using `disableImageLoading` and provide their own method of fetching image content."],["Publishers can request multiple images for each asset by setting `shouldRequestMultipleImages` to YES."]]],["The `GADNativeAdImageAdLoaderOptions` class controls native ad image settings. It offers two key options: `disableImageLoading` and `shouldRequestMultipleImages`. `disableImageLoading`, when set to `YES`, prevents the SDK from loading image assets, allowing developers to load them using URLs; it defaults to `NO`. `shouldRequestMultipleImages`, when set to `YES`, requests that multiple images be loaded for each asset; it defaults to `NO`. These settings are available in both Swift and Objective-C.\n"]]