# 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#classfirebase_1_1gma_1_1_ad_view) once it has been initialized.

## Summary

| ### Constructors and Destructors ||
|---|---|
| `https://developers.google.com/admob/cpp/reference/struct/firebase/gma/bounding-box#structfirebase_1_1gma_1_1_bounding_box_1a6c84435b00b1f613028272e872a3e994()` Default constructor which initializes all member variables to 0. ||

| ### Public attributes ||
|---|---|
| `https://developers.google.com/admob/cpp/reference/struct/firebase/gma/bounding-box#structfirebase_1_1gma_1_1_bounding_box_1ad28866fcbd391bce0a95d1bd501f869f` | `int` Height of the ad in pixels. |
| `https://developers.google.com/admob/cpp/reference/struct/firebase/gma/bounding-box#structfirebase_1_1gma_1_1_bounding_box_1aec550ed66ccbe658901e3bf19e177d59` | `https://developers.google.com/admob/cpp/reference/class/firebase/gma/ad-view#classfirebase_1_1gma_1_1_ad_view_1ab962353200f02b196b4230c3ac01c09b` The position of the [AdView](https://developers.google.com/admob/cpp/reference/class/firebase/gma/ad-view#classfirebase_1_1gma_1_1_ad_view) if one has been set as the target position, or kPositionUndefined otherwise. |
| `https://developers.google.com/admob/cpp/reference/struct/firebase/gma/bounding-box#structfirebase_1_1gma_1_1_bounding_box_1a62b11b9ed821a3db369366fecea0deaa` | `int` Width of the ad in pixels. |
| `https://developers.google.com/admob/cpp/reference/struct/firebase/gma/bounding-box#structfirebase_1_1gma_1_1_bounding_box_1a911150ed29cf552f3230fe355c17f55f` | `int` Horizontal position of the ad in pixels from the left. |
| `https://developers.google.com/admob/cpp/reference/struct/firebase/gma/bounding-box#structfirebase_1_1gma_1_1_bounding_box_1a8ea754120e05fa4ab812ec7c1f503aa5` | `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#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.