GADNativeAppInstallAd

@interface GADNativeAppInstallAd : GADNativeAd

Native app install ad. To request this ad type, you need to pass kGADAdLoaderAdTypeNativeAppInstall (see GADAdLoaderAdTypes.h) to the |adTypes| parameter in GADAdLoader’s initializer method. If you request this ad type, your delegate must conform to the GADNativeAppInstallAdLoaderDelegate protocol.

  • App title.

    Declaration

    Swift

    var headline: String? { get }

    Objective-C

    @property (readonly, copy, nonatomic, nullable) NSString *headline;
  • Text that encourages user to take some action with the ad. For example Install.

    Declaration

    Swift

    var callToAction: String? { get }

    Objective-C

    @property (readonly, copy, nonatomic, nullable) NSString *callToAction;
  • Application icon.

    Declaration

    Swift

    var icon: GADNativeAdImage? { get }

    Objective-C

    @property (readonly, strong, nonatomic, nullable) GADNativeAdImage *icon;
  • App description.

    Declaration

    Swift

    var body: String? { get }

    Objective-C

    @property (readonly, copy, nonatomic, nullable) NSString *body;
  • The app store name. For example, App Store.

    Declaration

    Swift

    var store: String? { get }

    Objective-C

    @property (readonly, copy, nonatomic, nullable) NSString *store;
  • String representation of the app’s price.

    Declaration

    Swift

    var price: String? { get }

    Objective-C

    @property (readonly, copy, nonatomic, nullable) NSString *price;
  • Array of GADNativeAdImage objects related to the advertised application.

    Declaration

    Swift

    var images: [Any]? { get }

    Objective-C

    @property (readonly, strong, nonatomic, nullable) NSArray *images;
  • App store rating (0 to 5).

    Declaration

    Swift

    @NSCopying var starRating: NSDecimalNumber? { get }

    Objective-C

    @property (readonly, copy, nonatomic, nullable) NSDecimalNumber *starRating;
  • Video controller for controlling video playback in GADNativeAppInstallAdView’s mediaView.

    Declaration

    Swift

    var videoController: GADVideoController { get }

    Objective-C

    @property (readonly, strong, nonatomic)
        GADVideoController *_Nonnull videoController;
  • Registers ad view and asset views with this native ad.

    Declaration

    Swift

    func registerView(_ adView: Any!, assetViews: [AnyHashable : Any])

    Objective-C

    - (void)registerAdView:(id)adView assetViews:(nonnull NSDictionary *)assetViews;

    Parameters

    assetViews

    Dictionary of asset views keyed by asset IDs.

  • Registers ad view, clickable asset views, and nonclickable asset views with this native ad. Media view shouldn’t be registered as clickable.

    Declaration

    Swift

    func registerView(_ adView: Any!, clickableAssetViews: [AnyHashable : Any], nonclickableAssetViews: [AnyHashable : Any])

    Objective-C

    - (void)registerAdView:(id)adView
           clickableAssetViews:(nonnull NSDictionary *)clickableAssetViews
        nonclickableAssetViews:(nonnull NSDictionary *)nonclickableAssetViews;

    Parameters

    clickableAssetViews

    Dictionary of asset views that are clickable, keyed by asset IDs.

    nonclickableAssetViews

    Dictionary of asset views that are not clickable, keyed by asset IDs.

  • Unregisters ad view from this native ad. The corresponding asset views will also be unregistered.

    Declaration

    Swift

    func unregisterAdView()

    Objective-C

    - (void)unregisterAdView;