> For the complete documentation index, see [llms.txt](https://aatkit.gitbook.io/aatkit-cordova-integration/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aatkit.gitbook.io/aatkit-cordova-integration/other/reference/functions/hasadforplacement.md).

# hasAdForPlacement

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

Returns true if there is an ad loaded for given placementId.

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

```javascript
hasAdForPlacement(placementName, callback)
```

placementName **(REQUIRED)**

*string* Unique name of placement. The same name will be used in gravite.net account.

callback **(REQUIRED)**

*Callback\<Boolean>* Used to provide the function call result to JavaScript.

Parameters:

* Boolean - True if there is an ad loaded for given placementId.

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

```javascript
AATKitCordova.hasAdForPlacement("BannerPlacement", (hasAd) => {
                console.log("hasAd " + hasAd);
            });
```
