Skip to content

Commit

Permalink
Modify deprecation notice. (#1616)
Browse files Browse the repository at this point in the history
* Update deprecation link in headers.

* Update the text.
  • Loading branch information
jonsimantov committed Jun 25, 2024
1 parent 5a814f8 commit d170cb6
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 8 deletions.
32 changes: 27 additions & 5 deletions gma/src/include/firebase/gma.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,32 @@ template <typename ResultType>
class Future {
// Empty class (used for documentation only).
};

/// @brief Firebase App class. For more information, see the <a
/// href="https://firebase.google.com/docs/reference/cpp/class/firebase/app">Firebase
/// C++ SDK documentation</a>.
class App {
// Empty class (used for documentation only).
};

#endif // defined(DOXYGEN_ADMOB)

/// @brief API for Google Mobile Ads with Firebase.
///
/// The GMA API allows you to load and display mobile ads using the Google
/// Mobile Ads SDK. Each ad format has its own header file.
///
/// @deprecated The Google Mobile Ads C++ SDK is now deprecated. Please see
/// https://developers.google.com/admob/cpp/sdk for more information.
/// @deprecated **The Google Mobile Ads (GMA) C++ SDK is _deprecated_ as of June
/// 17, 2024 and should not be adopted in projects that don't already use it. It
/// will enter _End-of-Maintenance (EoM)_ on June 17, 2025. Note that versions
/// of the SDK released before the EoM date will continue to function, but no
/// further bug fixes or changes will be released after the EoM date.**
///
/// Instead of the Google Mobile Ads C++ SDK, consider using the
/// [iOS](/docs/admob/ios/quick-start) and
/// [Android](/docs/admob/android/quick-start) SDKs from AdMob. For support,
/// reach out to the [Google Mobile Ads SDK Technical
/// Forum](https://groups.google.com/g/google-admob-ads-sdk).
namespace gma {

/// Initializes Google Mobile Ads (GMA) via Firebase.
Expand All @@ -83,7 +100,10 @@ namespace gma {
/// Otherwise, the returned Future will have kFutureStatusInvalid.
///
/// @deprecated The Google Mobile Ads C++ SDK is now deprecated. Please see
/// https://developers.google.com/admob/cpp/sdk for more information.
/// the [SDK reference
/// documentation](
/// /admob/cpp/reference/namespace/firebase/gma)
/// for more information.
FIREBASE_DEPRECATED Future<AdapterInitializationStatus> Initialize(
const ::firebase::App& app, InitResult* init_result_out = nullptr);

Expand Down Expand Up @@ -115,7 +135,8 @@ FIREBASE_DEPRECATED Future<AdapterInitializationStatus> Initialize(
/// Otherwise, the returned Future will have kFutureStatusInvalid.
///
/// @deprecated The Google Mobile Ads C++ SDK is now deprecated. Please see
/// https://developers.google.com/admob/cpp/sdk for more information.
/// https://developers.google.com/admob/cpp/reference/namespace/firebase/gma
/// for more information.
FIREBASE_DEPRECATED Future<AdapterInitializationStatus> Initialize(
JNIEnv* jni_env, jobject activity, InitResult* init_result_out = nullptr);

Expand All @@ -137,7 +158,8 @@ FIREBASE_DEPRECATED Future<AdapterInitializationStatus> Initialize(
/// <code>kFutureStatusInvalid</code>.
///
/// @deprecated The Google Mobile Ads C++ SDK is now deprecated. Please see
/// https://developers.google.com/admob/cpp/sdk for more information.
/// https://developers.google.com/admob/cpp/reference/namespace/firebase/gma
/// for more information.
FIREBASE_DEPRECATED Future<AdapterInitializationStatus> Initialize(
InitResult* init_result_out = nullptr);
#endif // !defined(__ANDROID__) || defined(DOXYGEN)
Expand Down
3 changes: 2 additions & 1 deletion gma/src/include/firebase/gma/ad_view.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ struct BoundingBox;
/// @endcode
///
/// @deprecated The Google Mobile Ads C++ SDK is now deprecated. Please see
/// https://developers.google.com/admob/cpp/sdk for more information.
/// https://developers.google.com/admob/cpp/reference/namespace/firebase/gma
/// for more information.
class AdView {
public:
/// The possible screen positions for a @ref AdView, configured via
Expand Down
3 changes: 2 additions & 1 deletion gma/src/include/firebase/gma/interstitial_ad.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ class InterstitialAdInternal;
/// @endcode
///
/// @deprecated The Google Mobile Ads C++ SDK is now deprecated. Please see
/// https://developers.google.com/admob/cpp/sdk for more information.
/// https://developers.google.com/admob/cpp/reference/namespace/firebase/gma
/// for more information.
class InterstitialAd {
public:
/// Creates an uninitialized @ref InterstitialAd object.
Expand Down
3 changes: 2 additions & 1 deletion gma/src/include/firebase/gma/rewarded_ad.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ class RewardedAdInternal;
/// @endcode
///
/// @deprecated The Google Mobile Ads C++ SDK is now deprecated. Please see
/// https://developers.google.com/admob/cpp/sdk for more information.
/// https://developers.google.com/admob/cpp/reference/namespace/firebase/gma
/// for more information.
class RewardedAd {
public:
/// Options for RewardedAd server-side verification callbacks. Set options on
Expand Down

0 comments on commit d170cb6

Please sign in to comment.