File tree Expand file tree Collapse file tree 4 files changed +21
-9
lines changed Expand file tree Collapse file tree 4 files changed +21
-9
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,9 @@ class Future {
61
61
// /
62
62
// / The GMA API allows you to load and display mobile ads using the Google
63
63
// / 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.
64
67
namespace gma {
65
68
66
69
// / Initializes Google Mobile Ads (GMA) via Firebase.
Original file line number Diff line number Diff line change @@ -63,6 +63,9 @@ struct BoundingBox;
63
63
// / ad_view->LoadAd(your_ad_request);
64
64
// / }
65
65
// / @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.
66
69
class AdView {
67
70
public:
68
71
// / The possible screen positions for a @ref AdView, configured via
@@ -86,20 +89,20 @@ class AdView {
86
89
87
90
// / Creates an uninitialized @ref AdView object.
88
91
// / @ref Initialize must be called before the object is used.
89
- AdView ();
92
+ FIREBASE_DEPRECATED AdView ();
90
93
91
94
~AdView ();
92
95
93
96
// / Initializes the @ref AdView object.
94
97
// / @param[in] parent The platform-specific UI element that will host the ad.
95
98
// / @param[in] ad_unit_id The ad unit ID to use when requesting ads.
96
99
// / @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,
98
101
const AdSize& size);
99
102
100
103
// / Returns a @ref Future that has the status of the last call to
101
104
// / @ref Initialize.
102
- Future<void > InitializeLastResult () const ;
105
+ FIREBASE_DEPRECATED Future<void > InitializeLastResult () const ;
103
106
104
107
// / Begins an asynchronous request for an ad. If successful, the ad will
105
108
// / automatically be displayed in the AdView.
Original file line number Diff line number Diff line change @@ -69,21 +69,24 @@ class InterstitialAdInternal;
69
69
// / interstitial->Show();
70
70
// / }
71
71
// / @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.
72
75
class InterstitialAd {
73
76
public:
74
77
// / Creates an uninitialized @ref InterstitialAd object.
75
78
// / @ref Initialize must be called before the object is used.
76
- InterstitialAd ();
79
+ FIREBASE_DEPRECATED InterstitialAd ();
77
80
78
81
~InterstitialAd ();
79
82
80
83
// / Initialize the @ref InterstitialAd object.
81
84
// / @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);
83
86
84
87
// / Returns a @ref Future containing the status of the last call to
85
88
// / @ref Initialize.
86
- Future<void > InitializeLastResult () const ;
89
+ FIREBASE_DEPRECATED Future<void > InitializeLastResult () const ;
87
90
88
91
// / Begins an asynchronous request for an ad.
89
92
// /
Original file line number Diff line number Diff line change @@ -71,6 +71,9 @@ class RewardedAdInternal;
71
71
// / rewarded->Show(&my_user_earned_reward_listener);
72
72
// / }
73
73
// / @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.
74
77
class RewardedAd {
75
78
public:
76
79
// / Options for RewardedAd server-side verification callbacks. Set options on
@@ -86,17 +89,17 @@ class RewardedAd {
86
89
87
90
// / Creates an uninitialized @ref RewardedAd object.
88
91
// / @ref Initialize must be called before the object is used.
89
- RewardedAd ();
92
+ FIREBASE_DEPRECATED RewardedAd ();
90
93
91
94
~RewardedAd ();
92
95
93
96
// / Initialize the @ref RewardedAd object.
94
97
// / @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);
96
99
97
100
// / Returns a @ref Future containing the status of the last call to
98
101
// / @ref Initialize.
99
- Future<void > InitializeLastResult () const ;
102
+ FIREBASE_DEPRECATED Future<void > InitializeLastResult () const ;
100
103
101
104
// / Begins an asynchronous request for an ad.
102
105
// /
You can’t perform that action at this time.
0 commit comments