# showConsentDialogIfNeededOrRejected

### Overview <a href="#markdown-header-overview" id="markdown-header-overview"></a>

Presents the consent screen if it is required by the used CMP (i.e. no user consent has been set yet) or the user has rejected the consent.

### Syntax <a href="#markdown-header-syntax" id="markdown-header-syntax"></a>

```javascript
showConsentDialogIfNeededOrRejected(daysAgo);
```

placementName **(REQUIRED)**

_string_ Unique name of placement. The same name will be used in addapptr.com account.

### Examples <a href="#markdown-header-examples" id="markdown-header-examples"></a>

```javascript
AATKitCordova.showConsentDialogIfNeededOrRejected(30);
```
