| CLASS info |
| public class HwAds extends Object |
| Ad initialization. |
| Return type | Method name |
| void | init(Context context) Initializes the HUAWEI Ads SDK. |
| void | init(Context context, String appCode) Initializes the HUAWEI Ads SDK. |
| String | getSDKVersion() Obtains the version number of the HUAWEI Ads SDK. |
| RequestOptions | getRequestOptions() Obtains the global request configuration. |
| void | setRequestOptions(RequestOptions requestOptions) Provides the global ad request configuration. |
| Method |
| public static void init(Context context) |
| Initializes the HUAWEI Ads SDK. |
Parameters
| Parameter name | Parameter desc |
| context | Context. |
| Method |
| public static void init(Context context, String appCode) |
| Initializes the HUAWEI Ads SDK. |
Parameters
| Parameter name | Parameter desc |
| context | Context. |
| appCode | App ID. |
| Method |
| public static String getSDKVersion() |
| Obtains the version number of the HUAWEI Ads SDK. |
Return
| type | desc |
| String | SDK version number. |
| Method |
| public static RequestOptions getRequestOptions() |
| Obtains the global request configuration. |
Return
| type | desc |
| RequestOptions | Global request configuration. |
| Method |
| public static void setRequestOptions(RequestOptions requestOptions) |
| Provides the global ad request configuration. |
Parameters
| Parameter name | Parameter desc |
| requestOptions | Global request configuration. |