DFPCustomRenderedAd

@interface DFPCustomRenderedAd : NSObject

Custom rendered ad. Your application renders the ad.

  • The ad’s HTML.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSString *_Nonnull adHTML;
  • The base URL of the ad’s HTML.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSURL *_Nonnull adBaseURL;
  • Call this method when the user clicks the ad.

    Declaration

    Swift

    func recordClick()

    Objective-C

    - (void)recordClick;
  • Call this method when the ad is visible to the user.

    Declaration

    Swift

    func recordImpression()

    Objective-C

    - (void)recordImpression;
  • Call this method after the ad has been rendered in a UIView object.

    Declaration

    Swift

    func finishedRenderingAdView(_ view: Any!)

    Objective-C

    - (void)finishedRenderingAdView:(id)view;