# onHaveAd

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

Notifies that placement has finished loading an ad successfully.

### Data passed by the event <a href="#markdown-header-data-passed-by-the-event" id="markdown-header-data-passed-by-the-event"></a>

**placementName**

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

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

```typescript
document.addEventListener('onHaveAd', (data: any) => {
  console.log('onHaveAd ' + data.placementName);
});
```
