Ir a la consola

GoogleMobileAds Framework Reference

GADMediatedUnifiedNativeAd

protocol GADMediatedUnifiedNativeAd : NSObjectProtocol

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

  • Headline.

    Declaration

    Swift

    var headline: String? { get }
  • Array of GADNativeAdImage objects.

    Declaration

    Swift

    var images: [GADNativeAdImage]? { get }
  • Description.

    Declaration

    Swift

    var body: String? { get }
  • Icon image.

    Declaration

    Swift

    var icon: GADNativeAdImage? { get }
  • Text that encourages user to take some action with the ad. For example Install.

    Declaration

    Swift

    var callToAction: String? { get }
  • App store rating (0 to 5).

    Declaration

    Swift

    @NSCopying var starRating: NSDecimalNumber? { get }
  • The app store name. For example, App Store.

    Declaration

    Swift

    var store: String? { get }
  • String representation of the app’s price.

    Declaration

    Swift

    var price: String? { get }
  • Identifies the advertiser. For example, the advertiser’s name or visible URL.

    Declaration

    Swift

    var advertiser: String? { get }