Skip to content

Commit 766256b

Browse files
Mobile Ads Developer Relationscopybara-github
authored andcommitted
Updated the Obsolete tag message with the new API name for PollAd from GetPreloadedAd to DequeueAd for full screen ad formats.
PiperOrigin-RevId: 785512572
1 parent 0c9b59d commit 766256b

14 files changed

+18
-18
lines changed

source/plugin/Assets/GoogleMobileAds/Api/AppOpenAd.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public static bool IsAdAvailable(string adUnitId)
8989
/// Returns the next pre-loaded app open ad and null if no ad is available.
9090
/// </summary>
9191
/// <param name="adUnitId">The ad Unit ID of the ad to poll.</param>
92-
[Obsolete("Use AppOpenAdPreloader.GetPreloadedAd instead.")]
92+
[Obsolete("Use AppOpenAdPreloader.DequeueAd instead.")]
9393
public static AppOpenAd PollAd(string adUnitId)
9494
{
9595
if (string.IsNullOrEmpty(adUnitId))

source/plugin/Assets/GoogleMobileAds/Api/AppOpenAdPreloader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public static class AppOpenAdPreloader
3232
/// </summary>
3333
/// <param name="preloadId">
3434
/// A string that uniquely identifies the <c>PreloadConfiguration</c>. Use this
35-
/// identifier when calling <c>GetPreloadedAd</c> to retrieve a preloaded ad for this
35+
/// identifier when calling <c>DequeueAd</c> to retrieve a preloaded ad for this
3636
/// configuration.
3737
/// </param>
3838
/// <param name="preloadConfiguration">

source/plugin/Assets/GoogleMobileAds/Api/InterstitialAd.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public static bool IsAdAvailable(string adUnitId)
9090
/// Returns the next pre-loaded interstitial ad and null if no ad is available.
9191
/// </summary>
9292
/// <param name="adUnitId">The ad Unit ID of the ad to poll.</param>
93-
[Obsolete("Use InterstitialAdPreloader.GetPreloadedAd instead.")]
93+
[Obsolete("Use InterstitialAdPreloader.DequeueAd instead.")]
9494
public static InterstitialAd PollAd(string adUnitId)
9595
{
9696
if (string.IsNullOrEmpty(adUnitId))

source/plugin/Assets/GoogleMobileAds/Api/InterstitialAdPreloader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public static class InterstitialAdPreloader
2929
/// </summary>
3030
/// <param name="preloadId">
3131
/// A string that uniquely identifies the <c>PreloadConfiguration</c>. Use this
32-
/// identifier when calling <c>GetPreloadedAd</c> to retrieve a preloaded ad for this
32+
/// identifier when calling <c>DequeueAd</c> to retrieve a preloaded ad for this
3333
/// configuration.
3434
/// </param>
3535
/// <param name="preloadConfiguration">

source/plugin/Assets/GoogleMobileAds/Api/RewardedAd.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public static bool IsAdAvailable(string adUnitId)
8888
/// Returns the next pre-loaded rewarded ad and null if no ad is available.
8989
/// </summary>
9090
/// <param name="adUnitId">The ad Unit ID of the ad to poll.</param>
91-
[Obsolete("Use RewardedAdPreloader.GetPreloadedAd instead.")]
91+
[Obsolete("Use RewardedAdPreloader.DequeueAd instead.")]
9292
public static RewardedAd PollAd(string adUnitId)
9393
{
9494
if (string.IsNullOrEmpty(adUnitId))

source/plugin/Assets/GoogleMobileAds/Api/RewardedAdPreloader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public static class RewardedAdPreloader
2828
/// </summary>
2929
/// <param name="preloadId">
3030
/// A string that uniquely identifies the <c>PreloadConfiguration</c>. Use this
31-
/// identifier when calling <c>GetPreloadedAd</c> to retrieve a preloaded ad for this
31+
/// identifier when calling <c>DequeueAd</c> to retrieve a preloaded ad for this
3232
/// configuration.
3333
/// </param>
3434
/// <param name="preloadConfiguration">

source/plugin/Assets/GoogleMobileAds/Common/IAppOpenAdPreloaderClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public interface IAppOpenAdPreloaderClient
2525
/// </summary>
2626
/// <param name="preloadId">
2727
/// A string that uniquely identifies the <c>PreloadConfiguration</c>. Use this
28-
/// identifier when calling <c>GetPreloadedAd</c> to retrieve a preloaded ad for this
28+
/// identifier when calling <c>DequeueAd</c> to retrieve a preloaded ad for this
2929
/// configuration.
3030
/// </param>
3131
/// <param name="preloadConfiguration">

source/plugin/Assets/GoogleMobileAds/Common/IInterstitialAdPreloaderClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public interface IInterstitialAdPreloaderClient
2525
/// </summary>
2626
/// <param name="preloadId">
2727
/// A string that uniquely identifies the <c>PreloadConfiguration</c>. Use this
28-
/// identifier when calling <c>GetPreloadedAd</c> to retrieve a preloaded ad for this
28+
/// identifier when calling <c>DequeueAd</c> to retrieve a preloaded ad for this
2929
/// configuration.
3030
/// </param>
3131
/// <param name="preloadConfiguration">

source/plugin/Assets/GoogleMobileAds/Common/IRewardedAdPreloaderClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public interface IRewardedAdPreloaderClient
2525
/// </summary>
2626
/// <param name="preloadId">
2727
/// A string that uniquely identifies the <c>PreloadConfiguration</c>. Use this
28-
/// identifier when calling <c>GetPreloadedAd</c> to retrieve a preloaded ad for this
28+
/// identifier when calling <c>DequeueAd</c> to retrieve a preloaded ad for this
2929
/// configuration.
3030
/// </param>
3131
/// <param name="preloadConfiguration">

source/plugin/Assets/GoogleMobileAds/Platforms/iOS/AppOpenAdPreloaderClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public IAppOpenAdClient DequeueAd(string preloadId)
113113
}
114114
var appOpenAdClient = new AppOpenAdClient();
115115
var appOpenAdClientPtr = (IntPtr)GCHandle.Alloc(appOpenAdClient);
116-
var appOpenAd = Externs.GADUAppOpenAdPreloaderGetPreloadedAd(AppOpenAdPreloaderPtr,
116+
var appOpenAd = Externs.GADUAppOpenAdPreloaderDequeueAd(AppOpenAdPreloaderPtr,
117117
preloadId, appOpenAdClientPtr);
118118
if (appOpenAd == IntPtr.Zero) return null;
119119
appOpenAdClient.CreateAppOpenAdWithReference(appOpenAdClientPtr, appOpenAd);

0 commit comments

Comments
 (0)