Android APIs
public interface

RawHtmlPublisherAdViewListener

com.google.android.gms.ads.doubleclick.RawHtmlPublisherAdViewListener

Class Overview

A listener for raw HTML banner ad.

Summary

Public Methods
abstract void renderRawHtmlAd(PublisherAdView publisherAdView, RawHtmlAd ad)
Called when a valid first-party ad response has been received and shouldUseCustomRendering(PublisherAdView, String, String) returns true.
abstract boolean shouldUseCustomRendering(PublisherAdView publisherAdView, String baseURL, String adHtml)
Called when a valid first-party ad response has been received.

Public Methods

public abstract void renderRawHtmlAd (PublisherAdView publisherAdView, RawHtmlAd ad)

Called when a valid first-party ad response has been received and shouldUseCustomRendering(PublisherAdView, String, String) returns true. Publishers should render the ad, and call onAdRendered(View) when the rendering is complete.

This method is invoked on the UI thread.

Parameters
publisherAdView The PublisherAdView in which the ad should be loaded.
ad The RawHtmlAd which contains information about this ad.

public abstract boolean shouldUseCustomRendering (PublisherAdView publisherAdView, String baseURL, String adHtml)

Called when a valid first-party ad response has been received. Return true if this ad should be custom rendered. Return false if the SDK should render it.

Parameters
publisherAdView The PublisherAdView in which the ad should be loaded.
baseURL The base URL of the ad HTML.
adHtml The HTML string of the ad.