GADMediatedNativeContentAd

@protocol GADMediatedNativeContentAd <GADMediatedNativeAd>

Provides methods used for constructing native content ads.

  • Primary text headline.

    Declaration

    Swift

    func headline() -> String!

    Objective-C

    - (NSString *_Nullable)headline;
  • Secondary text.

    Declaration

    Swift

    func body() -> String!

    Objective-C

    - (NSString *_Nullable)body;
  • List of large images. Each object is an instance of GADNativeAdImage.

    Declaration

    Swift

    func images() -> [Any]!

    Objective-C

    - (NSArray *_Nullable)images;
  • Small logo image.

    Declaration

    Swift

    func logo() -> Any!

    Objective-C

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

    Declaration

    Swift

    func callToAction() -> String!

    Objective-C

    - (NSString *_Nullable)callToAction;
  • Identifies the advertiser. For example, the advertiser’s name or visible URL.

    Declaration

    Swift

    func advertiser() -> String!

    Objective-C

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

    Declaration

    Swift

    optional func adChoicesView() -> Any!

    Objective-C

    - (id)adChoicesView;