| CLASS info |
| public static final class NativeAdConfiguration.Builder extends Object |
| Ad configuration builder. |
| Constructor name |
| Builder() Ad configuration builder constructor. |
| Return | Method |
| NativeAdConfiguration | build() Builds an ad configuration object. |
| NativeAdConfiguration.Builder | setAdSize(AdSize adSize) Sets the size of the request ad. |
| NativeAdConfiguration.Builder | setChoicesPosition(int choicesPosition) Sets the position of an ad choice icon. |
| NativeAdConfiguration.Builder | setMediaDirection(int direction) Sets the direction of an ad image. |
| NativeAdConfiguration.Builder | setMediaAspect(int aspect) Sets an image aspect ratio. |
| NativeAdConfiguration.Builder | setRequestCustomDislikeThisAd(boolean requestCustomDislikeThisAd) Specifies whether to customize the function of not displaying the ad. |
| NativeAdConfiguration.Builder | setRequestMultiImages(boolean requestMultiImages) Specifies whether to request multiple ad images. |
| NativeAdConfiguration.Builder | setReturnUrlsForImages(boolean returnUrls) Specifies whether to allow the SDK to download native ad images. |
| NativeAdConfiguration.Builder | setVideoConfiguration(VideoConfiguration videoOptions) Sets the information about native video. |
| constructor |
| public Builder() |
| Ad configuration builder constructor. |
| Method |
| public final NativeAdConfiguration build() |
| Constructs an ad configuration object. |
Return
| type | desc |
| NativeAdConfiguration | Ad configuration object. |
| Method |
| public final NativeAdConfiguration.Builder setAdSize(AdSize adSize) |
| Sets the size of the request ad. |
Parameters
| Parameter name | Parameter desc |
| adSize | ad size. |
Return
| type | desc |
| NativeAdConfiguration.Builder | Current object. |
| Method |
| public final NativeAdConfiguration.Builder setChoicesPosition(int choicesPosition) |
| Sets the position of an ad choice icon. |
Parameters
| Parameter name | Parameter desc |
| choicesPosition | Position of an ad choice icon. |
Return
| type | desc |
| NativeAdConfiguration.Builder | Current object. |
| Method |
| public final NativeAdConfiguration.Builder setMediaDirection(int direction) |
| Sets the direction of an ad image. |
Parameters
| Parameter name | Parameter desc |
| direction | Direction of an ad image. |
Return
| type | desc |
| NativeAdConfiguration.Builder | Current object. |
| Method |
| public final NativeAdConfiguration.Builder setMediaAspect(int aspect) |
| Sets an image aspect ratio. |
Parameters
| Parameter name | Parameter desc |
| aspect | Aspect ratio of an ad image. |
Return
| type | desc |
| NativeAdConfiguration.Builder | Current object. |
| Method |
| public final NativeAdConfiguration.Builder setRequestCustomDislikeThisAd(boolean requestCustomDislikeThisAd) |
| Specifies whether to customize the function of not displaying the ad. |
Parameters
| Parameter name | Parameter desc |
| requestCustomDislikeThisAd | Indicates whether to customize the function of not displaying the ad. |
Return
| type | desc |
| NativeAdConfiguration.Builder | Current object. |
| Method |
| public final NativeAdConfiguration.Builder setRequestMultiImages(Boolean requestMultiImages) |
| Specifies whether to request multiple ad images. |
Parameters
| Parameter name | Parameter desc |
| requestMultiImages | Indicates whether to request multiple ad images. |
Return
| type | desc |
| NativeAdConfiguration.Builder | Current object. |
| Method |
| public final NativeAdConfiguration.Builder setReturnUrlsForImages(boolean returnUrls) |
| Specifies whether to allow the SDK to download native ad images. |
Parameters
| Parameter name | Parameter desc |
| returnUrls | Indicates whether to allow the SDK to download native ad images. |
Return
| type | desc |
| NativeAdConfiguration.Builder | Current object. |
| Method |
| public final NativeAdConfiguration.Builder setVideoConfiguration(VideoConfiguration videoOptions) |
| Sets the information about native video. |
Parameters
| Parameter name | Parameter desc |
| videoOptions | Information about native video. |
Return
| type | desc |
| NativeAdConfiguration.Builder | Current object. |