English
Log In
You can then view all documents
Installation/Android/Self-rendering Draw Video
Self-rendering Draw Video
Last updated 2022-01-19 22:05:56

Origin Rendering Draw Video

Introduction

Self-rendering Draw:: Suitable for use in vertical full-screen video streams. The access party can control the video to pause or continue to play. By default, video playback cannot be intervened. The configuration of video advertisements can be set on the platform.

Supported ad size: portrait video (aspect ratio 16:9)

Permission

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

Self-rendering Draw request method

Create TTAdNative object

Create ad request type parameter AdSlot

Parameter Description

Parameter

Description

setCodeId

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

setAdCount

The number of requests is 1-3, it is recommended to set 1

setImageAcceptedSize

Set the size of the requested ad Unit: px

Request ads

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

DrawFeedAdListener description

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)

onDrawFeedAdLoad()

Callback for successful ad request, get the view of ad video playback and put it into the ad container

TTFeedAd interface description

Get the view of the advertising video part through getAdView() and put it into the specified container. The access party can also obtain other advertising information, such as title, buttonText and other information, and customize the drawing of the entire advertising area, which can be in accordance with the style of your own application. Style as close as possible

Draw advertising behavior monitoring

Important!!! AdInteractionListener involves advertising billing, convertView must be called correctly and ViewGroup must be used

AdInteractionListener description

Callback

Description

onAdClicked()

Click the common area callback

onAdCreativeClick()

Click on creative area callback

onAdShow()

Advertising display callback

TTDrawFeedAd advertising object description

Draw video monitoring

DrawVideoListener description

Method

Description

onClickRetry()

Callback for ad click retry

onClick()

Click on the ad to view details or download callbacks

Destroy advertising objects

Destroy the ad view in the onDestroy callback method of Activity

Reference Demo

For native Draw ads, please refer to the DrawNativeVideoActivity example in Demo

Self-rendering Draw Note:

  1. AdInteractionListener involves advertising billing, and convertView must be called correctly. **ViewGroup must be used.
  2. Draw video does not support TTAdDislike logic


Contents
Contact us