Stay organized with collections
Save and categorize content based on your preferences.
firebase::gma::BoundingBox
#include <ad_view.h>
The screen location and dimensions of an AdView 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
|
The position of the AdView 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
int firebase::gma::BoundingBox::height
Height of the ad in pixels.
position
AdView::Position firebase::gma::BoundingBox::position
The position of the AdView if one has been set as the target position, or kPositionUndefined otherwise.
width
int firebase::gma::BoundingBox::width
Width of the ad in pixels.
x
int firebase::gma::BoundingBox::x
Horizontal position of the ad in pixels from the left.
y
int firebase::gma::BoundingBox::y
Vertical position of the ad in pixels from the top.
Public functions
BoundingBox
firebase::gma::BoundingBox::BoundingBox()
Default constructor which initializes all member variables to 0.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-20 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-20 UTC."],[[["\u003cp\u003e\u003ccode\u003efirebase::gma::BoundingBox\u003c/code\u003e defines the on-screen location and dimensions of an initialized \u003ccode\u003eAdView\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties like height, width, and position (x, y coordinates) of the ad on the screen.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eposition\u003c/code\u003e attribute can reflect a targeted position for the \u003ccode\u003eAdView\u003c/code\u003e or be undefined.\u003c/p\u003e\n"],["\u003cp\u003eA default constructor initializes all member variables (height, width, x, y, position) to 0.\u003c/p\u003e\n"]]],[],null,["# firebase::gma::BoundingBox Struct Reference\n\nfirebase::gma::BoundingBox\n==========================\n\n\n`#include \u003cad_view.h\u003e`\n\nThe screen location and dimensions of an [AdView](/admob/cpp/reference/class/firebase/gma/ad-view#classfirebase_1_1gma_1_1_ad_view) once it has been initialized.\n\nSummary\n-------\n\n| ### Constructors and Destructors ||\n|---|---|\n| [BoundingBox](#structfirebase_1_1gma_1_1_bounding_box_1a6c84435b00b1f613028272e872a3e994)`()` Default constructor which initializes all member variables to 0. ||\n\n| ### Public attributes ||\n|----------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [height](#structfirebase_1_1gma_1_1_bounding_box_1ad28866fcbd391bce0a95d1bd501f869f) | `int` Height of the ad in pixels. |\n| [position](#structfirebase_1_1gma_1_1_bounding_box_1aec550ed66ccbe658901e3bf19e177d59) | [AdView::Position](/admob/cpp/reference/class/firebase/gma/ad-view#classfirebase_1_1gma_1_1_ad_view_1ab962353200f02b196b4230c3ac01c09b) The position of the [AdView](/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. |\n| [width](#structfirebase_1_1gma_1_1_bounding_box_1a62b11b9ed821a3db369366fecea0deaa) | `int` Width of the ad in pixels. |\n| [x](#structfirebase_1_1gma_1_1_bounding_box_1a911150ed29cf552f3230fe355c17f55f) | `int` Horizontal position of the ad in pixels from the left. |\n| [y](#structfirebase_1_1gma_1_1_bounding_box_1a8ea754120e05fa4ab812ec7c1f503aa5) | `int` Vertical position of the ad in pixels from the top. |\n\nPublic attributes\n-----------------\n\n### height\n\n```c++\nint firebase::gma::BoundingBox::height\n``` \nHeight of the ad in pixels. \n\n### position\n\n```c++\nAdView::Position firebase::gma::BoundingBox::position\n``` \nThe position of the [AdView](/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. \n\n### width\n\n```c++\nint firebase::gma::BoundingBox::width\n``` \nWidth of the ad in pixels. \n\n### x\n\n```c++\nint firebase::gma::BoundingBox::x\n``` \nHorizontal position of the ad in pixels from the left. \n\n### y\n\n```c++\nint firebase::gma::BoundingBox::y\n``` \nVertical position of the ad in pixels from the top.\n\nPublic functions\n----------------\n\n### BoundingBox\n\n```c++\n firebase::gma::BoundingBox::BoundingBox()\n``` \nDefault constructor which initializes all member variables to 0."]]