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)
**Self-rendering interstitial ads: ** Reclaimed and no longer available for creation
Note:
- setImageAcceptedSize is a required field, the desired image size (required)
- When setNativeAdType requests native ads, be sure to call this method, request self-rendering interstitial setting parameter to TYPE_INTERACTION_AD
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 |
The access party can call
loadNativeAd(AdSlot adSlot, @NonNull NativeAdListener listener)
to load ads asynchronously
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.
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
Important!!! AdInteractionListener involves advertising billing, convertView must be called correctly and ViewGroup must be used
**Note: Cannot call **TTInteractionAd.showInteractionAd
in a child thread
Callback | Description |
onAdClicked() | Click the common area callback |
onAdCreativeClick() | Click on creative area callback |
onAdShow() | Advertising display callback |
Destroy the ad view in the onDestroy callback method of Activity
For self-rendering interstitial ads, please refer to the NativeInteractionActivity
example in Demo
TTInteractionAd.showInteractionAd
in a child threadOnline Customer Service24/7 Online Customer Service BotManual customer service, weekdays 10~ 12 o'clock/14~ 19 o'clock