Self-rendering information flow: It is an information flow advertisement with a customizable layout. It contains four basic styles: big picture, small picture, group picture and video, phone call, application download, jump to landing page, jump Four types of interaction to the browser. Title and description length is 6-26 characters
Supported ad sizes:
- Large picture (Picture with aspect ratio: 1.78)
- Video (Aspect ratio: 1.78 video)
- Small image (Picture with aspect ratio: 1.52)
- Group pictures (three pictures with aspect ratio: 1.52)
**Self-rendering information flow ads: ** Reclaimed and no longer available for creation
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 |
Call the
TTAdNative.loadFeedAd(AdSlot adSlot, FeedAdListener listener)
method to load the feed asynchronously
Callback | Description |
onError() | Request failed callback |
onFeedAdLoad() | Request success callback |
Important!!! AdInteractionListener involves advertising billing, convertView must be called correctly and ViewGroup must be used
After loading the information flow advertisement, the access party needs to register the view that can be clicked in the information flow advertisement, that is, the TTFeedAd.registerViewForInteraction()
method to realize the functional interaction and calculation of the advertisement.
Contains the registration of the graphic click area and the registration of the additional creative button click area. For landing page ads, the user clicks on the graphic ad area to jump to the corresponding landing page, and clicks on the additional creative area to perform operations such as phone calls and application downloads.
Note: If you need to click on the graphic area to download or make a call, please pass the view of the graphic area to the creativeViewList, the detailed code is as follows
The sample code of the registration click View example is as follows, the sample fragment is called in the BaseAdapter getView()
method of Demo
Callback | Description |
onAdClicked() | Click the common area callback |
onAdCreativeClick() | Click on creative area callback |
onAdShow() | Advertising display callback |
Callback | Description |
onVideoLoad() | Video loading success callback |
onVideoError() | Video loading failed callback |
onVideoAdStartPlay() | Video start playing callback |
onVideoAdPaused() | Video ad pause callback |
onVideoAdContinuePlay() | Video ad needs to play callback |
onProgressUpdate() | Video playback progress callback |
onVideoAdComplete() | Video playback complete callback |
When the returned advertisement is of the application download type, that is, ad.getInteractionType() == TTAdConstant.INTERACTION_TYPE_DOWNLOAD, the access party can call the following sample code to access the Feed ad download controller:
Callback | 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 |
After obtaining TTFeedAd, call TTFeedAd.getDislikeDialog() to obtain the TTAdDislike object, and then set the user selection result callback for the object.
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
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 |
Destroy the ad view in the onDestroy callback method of Activity
Please refer to the CSJ Demo and the listitem_ad_pic.xml file under /res/layout/.
For detailed code of self-rendering rendering information flow using ListView
, please refer to FeedListActivity
in Demo
Use RecyclerView
to see FeedRecyclerActivity
in Demo
convertView
must be called correctly. **ViewGroup
must be used.Online Customer Service24/7 Online Customer Service BotManual customer service, weekdays 10~ 12 o'clock/14~ 19 o'clock