English
Log In
You can then view all documents
Installation/Android/Self-rendering interstitial
Self-rendering interstitial
Last updated 2022-01-19 22:13:37

Origin Rendering interstitial

Introduction

Self-rendering interstitial:: Developers can get the material information of the advertisement for splicing

Supported ad sizes:

  • Large picture (Picture with aspect ratio: 1.78)
  • Small image (Picture with aspect ratio: 1.52)
  • Group pictures (three pictures with aspect ratio: 1.52)

Permission

**Self-rendering interstitial ads: ** Reclaimed and no longer available for creation

Self-rendering interstitial request method

Create TTAdNative object

复制

Create ad request type parameter AdSlot

Note:

  1. setImageAcceptedSize is a required field, the desired image size (required)
  2. When setNativeAdType requests native ads, be sure to call this method, request self-rendering interstitial setting parameter to TYPE_INTERACTION_AD
复制

Parameter Description

Parameter

Description

setCodeId()

The code ID created by the platform starts with 9 and 9 digits

setImageAcceptedSize()

Expected image size (required) Unit: px

setNativeAdType()

Request ad type

setAdCount()

The number of requested ads is 1-3

Request ads

The access party can call loadNativeAd(AdSlot adSlot, @NonNull NativeAdListener listener) to load ads asynchronously

复制

NativeAdListener

Callback

Description

onError()

The error code returned by the ad request failed callback indicates the reason for the ad request failure. For details, please see [link](https://www.pangle.cn/help/doc/5de4cc6d78c8690012a90aa5?from=ad. oceanengine.com&id=5de4cc6d78c8690012a90aa5)

onNativeAdLoad()

Callback for successful ad request

Note:
-Before addView, you need to call the removeAllViews method to remove all views on the control
-setNativeAdType(AdSlot.TYPE_INTERACTION_AD) //When requesting native ads, be sure to call this method and set the parameter to TYPE_INTERACTION_AD
-Self-rendering interstitial is to directly create a Dialog, create a layout in the dialog, and add the corresponding advertising elements.

TTFeedAd interface description

Get advertising information through getAdView(), such as title, buttonText, etc., and customize the drawing of the entire advertising area, which can be as close as possible to the style of your own application

复制

Interstitial advertising behavior monitoring

Important!!! AdInteractionListener involves advertising billing, convertView must be called correctly and ViewGroup must be used
**Note: Cannot call ** TTInteractionAd.showInteractionAd in a child thread

复制

AdInteractionListener description

Callback

Description

onAdClicked()

Click the common area callback

onAdCreativeClick()

Click on creative area callback

onAdShow()

Advertising display callback

Destroy advertising objects

Destroy the ad view in the onDestroy callback method of Activity

复制

Reference Demo

For self-rendering interstitial ads, please refer to the NativeInteractionActivity example in Demo

Self-rendering interstitial notes:

  1. **Cannot call ** TTInteractionAd.showInteractionAd in a child thread
复制
  1. Self-rendered interstitial ads do not support dislike logic


Contents
Contact us