Before using capabilities of Ads Kit, check whether your atomic service has obtained corresponding permissions. If not, you need to declare these permissions.
Specifically, Ads Kit requires the following permissions:
Add the required permission to module.json5 of the module. The sample code is as follows:
{
"module": {
"requestPermissions": [
{
"name": "ohos.permission.INTERNET"
}
]
}
}