> 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/getadinfo.md).

# getAdInfo

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

After loading an ad, allows to access the loaded ad information by accessing the adInfo property of the fullscreen or rewarded video placement.

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

```javascript
getAdInfo(placementName, callback)
```

placementName **(REQUIRED)**

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

callback **(REQUIRED)**

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

JSON object fields:

* price
* currencyCode
* precision

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

```javascript
AATKitCordova.getAdInfo("fullscreenAd", (adInfo) => {
    console.log("FullscreenAd AdInfo price: " + adInfo.price + ", currencyCode: " + adInfo.currencyCode + ", precision: " + adInfo.precision);
});
```
