English
Log In
You can then view all documents
Installation/Android/Android self-rendering basic module configuration instructions
Android self-rendering basic module configuration instructions
Last updated 2022-01-19 21:59:39

Android Origin Rendering basic module configuration instructions

TTNativeAd object

Effective range:

Scope: Self-rendering information flow, self-rendering Draw, self-rendering interstitial, self-rendering Banner

TTNativeAd interface description

复制

-The self-rendering banner and the self-rendering interstitial request ads use different types
-setNativeAdType(AdSlot.TYPE_INTERACTION_AD)//When requesting native ads, be sure to call this method, Set the parameter to TYPE_BANNER or TYPE_INTERACTION_AD
-Self-rendering banner is to create a view on the FrameLayout control, add advertising elements to the view, and bind the view to the corresponding control
-Self-rendering interstitial is to directly create a Dialog, create a layout in the dialog, and add the corresponding advertising elements.

Dislike

Effective range:

Dislike logic of self-rendering information flow advertisement and banner advertisement

introduce

The SDK provides the Dislike logic of Information Flow Advertising and Banner Advertising for the access party. When the user chooses to close the advertisement, there will be a prompt asking the user, including "Not interested" and "Have seen" options for the user to choose. This feedback is mainly used for the advertising strategy of Toutiao ads on the client side, to optimize and increase the click-through rate of the ads, to increase the effectiveness of the ads and the revenue of partners.

Ad access Dislike

After obtaining TTFeedAd or TTBannerAd, call TTFeedAd.getDislikeDialog() or TTBannerAd.getDislikeDialog() to obtain the TTAdDislike object. DislikeInteractionCallback selects the result callback interface for the user
The following logic is the logic in the CSJ version 3500 SDK. SDK developers below 3500 version can refer to the corresponding demo for integration

复制
Turn off ad monitoring
DislikeInteractionCallback

Callback

Description

onItemClick()

Callback when user clicks filterWord in the case of custom style

onClick()

User clicked "Why see this ad" in the case of custom styles

onSelected()

Default dislike style, click filterWord to call back. Developers can remove ads in this callback

onCancel()

The default dislike style, click to cancel the callback

onShow()

default dislike style, dislike pop-up window display back

onRefuse()

The default dislike style, the user repeatedly clicks the dislike button to call back. Version 3600 is abolished

Download monitor

Effective range

All CSJ advertisement types can monitor the download progress according to this callback

Download callback registration

The SDK provides a download status listener for application download advertisements. The access party can register the listener to monitor changes in the download status. The listener supports callbacks for not downloading, downloading, download pause, download failure, download complete, and installation complete.
Example of use:

复制

下载监听回调说明

复制
TTAppDownloadListener

Method

Description

onIdle()

Binding download listener callback

onDownloadActive()

Callback in downloading

onDownloadPaused()

Download Paused Callback

onDownloadFailed()

Download failed callback

onDownloadFinished()

Download complete callback

onInstalled()

Installation complete callback


Contents
Contact us