# firebase::gma::BoundingBox Struct Reference

# firebase::gma::BoundingBox


`#include <ad_view.h>`

The screen location and dimensions of an [AdView](https://developers.google.com/admob/cpp/reference/class/firebase/gma/ad-view.md.txt#classfirebase_1_1gma_1_1_ad_view) once it has been initialized.

## Summary

| ### Constructors and Destructors ||
|---|---|
| `BoundingBox()` Default constructor which initializes all member variables to 0. ||

| ### Public attributes ||
|---|---|
| `height` | `int` Height of the ad in pixels. |
| `position` | `AdView::Position` The position of the [AdView](https://developers.google.com/admob/cpp/reference/class/firebase/gma/ad-view.md.txt#classfirebase_1_1gma_1_1_ad_view) if one has been set as the target position, or kPositionUndefined otherwise. |
| `width` | `int` Width of the ad in pixels. |
| `x` | `int` Horizontal position of the ad in pixels from the left. |
| `y` | `int` Vertical position of the ad in pixels from the top. |

## Public attributes

### height

```c++
int firebase::gma::BoundingBox::height
```
Height of the ad in pixels.

### position

```c++
AdView::Position firebase::gma::BoundingBox::position
```
The position of the [AdView](https://developers.google.com/admob/cpp/reference/class/firebase/gma/ad-view.md.txt#classfirebase_1_1gma_1_1_ad_view) if one has been set as the target position, or kPositionUndefined otherwise.

### width

```c++
int firebase::gma::BoundingBox::width
```
Width of the ad in pixels.

### x

```c++
int firebase::gma::BoundingBox::x
```
Horizontal position of the ad in pixels from the left.

### y

```c++
int firebase::gma::BoundingBox::y
```
Vertical position of the ad in pixels from the top.

## Public functions

### BoundingBox

```c++
 firebase::gma::BoundingBox::BoundingBox()
```
Default constructor which initializes all member variables to 0.