GADMediatedNativeAppInstallAd

@protocol GADMediatedNativeAppInstallAd <GADMediatedNativeAd>

Provides methods used for constructing native app install ads. The adapter must return an object conforming to this protocol for native app install requests.

  • App title.

    Declaration

    Swift

    func headline() -> String?

    Objective-C

    - (NSString *_Nullable)headline;
  • Array of GADNativeAdImage objects related to the advertised application.

    Declaration

    Swift

    func images() -> [Any]?

    Objective-C

    - (NSArray *_Nullable)images;
  • App description.

    Declaration

    Swift

    func body() -> String?

    Objective-C

    - (NSString *_Nullable)body;
  • Application icon.

    Declaration

    Swift

    func icon() -> GADNativeAdImage?

    Objective-C

    - (GADNativeAdImage *_Nullable)icon;
  • Text that encourages user to take some action with the ad. For example Install.

    Declaration

    Swift

    func callToAction() -> String?

    Objective-C

    - (NSString *_Nullable)callToAction;
  • App store rating (0 to 5).

    Declaration

    Swift

    func starRating() -> NSDecimalNumber?

    Objective-C

    - (NSDecimalNumber *_Nullable)starRating;
  • The app store name. For example, App Store.

    Declaration

    Swift

    func store() -> String?

    Objective-C

    - (NSString *_Nullable)store;
  • String representation of the app’s price.

    Declaration

    Swift

    func price() -> String?

    Objective-C

    - (NSString *_Nullable)price;
  • AdChoices view.

    Declaration

    Swift

    optional func adChoicesView() -> Any!

    Objective-C

    - (id)adChoicesView;