Skip to content

Commit 33cd8dc

Browse files
committed
Add deprecation notices to the headers.
1 parent 9da5a98 commit 33cd8dc

File tree

4 files changed

+21
-9
lines changed

4 files changed

+21
-9
lines changed

gma/src/include/firebase/gma.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ class Future {
6161
///
6262
/// The GMA API allows you to load and display mobile ads using the Google
6363
/// Mobile Ads SDK. Each ad format has its own header file.
64+
///
65+
/// @deprecated The Google Mobile Ads C++ SDK is now deprecated. Please see
66+
/// https://developers.google.com/admob/cpp/sdk for more information.
6467
namespace gma {
6568

6669
/// Initializes Google Mobile Ads (GMA) via Firebase.

gma/src/include/firebase/gma/ad_view.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ struct BoundingBox;
6363
/// ad_view->LoadAd(your_ad_request);
6464
/// }
6565
/// @endcode
66+
///
67+
/// @deprecated The Google Mobile Ads C++ SDK is now deprecated. Please see
68+
/// https://developers.google.com/admob/cpp/sdk for more information.
6669
class AdView {
6770
public:
6871
/// The possible screen positions for a @ref AdView, configured via
@@ -86,20 +89,20 @@ class AdView {
8689

8790
/// Creates an uninitialized @ref AdView object.
8891
/// @ref Initialize must be called before the object is used.
89-
AdView();
92+
FIREBASE_DEPRECATED AdView();
9093

9194
~AdView();
9295

9396
/// Initializes the @ref AdView object.
9497
/// @param[in] parent The platform-specific UI element that will host the ad.
9598
/// @param[in] ad_unit_id The ad unit ID to use when requesting ads.
9699
/// @param[in] size The desired ad size for the ad.
97-
Future<void> Initialize(AdParent parent, const char* ad_unit_id,
100+
FIREBASE_DEPRECATED Future<void> Initialize(AdParent parent, const char* ad_unit_id,
98101
const AdSize& size);
99102

100103
/// Returns a @ref Future that has the status of the last call to
101104
/// @ref Initialize.
102-
Future<void> InitializeLastResult() const;
105+
FIREBASE_DEPRECATED Future<void> InitializeLastResult() const;
103106

104107
/// Begins an asynchronous request for an ad. If successful, the ad will
105108
/// automatically be displayed in the AdView.

gma/src/include/firebase/gma/interstitial_ad.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,21 +69,24 @@ class InterstitialAdInternal;
6969
/// interstitial->Show();
7070
/// }
7171
/// @endcode
72+
///
73+
/// @deprecated The Google Mobile Ads C++ SDK is now deprecated. Please see
74+
/// https://developers.google.com/admob/cpp/sdk for more information.
7275
class InterstitialAd {
7376
public:
7477
/// Creates an uninitialized @ref InterstitialAd object.
7578
/// @ref Initialize must be called before the object is used.
76-
InterstitialAd();
79+
FIREBASE_DEPRECATED InterstitialAd();
7780

7881
~InterstitialAd();
7982

8083
/// Initialize the @ref InterstitialAd object.
8184
/// @param[in] parent The platform-specific UI element that will host the ad.
82-
Future<void> Initialize(AdParent parent);
85+
FIREBASE_DEPRECATED Future<void> Initialize(AdParent parent);
8386

8487
/// Returns a @ref Future containing the status of the last call to
8588
/// @ref Initialize.
86-
Future<void> InitializeLastResult() const;
89+
FIREBASE_DEPRECATED Future<void> InitializeLastResult() const;
8790

8891
/// Begins an asynchronous request for an ad.
8992
///

gma/src/include/firebase/gma/rewarded_ad.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ class RewardedAdInternal;
7171
/// rewarded->Show(&my_user_earned_reward_listener);
7272
/// }
7373
/// @endcode
74+
///
75+
/// @deprecated The Google Mobile Ads C++ SDK is now deprecated. Please see
76+
/// https://developers.google.com/admob/cpp/sdk for more information.
7477
class RewardedAd {
7578
public:
7679
/// Options for RewardedAd server-side verification callbacks. Set options on
@@ -86,17 +89,17 @@ class RewardedAd {
8689

8790
/// Creates an uninitialized @ref RewardedAd object.
8891
/// @ref Initialize must be called before the object is used.
89-
RewardedAd();
92+
FIREBASE_DEPRECATED RewardedAd();
9093

9194
~RewardedAd();
9295

9396
/// Initialize the @ref RewardedAd object.
9497
/// @param[in] parent The platform-specific UI element that will host the ad.
95-
Future<void> Initialize(AdParent parent);
98+
FIREBASE_DEPRECATED Future<void> Initialize(AdParent parent);
9699

97100
/// Returns a @ref Future containing the status of the last call to
98101
/// @ref Initialize.
99-
Future<void> InitializeLastResult() const;
102+
FIREBASE_DEPRECATED Future<void> InitializeLastResult() const;
100103

101104
/// Begins an asynchronous request for an ad.
102105
///

0 commit comments

Comments
 (0)