| CLASS info |
| public abstract class NativeAd extends Object |
| Native ad. |
| Type | Name | Desc |
| @interface | NativeAd.NativeAdLoadedListener | Native ad loading success listener. |
| Constructor name |
| NativeAd() Native ad constructor. |
| Return | Method |
| abstract void | destroy() Destroys an ad object. |
| abstract void | dislikeAd(DislikeAdReason reason) Does not display the current ad. After this method is called, the current ad is closed. |
| abstract void | setAllowCustomClick() Enables custom tap gestures. |
| abstract String | getAdSource() Obtains an ad source. |
| abstract String | getDescription() Obtains the description of an ad. |
| abstract String | getCallToAction() Obtains the text to be displayed on a button, for example, View Details or Install. |
| abstract List<DislikeAdReason> | getDislikeAdReasons() Obtains the choice of not displaying the current ad. |
| abstract String | getTitle() Obtains the title of an ad. |
| abstract Image | getIcon() Obtains the icon of an ad. |
| abstract List<Image> | getImages() Obtains multi-image materials of an ad. |
| abstract VideoOperator | getVideoOperator() Obtains the video controller of an ad. |
| abstract boolean | isCustomClickAllowed() Checks whether custom tap gestures are enabled. |
| abstract boolean | isCustomDislikeThisAdEnabled() Checks whether custom ad closing is enabled. |
| abstract void | triggerClick(Bundle data) Reports a tap. |
| abstract void | recordClickEvent() Reports a custom tap gesture. |
| abstract void | recordImpressionEvent(Bundle data) Reports an ad impression. |
| abstract void | setDislikeAdListener(DislikeAdListener listener) Sets an ad closing listener. |
| Constructor |
| public NativeAd() |
| Native ad constructor. |
| Method |
| public abstract void destroy() |
| Destroys an ad object. After calling destroy(), do not call any other methods on the ad object. |
| Method |
| public abstract void dislikeAd(DislikeAdReason reason) |
| Does not display the current ad. After this method is called, the current ad is closed. |
Parameters
| Parameter name | Parameter desc |
| reason | Reason why a user chooses not to display the current ad. |
| Method |
| public abstract void setAllowCustomClick() |
| Enables custom tap gestures. |
| Method |
| public abstract String getAdSource() |
| Obtains an ad source. |
Return
| type | desc |
| String | Ad source. |
| Method |
| public abstract String getDescription() |
| Obtains the description of an ad. |
Return
| type | desc |
| String | Ad description. |
| Method |
| public abstract String getCallToAction() |
| Obtains the text to be displayed on a button, for example, View Details or Install. |
Return
| type | desc |
| String | Text to be displayed on a button. |
| Method |
| public abstract List<DislikeAdReason> getDislikeAdReasons() |
| Obtains the choice of not displaying the current ad. |
Return
| type | desc |
| List<DislikeAdReason> | Choice of not displaying the current ad. |
| Method |
| public abstract String getTitle() |
| Obtains the title of an ad. |
Return
| type | desc |
| String | Title of an ad. |
| Method |
| public abstract Image getIcon() |
| Obtains the icon of an ad. |
Return
| type | desc |
| Image | Icon of an ad. |
| Method |
| public abstract List<Image> getImages() |
| Obtains multi-image materials of an ad. |
Return
| type | desc |
| List<Image> | Multi-image materials of an ad. |
| Method |
| public abstract VideoOperator getVideoOperator() |
| Obtains the video controller of an ad. |
Return
| type | desc |
| VideoOperator | Video controller of an ad. |
| Method |
| public abstract boolean isCustomClickAllowed() |
| Checks whether custom tap gestures are enabled. |
Return
| type | desc |
| boolean | Whether custom tap gestures are enabled. |
| Method |
| public abstract boolean isCustomDislikeThisAdEnabled() |
| Checks whether custom ad closing is enabled. |
Return
| type | desc |
| boolean | Whether custom ad closing is enabled. |
| Method |
| public abstract void triggerClick(Bundle data) |
| Reports a tap. |
Parameters
| Parameter name | Parameter desc |
| data | Tap data. |
| Method |
| public abstract void recordClickEvent() |
| Reports a custom tap gesture. |
| Method |
| public abstract boolean recordImpressionEvent(Bundle data) |
| Reports an ad impression. |
Parameters
| Parameter name | Parameter desc |
| data | Impression data. |
Return
| type | desc |
| boolean | If an impression is recorded for an ad successfully, true is returned. Otherwise, false is returned. |
| Method |
| public abstract void setDislikeAdListener(DislikeAdListener listener) |
| Sets an ad closing listener. |
Parameters
| Parameter name | Parameter desc |
| listener | Ad closing listener. |