CustomRenderedAd | Android Developers

Quicknav Quicknav
Links

- Google Play Developer Console
- Android Developers Blog
- About Android

Android Sites

- Android.com
- Android Developers
- Android Open Source Project

Language
close

- - About
  - Wear
  - TV
  - Auto
- - Get Started
  - Devices
  - Style
  - Patterns
  - Building Blocks
  - Downloads
  - Videos
- - Training
  - API Guides
  - Reference
  - Tools
  - Google Services
  - Samples
- - Google Play
  - Essentials
  - Get Users
  - Engage & Retain
  - Monetize
  - Analyze
  - Tools & Reference
  - Developer Stories

## Results

Loading...
public interface

# CustomRenderedAd

com.google.android.gms.ads.doubleclick.CustomRenderedAd

## Class Overview

Interface that contains information about custom rendered ads.

## Summary

Public Methods
abstract String | getBaseUrl() Returns the base URL as a String value.
abstract String | getContent() Returns the ad content string.
abstract void | onAdRendered(View view) Notifies the SDK that ad has finished rendering.
abstract void | recordClick() Records the click of the ad.
abstract void | recordImpression() Records the impression of the ad.

## Public Methods

#### public abstract String getBaseUrl ()

Returns the base URL as a String value. The base URL can be used to get an absolute path when the ad content assets use relative links.

#### public abstract String getContent ()

Returns the ad content string. This can be an HTML or JSON string, or any server template which contains assets for the ad.

#### public abstract void onAdRendered (View view)

Notifies the SDK that ad has finished rendering.

##### Parameters

view | The rendered view of the ad.

#### public abstract void recordClick ()

Records the click of the ad.

#### public abstract void recordImpression ()

Records the impression of the ad.