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

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

    - (void)registerAdView:(nonnull UIView *)adView
                assetViews:
                    (nonnull NSDictionary<GADNativeAppInstallAssetID, UIView *> *)
                        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

    Objective-C

    - (void)registerAdView:(nonnull UIView *)adView
           clickableAssetViews:
               (nonnull NSDictionary<GADNativeAppInstallAssetID, UIView *> *)
                   clickableAssetViews
        nonclickableAssetViews:
            (nonnull NSDictionary<GADNativeAppInstallAssetID, UIView *> *)
                nonclickableAssetViews;

    Parameters