diff --git a/source/plugin/Assets/GoogleMobileAds/Api/Core/AdChoicesPlacement.cs b/source/plugin/Assets/GoogleMobileAds/Api/Core/AdChoicesPlacement.cs
index 90f877fbb..825562e1b 100644
--- a/source/plugin/Assets/GoogleMobileAds/Api/Core/AdChoicesPlacement.cs
+++ b/source/plugin/Assets/GoogleMobileAds/Api/Core/AdChoicesPlacement.cs
@@ -1,3 +1,4 @@
+//
// Copyright (C) 2023 Google, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -11,6 +12,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
+//
namespace GoogleMobileAds.Api
{
@@ -19,21 +21,24 @@ namespace GoogleMobileAds.Api
///
public enum AdChoicesPlacement
{
- ///
- /// Ad Choices icon in top right corner
- ///
- TopRightCorner = 0,
- ///
- /// Ad Choices icon in top left corner
- ///
- TopLeftCorner = 1,
- ///
- /// Ad Choices icon in bottom right corner
- ///
- BottomRightCorner = 2,
- ///
- /// Ad Choices icon in bottom left corner
- ///
- BottomLeftCorner = 3,
+ ///
+ /// Ad Choices icon in top right corner.
+ ///
+ TopRightCorner = 0,
+
+ ///
+ /// Ad Choices icon in top left corner.
+ ///
+ TopLeftCorner = 1,
+
+ ///
+ /// Ad Choices icon in bottom right corner.
+ ///
+ BottomRightCorner = 2,
+
+ ///
+ /// Ad Choices icon in bottom left corner.
+ ///
+ BottomLeftCorner = 3,
}
}
diff --git a/source/plugin/Assets/GoogleMobileAds/Api/Core/AdFormat.cs b/source/plugin/Assets/GoogleMobileAds/Api/Core/AdFormat.cs
index 0507739e0..93cf84b3f 100644
--- a/source/plugin/Assets/GoogleMobileAds/Api/Core/AdFormat.cs
+++ b/source/plugin/Assets/GoogleMobileAds/Api/Core/AdFormat.cs
@@ -1,3 +1,4 @@
+//
// Copyright (C) 2024 Google, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -11,6 +12,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
+//
namespace GoogleMobileAds.Api
{
@@ -19,17 +21,34 @@ namespace GoogleMobileAds.Api
///
public enum AdFormat
{
+ ///
/// Banner ad format.
+ ///
BANNER = 0,
+
+ ///
/// Interstitial ad format.
+ ///
INTERSTITIAL = 1,
+
+ ///
/// Rewarded ad format.
+ ///
REWARDED = 2,
+
+ ///
/// Rewarded interstitial ad format.
+ ///
REWARDED_INTERSTITIAL = 3,
+
+ ///
/// Native ad format.
+ ///
NATIVE = 4,
+
+ ///
/// App open ad format.
+ ///
APP_OPEN_AD = 5
}
}
diff --git a/source/plugin/Assets/GoogleMobileAds/Api/Core/AdManagerAdRequest.cs b/source/plugin/Assets/GoogleMobileAds/Api/Core/AdManagerAdRequest.cs
index b8052c507..dcc39467f 100644
--- a/source/plugin/Assets/GoogleMobileAds/Api/Core/AdManagerAdRequest.cs
+++ b/source/plugin/Assets/GoogleMobileAds/Api/Core/AdManagerAdRequest.cs
@@ -1,4 +1,4 @@
-
+//
// Copyright (C) 2023 Google, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -12,12 +12,13 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
-
-using System;
-using System.Collections.Generic;
+//
namespace GoogleMobileAds.Api.AdManager
{
+ using System;
+ using System.Collections.Generic;
+
///
/// An contains targeting information used to fetch an ad from
/// Google Ad Manager.
@@ -40,11 +41,14 @@ public class AdManagerAdRequest : AdRequest
///
/// Create a new AdManagerAdRequest object.
///
- public AdManagerAdRequest() : base() {}
+ public AdManagerAdRequest() : base()
+ {
+ }
///
/// Create a copy of AdManagerAdRequest object.
///
+ /// The AdManagerAdRequest to copy.
public AdManagerAdRequest(AdManagerAdRequest request) : base(request)
{
PublisherProvidedId = request.PublisherProvidedId;
diff --git a/source/plugin/Assets/GoogleMobileAds/Api/Core/AdPosition.cs b/source/plugin/Assets/GoogleMobileAds/Api/Core/AdPosition.cs
index 80bce612d..fa58f700c 100644
--- a/source/plugin/Assets/GoogleMobileAds/Api/Core/AdPosition.cs
+++ b/source/plugin/Assets/GoogleMobileAds/Api/Core/AdPosition.cs
@@ -1,3 +1,4 @@
+//
// Copyright (C) 2015 Google, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -11,6 +12,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
+//
namespace GoogleMobileAds.Api
{
@@ -19,19 +21,40 @@ namespace GoogleMobileAds.Api
///
public enum AdPosition
{
- /// Top
+
+ ///
+ /// Top of the screen, center aligned.
+ ///
Top = 0,
- /// Bottom
+
+ ///
+ /// Bottom of the screen, center aligned.
+ ///
Bottom = 1,
- /// Top left
+
+ ///
+ /// Top left corner of the screen.
+ ///
TopLeft = 2,
- /// Top right
+
+ ///
+ /// Top right corner of the screen.
+ ///
TopRight = 3,
- /// Bottom left
+
+ ///
+ /// Bottom left corner of the screen.
+ ///
BottomLeft = 4,
- /// Bottom right
+
+ ///
+ /// Bottom right corner of the screen.
+ ///
BottomRight = 5,
- /// Center
+
+ ///
+ /// Centered on the screen both horizontally and vertically.
+ ///
Center = 6
}
}
diff --git a/source/plugin/Assets/GoogleMobileAds/Api/Core/AdRequest.cs b/source/plugin/Assets/GoogleMobileAds/Api/Core/AdRequest.cs
index 600f4a71c..5c2da0115 100644
--- a/source/plugin/Assets/GoogleMobileAds/Api/Core/AdRequest.cs
+++ b/source/plugin/Assets/GoogleMobileAds/Api/Core/AdRequest.cs
@@ -1,3 +1,4 @@
+//
// Copyright (C) 2015 Google, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -11,16 +12,16 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
-
-using System;
-using System.Text;
-using System.Collections.Generic;
-using UnityEngine;
-
-using GoogleMobileAds.Api.Mediation;
+//
namespace GoogleMobileAds.Api
{
+ using System;
+ using System.Collections.Generic;
+ using System.Text;
+ using GoogleMobileAds.Api.Mediation;
+ using UnityEngine;
+
///
/// An contains targeting information used to fetch an ad.
/// Ad requests are created using .
@@ -28,11 +29,6 @@ namespace GoogleMobileAds.Api
[Serializable]
public class AdRequest
{
- ///
- /// Request version string.
- ///
- public static string Version { get; private set; }
-
///
/// Test device ID used to load test ads.
/// .
@@ -44,14 +40,38 @@ public class AdRequest
///
public Dictionary CustomTargeting = new Dictionary();
+ ///
+ /// Targeting information keywords set. Empty if no keywords were added.
+ ///
+ public HashSet Keywords = new HashSet();
+
+ ///
+ /// Dictionary of extra parameters to be sent in the ad request.
+ ///
+ public Dictionary Extras = new Dictionary();
+
+ ///
+ /// Extra parameters to be sent to a specific ad partner in the ad request.
+ ///
+ public List MediationExtras = new List();
+
static AdRequest()
{
Version version = typeof(AdRequest).Assembly.GetName().Version;
Version = string.Format("{0}.{1}.{2}", version.Major, version.Minor, version.Build);
}
- public AdRequest() {}
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public AdRequest()
+ {
+ }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The to copy.
public AdRequest(AdRequest request)
{
Keywords = request.Keywords;
@@ -61,28 +81,20 @@ public AdRequest(AdRequest request)
}
///
- /// Returns targeting information keywords. Returns an empty set if no keywords were added.
- ///
- public HashSet Keywords = new HashSet();
-
- ///
- /// Returns extra parameters to be sent in the ad request.
+ /// Gets the request version string.
///
- public Dictionary Extras = new Dictionary();
-
- ///
- /// Returns extra parameters to be sent to a specific ad partner in the ad request.
- ///
- public List MediationExtras = new List();
+ public static string Version { get; private set; }
internal static string BuildVersionString(string nativePluginVersion = null)
{
var versionBuilder = new StringBuilder("unity-");
versionBuilder.Append(AdRequest.Version);
- if (!string.IsNullOrEmpty(nativePluginVersion)) {
+ if (!string.IsNullOrEmpty(nativePluginVersion))
+ {
versionBuilder.Append("-native-");
versionBuilder.Append(nativePluginVersion);
}
+
return versionBuilder.ToString();
}
}
diff --git a/source/plugin/Assets/GoogleMobileAds/Api/Core/AdSize.cs b/source/plugin/Assets/GoogleMobileAds/Api/Core/AdSize.cs
index 92fd3432c..abac82804 100644
--- a/source/plugin/Assets/GoogleMobileAds/Api/Core/AdSize.cs
+++ b/source/plugin/Assets/GoogleMobileAds/Api/Core/AdSize.cs
@@ -1,3 +1,4 @@
+//
// Copyright (C) 2015 Google, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -11,24 +12,10 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
+//
namespace GoogleMobileAds.Api
{
- ///
- /// Defines the different orientations that a layout or device can have.
- ///
- internal enum Orientation {
- Current = 0,
- ///
- /// Oriented landscape.
- ///
- Landscape = 1,
- ///
- /// Oriented portrait.
- ///
- Portrait = 2
- }
-
///
/// The size of a banner ad.
///
@@ -36,22 +23,6 @@ internal enum Orientation {
///
public class AdSize
{
- ///
- /// The type of banner ad.
- ///
- public enum Type
- {
- Standard = 0,
- [System.Obsolete("Deprecated. Use AnchoredAdaptive.")]
- SmartBanner = 1,
- AnchoredAdaptive = 2
- }
-
- private Type _type;
- private Orientation _orientation;
- private int _width;
- private int _height;
-
///
/// Interactive Advertising Bureau (IAB) banner ad size (320x50 density-independent pixels).
///
@@ -81,8 +52,16 @@ public enum Type
[System.Obsolete("Deprecated. Use AnchoredAdaptive.")]
public static readonly AdSize SmartBanner = new AdSize(0, 0, Type.SmartBanner);
+ ///
+ /// Constant for full width.
+ ///
public static readonly int FullWidth = -1;
+ private Type _type;
+ private Orientation _orientation;
+ private int _width;
+ private int _height;
+
///
/// Creates a new .
///
@@ -96,35 +75,41 @@ public AdSize(int width, int height)
_orientation = Orientation.Current;
}
+ ///
+ /// Creates a new for an anchored adaptive banner.
+ ///
+ /// The width of the ad in density-independent pixels.
+ /// The height of the ad in density-independent pixels.
+ /// The type of banner ad.
private AdSize(int width, int height, Type type) : this(width, height)
{
_type = type;
}
- private static AdSize CreateAnchoredAdaptiveAdSize(int width, Orientation orientation)
- {
- AdSize adSize = new AdSize(width, 0, Type.AnchoredAdaptive);
- adSize._orientation = orientation;
- return adSize;
- }
-
- public static AdSize GetLandscapeAnchoredAdaptiveBannerAdSizeWithWidth(int width)
+ ///
+ /// The type of banner ad.
+ ///
+ public enum Type
{
- return CreateAnchoredAdaptiveAdSize(width, Orientation.Landscape);
- }
+ ///
+ /// Standard banner ad type.
+ ///
+ Standard = 0,
- public static AdSize GetPortraitAnchoredAdaptiveBannerAdSizeWithWidth(int width)
- {
- return CreateAnchoredAdaptiveAdSize(width, Orientation.Portrait);
- }
+ ///
+ /// Smart banner ad type.
+ ///
+ [System.Obsolete("Deprecated. Use AnchoredAdaptive.")]
+ SmartBanner = 1,
- public static AdSize GetCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth(int width)
- {
- return CreateAnchoredAdaptiveAdSize(width, Orientation.Current);
+ ///
+ /// Anchored adaptive banner ad type.
+ ///
+ AnchoredAdaptive = 2
}
///
- /// The width of the ad in density-independent pixels.
+ /// Gets the width of the ad in density-independent pixels.
///
public int Width
{
@@ -135,7 +120,7 @@ public int Width
}
///
- /// The height of the ad in density-independent pixels.
+ /// Gets the height of the ad in density-independent pixels.
///
public int Height
{
@@ -146,7 +131,7 @@ public int Height
}
///
- /// The type of banner ad.
+ /// Gets the type of banner ad.
///
public Type AdType
{
@@ -157,28 +142,52 @@ public Type AdType
}
///
- /// The orientations of the banner ad.
+ /// Gets the orientations of the banner ad.
///
- internal Orientation Orientation
+ public Orientation Orientation
{
get
{
- return _orientation;
+ return _orientation;
}
}
- public override bool Equals(object obj)
+ ///
+ /// Gets an anchored adaptive for the landscape orientation with the given width.
+ ///
+ /// The width of the ad in density-independent pixels.
+ /// An AdSize object for landscape orientation.
+ public static AdSize GetLandscapeAnchoredAdaptiveBannerAdSizeWithWidth(int width)
{
- if (obj == null || GetType() != obj.GetType())
- {
- return false;
- }
+ return CreateAnchoredAdaptiveAdSize(width, Orientation.Landscape);
+ }
- AdSize other = (AdSize)obj;
- return (_width == other._width) && (_height == other._height)
- && (_type == other._type) && (_orientation == other._orientation);
+ ///
+ /// Gets an anchored adaptive for the portrait orientation with the given width.
+ ///
+ /// The width of the ad in density-independent pixels.
+ /// An AdSize object for portrait orientation.
+ public static AdSize GetPortraitAnchoredAdaptiveBannerAdSizeWithWidth(int width)
+ {
+ return CreateAnchoredAdaptiveAdSize(width, Orientation.Portrait);
}
+ ///
+ /// Gets an anchored adaptive for the current orientation with the given width.
+ ///
+ /// The width of the ad in density-independent pixels.
+ /// An AdSize object for the current orientation.
+ public static AdSize GetCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth(int width)
+ {
+ return CreateAnchoredAdaptiveAdSize(width, Orientation.Current);
+ }
+
+ ///
+ /// Compares two AdSize objects for equality.
+ ///
+ /// The first AdSize to compare.
+ /// The second AdSize to compare.
+ /// True if the AdSize objects are equal, false otherwise.
public static bool operator ==(AdSize a, AdSize b)
{
if ((object)a == null)
@@ -189,6 +198,12 @@ public override bool Equals(object obj)
return a.Equals(b);
}
+ ///
+ /// Compares two AdSize objects for inequality.
+ ///
+ /// The first AdSize to compare.
+ /// The second AdSize to compare.
+ /// True if the AdSize objects are not equal, false otherwise.
public static bool operator !=(AdSize a, AdSize b)
{
if ((object)a == null)
@@ -199,6 +214,29 @@ public override bool Equals(object obj)
return !a.Equals(b);
}
+ ///
+ /// Checks if the given object is equal to the current AdSize.
+ ///
+ /// The object to compare with the current AdSize.
+ ///
+ /// True if the given object is equal to the current AdSize, false otherwise.
+ ///
+ public override bool Equals(object obj)
+ {
+ if (obj == null || GetType() != obj.GetType())
+ {
+ return false;
+ }
+
+ AdSize other = (AdSize)obj;
+ return (_width == other._width) && (_height == other._height)
+ && (_type == other._type) && (_orientation == other._orientation);
+ }
+
+ ///
+ /// Gets the hash code for the current AdSize.
+ ///
+ /// The hash code for the current AdSize.
public override int GetHashCode()
{
int hashBase = 71;
@@ -211,5 +249,18 @@ public override int GetHashCode()
hash = (hash * hashMultiplier) ^ _orientation.GetHashCode();
return hash;
}
+
+ ///
+ /// Creates an anchored adaptive for the given orientation and width.
+ ///
+ /// The width of the ad in density-independent pixels.
+ /// The orientation of the banner ad.
+ /// An AdSize object for the given orientation and width.
+ private static AdSize CreateAnchoredAdaptiveAdSize(int width, Orientation orientation)
+ {
+ AdSize adSize = new AdSize(width, 0, Type.AnchoredAdaptive);
+ adSize._orientation = orientation;
+ return adSize;
+ }
}
}
diff --git a/source/plugin/Assets/GoogleMobileAds/Api/Core/AdValue.cs b/source/plugin/Assets/GoogleMobileAds/Api/Core/AdValue.cs
index ccc92d44d..3717f95a2 100644
--- a/source/plugin/Assets/GoogleMobileAds/Api/Core/AdValue.cs
+++ b/source/plugin/Assets/GoogleMobileAds/Api/Core/AdValue.cs
@@ -1,4 +1,4 @@
-
+//
// Copyright (C) 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -12,6 +12,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
+//
namespace GoogleMobileAds.Api
{
@@ -29,14 +30,17 @@ public enum PrecisionType
/// An ad value with unknown precision.
///
Unknown = 0,
+
///
/// An ad value estimated from aggregated data.
///
Estimated = 1,
+
///
/// A publisher-provided ad value, such as manual CPMs in a mediation group.
///
PublisherProvided = 2,
+
///
/// The precise value paid for this ad.
///
@@ -44,20 +48,19 @@ public enum PrecisionType
}
///
- /// The precision of the reported ad value.
+ /// Gets or sets the precision of the reported ad value.
///
public PrecisionType Precision { get; set; }
///
- /// The ad's value in micro-units, where 1,000,000 micro-units equal one unit of
- /// the currency.
+ /// Gets or sets the ad's value in micro-units, where 1,000,000 micro-units equal one unit
+ /// of the currency.
///
public long Value { get; set; }
///
- /// The value's ISO 4217 currency code.
+ /// Gets or sets the value's ISO 4217 currency code.
///
public string CurrencyCode { get; set; }
}
}
-
diff --git a/source/plugin/Assets/GoogleMobileAds/Api/Core/AdapterStatus.cs b/source/plugin/Assets/GoogleMobileAds/Api/Core/AdapterStatus.cs
index accba2f36..91f4f1f71 100644
--- a/source/plugin/Assets/GoogleMobileAds/Api/Core/AdapterStatus.cs
+++ b/source/plugin/Assets/GoogleMobileAds/Api/Core/AdapterStatus.cs
@@ -1,3 +1,4 @@
+//
// Copyright (C) 2018 Google, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -11,10 +12,10 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
+//
namespace GoogleMobileAds.Api
{
-
///
/// The initialization state of the mediation adapter.
///
@@ -25,6 +26,7 @@ public enum AdapterState
/// Adapters in this state are more likely than usual to no-fill.
///
NotReady = 0,
+
///
/// The mediation adapter is ready to service ad requests.
///
@@ -36,13 +38,20 @@ public enum AdapterState
///
public class AdapterStatus
{
+ internal AdapterStatus(AdapterState state, string description, int latency)
+ {
+ this.InitializationState = state;
+ this.Description = description;
+ this.Latency = latency;
+ }
+
///
/// Gets the adapter's initialization state.
///
public AdapterState InitializationState { get; private set; }
///
- /// Detailed description of the status.
+ /// Gets the detailed description of the status.
///
///
/// This method should only be used for informational purposes, such as logging.
@@ -51,16 +60,9 @@ public class AdapterStatus
public string Description { get; private set; }
///
- /// The adapter's initialization latency in milliseconds. 0 if initialization
+ /// Gets the adapter's initialization latency in milliseconds. 0 if initialization
/// has not yet ended.
///
public int Latency { get; private set; }
-
- internal AdapterStatus(AdapterState state, string description, int latency)
- {
- this.InitializationState = state;
- this.Description = description;
- this.Latency = latency;
- }
}
}
diff --git a/source/plugin/Assets/GoogleMobileAds/Api/Core/AppEvent.cs b/source/plugin/Assets/GoogleMobileAds/Api/Core/AppEvent.cs
index 0d7546f49..4c8c9498a 100644
--- a/source/plugin/Assets/GoogleMobileAds/Api/Core/AppEvent.cs
+++ b/source/plugin/Assets/GoogleMobileAds/Api/Core/AppEvent.cs
@@ -1,4 +1,4 @@
-
+//
// Copyright (C) 2023 Google, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -12,8 +12,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
-
-using System;
+//
namespace GoogleMobileAds.Api.AdManager
{
@@ -23,12 +22,12 @@ namespace GoogleMobileAds.Api.AdManager
public class AppEvent
{
///
- // Name of the app event.
+ /// Gets or sets the name of the app event.
///
public string Name { get; set; }
///
- // Data passed from the app event.
+ /// Gets or sets the data passed from the app event.
///
public string Data { get; set; }
}
diff --git a/source/plugin/Assets/GoogleMobileAds/Api/Core/AssemblyInfo.cs b/source/plugin/Assets/GoogleMobileAds/Api/Core/AssemblyInfo.cs
index c15e480f7..0060858b0 100644
--- a/source/plugin/Assets/GoogleMobileAds/Api/Core/AssemblyInfo.cs
+++ b/source/plugin/Assets/GoogleMobileAds/Api/Core/AssemblyInfo.cs
@@ -1,31 +1,30 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
+//
+// Copyright (C) 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
-using System.Reflection;
using System.Runtime.CompilerServices;
-[assembly:InternalsVisibleTo("GoogleMobileAds")]
-[assembly:InternalsVisibleTo("GoogleMobileAds.Android")]
-[assembly:InternalsVisibleTo("GoogleMobileAds.iOS")]
-[assembly:InternalsVisibleTo("GoogleMobileAds.Unity")]
-[assembly:InternalsVisibleTo("GoogleMobileAdsNative")]
-[assembly:InternalsVisibleTo("GoogleMobileAdsNative.iOS")]
-[assembly:InternalsVisibleTo("GoogleMobileAdsNative.Api")]
-[assembly:InternalsVisibleTo("GoogleMobileAdsNative.Android")]
-[assembly:InternalsVisibleTo("GoogleMobileAdsNative.unobfuscate")]
-[assembly:InternalsVisibleTo("GoogleMobileAdsNative.iOS.unobfuscate")]
-[assembly:InternalsVisibleTo("GoogleMobileAdsNative.Android.unobfuscate")]
-[assembly:InternalsVisibleTo("GoogleMobileAds.Ump")]
+[assembly: InternalsVisibleTo("GoogleMobileAds")]
+[assembly: InternalsVisibleTo("GoogleMobileAds.Android")]
+[assembly: InternalsVisibleTo("GoogleMobileAds.iOS")]
+[assembly: InternalsVisibleTo("GoogleMobileAds.Unity")]
+[assembly: InternalsVisibleTo("GoogleMobileAdsNative")]
+[assembly: InternalsVisibleTo("GoogleMobileAdsNative.iOS")]
+[assembly: InternalsVisibleTo("GoogleMobileAdsNative.Api")]
+[assembly: InternalsVisibleTo("GoogleMobileAdsNative.Android")]
+[assembly: InternalsVisibleTo("GoogleMobileAdsNative.unobfuscate")]
+[assembly: InternalsVisibleTo("GoogleMobileAdsNative.iOS.unobfuscate")]
+[assembly: InternalsVisibleTo("GoogleMobileAdsNative.Android.unobfuscate")]
+[assembly: InternalsVisibleTo("GoogleMobileAds.Ump")]
diff --git a/source/plugin/Assets/GoogleMobileAds/Api/Core/Gender.cs b/source/plugin/Assets/GoogleMobileAds/Api/Core/Gender.cs
index 64e7949dd..81042920a 100644
--- a/source/plugin/Assets/GoogleMobileAds/Api/Core/Gender.cs
+++ b/source/plugin/Assets/GoogleMobileAds/Api/Core/Gender.cs
@@ -1,3 +1,4 @@
+//
// Copyright (C) 2015 Google, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -11,6 +12,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
+//
namespace GoogleMobileAds.Api
{
@@ -19,11 +21,19 @@ namespace GoogleMobileAds.Api
///
public enum Gender
{
- /// Unknown
+ ///
+ /// The gender is unknown.
+ ///
Unknown = 0,
- /// Male
+
+ ///
+ /// The gender is male.
+ ///
Male = 1,
- /// Female
+
+ ///
+ /// The gender is female.
+ ///
Female = 2
}
}
diff --git a/source/plugin/Assets/GoogleMobileAds/Api/Core/MaxAdContentRating.cs b/source/plugin/Assets/GoogleMobileAds/Api/Core/MaxAdContentRating.cs
index 87637d885..ed528ea9a 100644
--- a/source/plugin/Assets/GoogleMobileAds/Api/Core/MaxAdContentRating.cs
+++ b/source/plugin/Assets/GoogleMobileAds/Api/Core/MaxAdContentRating.cs
@@ -1,3 +1,4 @@
+//
// Copyright (C) 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -11,6 +12,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
+//
namespace GoogleMobileAds.Api
{
@@ -19,49 +21,64 @@ namespace GoogleMobileAds.Api
///
public class MaxAdContentRating
{
- ///
- /// Content suitable for general audiences, including families.
- ///
- public static MaxAdContentRating G { get { return new MaxAdContentRating("G"); } }
+ private MaxAdContentRating(string value)
+ {
+ Value = value;
+ }
///
- /// Content suitable for most audiences with parental guidance.
+ /// Gets G rating - content suitable for general audiences, including families.
///
- public static MaxAdContentRating PG { get { return new MaxAdContentRating("PG"); } }
+ public static MaxAdContentRating G
+ {
+ get { return new MaxAdContentRating("G"); }
+ }
///
- /// Content suitable for teen and older audiences.
+ /// Gets PG rating - content suitable for most audiences with parental guidance.
///
- public static MaxAdContentRating T { get { return new MaxAdContentRating("T"); } }
+ public static MaxAdContentRating PG
+ {
+ get { return new MaxAdContentRating("PG"); }
+ }
///
- /// Content suitable only for mature audiences.
+ /// Gets T rating - content suitable for teen and older audiences.
///
- public static MaxAdContentRating MA { get { return new MaxAdContentRating("MA"); } }
+ public static MaxAdContentRating T
+ {
+ get { return new MaxAdContentRating("T"); }
+ }
///
- /// Content suitability is unspecified.
+ /// Gets MA rating - content suitable only for mature audiences.
///
- public static MaxAdContentRating Unspecified { get { return new MaxAdContentRating(""); } }
+ public static MaxAdContentRating MA
+ {
+ get { return new MaxAdContentRating("MA"); }
+ }
///
- /// Parses from a string constant.
+ /// Gets Unspecified rating - content suitability is unspecified.
///
- /// String constant representing the content rating.
- /// The parsed .
- public static MaxAdContentRating ToMaxAdContentRating(string value)
+ public static MaxAdContentRating Unspecified
{
- return new MaxAdContentRating(value);
+ get { return new MaxAdContentRating(string.Empty); }
}
///
- /// String representation of .
+ /// Gets or sets the string representation of .
///
public string Value { get; set; }
- private MaxAdContentRating(string value)
+ ///
+ /// Parses from a string constant.
+ ///
+ /// String constant representing the content rating.
+ /// The parsed .
+ public static MaxAdContentRating ToMaxAdContentRating(string value)
{
- Value = value;
+ return new MaxAdContentRating(value);
}
}
}
diff --git a/source/plugin/Assets/GoogleMobileAds/Api/Core/MediaAspectRatio.cs b/source/plugin/Assets/GoogleMobileAds/Api/Core/MediaAspectRatio.cs
index fb92d3c95..130fc608c 100644
--- a/source/plugin/Assets/GoogleMobileAds/Api/Core/MediaAspectRatio.cs
+++ b/source/plugin/Assets/GoogleMobileAds/Api/Core/MediaAspectRatio.cs
@@ -1,3 +1,4 @@
+//
// Copyright (C) 2024 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -11,6 +12,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
+//
namespace GoogleMobileAds.Api
{
@@ -23,18 +25,22 @@ public enum MediaAspectRatio
/// Unknown media aspect ratio.
///
Unknown = 0,
+
///
/// Any media aspect ratio.
///
Any = 1,
+
///
/// Landscape media aspect ratio.
///
Landscape = 2,
+
///
/// Portrait media aspect ratio.
///
Portrait = 3,
+
///
/// Square media aspect ratio. This is not a strict 1:1 aspect ratio.
///
diff --git a/source/plugin/Assets/GoogleMobileAds/Api/Core/NativeAdOptions.cs b/source/plugin/Assets/GoogleMobileAds/Api/Core/NativeAdOptions.cs
index 11a6bdece..f931d979f 100644
--- a/source/plugin/Assets/GoogleMobileAds/Api/Core/NativeAdOptions.cs
+++ b/source/plugin/Assets/GoogleMobileAds/Api/Core/NativeAdOptions.cs
@@ -1,3 +1,4 @@
+//
// Copyright (C) 2024 Google, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -11,48 +12,50 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
-
-using System;
+//
namespace GoogleMobileAds.Api
{
- ///
- /// Ad options for configuring the view of native ads.
- ///
- [Serializable]
- public class NativeAdOptions
- {
- ///
- /// Image and video aspect ratios. Default is Unknown.
- ///
- public MediaAspectRatio MediaAspectRatio;
+ using System;
///
- /// Sets the placement of AdChoices icon (if present). Default is TopRightCorner.
+ /// Ad options for configuring the view of native ads.
///
- public AdChoicesPlacement AdChoicesPlacement;
+ [Serializable]
+ public class NativeAdOptions
+ {
+ ///
+ /// Image and video aspect ratios. Default is Unknown.
+ ///
+ public MediaAspectRatio MediaAspectRatio;
- ///
- /// Sets the VideoOptions object.
- ///
- public VideoOptions VideoOptions;
+ ///
+ /// Sets the placement of AdChoices icon (if present). Default is TopRightCorner.
+ ///
+ public AdChoicesPlacement AdChoicesPlacement;
- ///
- /// Create a new default NativeAdOptions object.
- ///
- public NativeAdOptions()
- {
- VideoOptions = new VideoOptions();
- }
+ ///
+ /// Sets the VideoOptions object.
+ ///
+ public VideoOptions VideoOptions;
- ///
- /// Create a new NativeAdOptions object.
- ///
- public NativeAdOptions(NativeAdOptions options)
- {
- MediaAspectRatio = options.MediaAspectRatio;
- AdChoicesPlacement = options.AdChoicesPlacement;
- VideoOptions = options.VideoOptions;
+ ///
+ /// Create a new default NativeAdOptions object.
+ ///
+ public NativeAdOptions()
+ {
+ VideoOptions = new VideoOptions();
+ }
+
+ ///
+ /// Create a new NativeAdOptions object.
+ ///
+ /// The NativeAdOptions to copy.
+ public NativeAdOptions(NativeAdOptions options)
+ {
+ MediaAspectRatio = options.MediaAspectRatio;
+ AdChoicesPlacement = options.AdChoicesPlacement;
+ VideoOptions = options.VideoOptions;
+ }
}
- }
}
diff --git a/source/plugin/Assets/GoogleMobileAds/Api/Core/NativeTemplateStyle.cs b/source/plugin/Assets/GoogleMobileAds/Api/Core/NativeTemplateStyle.cs
index f3d5713e7..06cdeca55 100644
--- a/source/plugin/Assets/GoogleMobileAds/Api/Core/NativeTemplateStyle.cs
+++ b/source/plugin/Assets/GoogleMobileAds/Api/Core/NativeTemplateStyle.cs
@@ -1,3 +1,4 @@
+//
// Copyright (C) 2024 Google, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -11,76 +12,83 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
-using UnityEngine;
-
+//
namespace GoogleMobileAds.Api
{
+ using UnityEngine;
- ///
- /// Defines ID constants for templates to render native ads.
- ///
- public class NativeTemplateId
- {
///
- /// Small Layout.
+ /// Style options for native templates.
///
- public const string Small = "small";
+ public class NativeTemplateStyle
+ {
+ ///
+ /// An identifier representing the native template to render.
+ ///
+ public string TemplateId;
- ///
- /// Medium Layout.
- ///
- public const string Medium = "medium";
- }
+ ///
+ /// The background color.
+ ///
+ public Color MainBackgroundColor;
- ///
- /// Style options for native templates.
- ///
- public class NativeTemplateStyle
- {
- ///
- /// An identifier representing the native template to render.
- ///
- public string TemplateId;
+ ///
+ /// The NativeTemplateTextStyle for the primary text.
+ ///
+ public NativeTemplateTextStyle PrimaryText;
- ///
- // The background color.
- ///
- public Color MainBackgroundColor;
+ ///
+ /// The NativeTemplateTextStyle for the second row of text in the template.
+ ///
+ public NativeTemplateTextStyle SecondaryText;
- ///
- // The NativeTemplateTextStyle for the primary text.
- ///
- public NativeTemplateTextStyle PrimaryText;
+ ///
+ /// The NativeTemplateTextStyle for the third row of text in the template.
+ ///
+ public NativeTemplateTextStyle TertiaryText;
- ///
- /// The NativeTemplateTextStyle for the second row of text in the template.
- ///
- public NativeTemplateTextStyle SecondaryText;
+ ///
+ /// The NativeTemplateTextStyle for the call to action.
+ ///
+ public NativeTemplateTextStyle CallToActionText;
- ///
- /// The NativeTemplateTextStyle for the third row of text in the template.
- ///
- public NativeTemplateTextStyle TertiaryText;
-
- ///
- /// The NativeTemplateTextStyle for the call to action.
- ///
- public NativeTemplateTextStyle CallToActionText;
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public NativeTemplateStyle()
+ {
+ // Default to using the small template.
+ TemplateId = NativeTemplateId.Small;
+ }
- public NativeTemplateStyle()
- {
- // Default to using the small template.
- TemplateId = NativeTemplateId.Small;
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The template style to copy.
+ public NativeTemplateStyle(NativeTemplateStyle templateStyle)
+ {
+ TemplateId = templateStyle.TemplateId;
+ MainBackgroundColor = templateStyle.MainBackgroundColor;
+ PrimaryText = templateStyle.PrimaryText;
+ SecondaryText = templateStyle.SecondaryText;
+ TertiaryText = templateStyle.TertiaryText;
+ CallToActionText = templateStyle.CallToActionText;
+ }
}
- public NativeTemplateStyle(NativeTemplateStyle templateStyle)
+ ///
+ /// Defines ID constants for templates to render native ads.
+ ///
+ public class NativeTemplateId
{
- TemplateId = templateStyle.TemplateId;
- MainBackgroundColor = templateStyle.MainBackgroundColor;
- PrimaryText = templateStyle.PrimaryText;
- SecondaryText = templateStyle.SecondaryText;
- TertiaryText = templateStyle.TertiaryText;
- CallToActionText = templateStyle.CallToActionText;
+ ///
+ /// Small Layout.
+ ///
+ public const string Small = "small";
+
+ ///
+ /// Medium Layout.
+ ///
+ public const string Medium = "medium";
}
- }
}
\ No newline at end of file
diff --git a/source/plugin/Assets/GoogleMobileAds/Api/Core/NativeTemplateTestStyle.cs b/source/plugin/Assets/GoogleMobileAds/Api/Core/NativeTemplateTestStyle.cs
deleted file mode 100644
index b4a9284cd..000000000
--- a/source/plugin/Assets/GoogleMobileAds/Api/Core/NativeTemplateTestStyle.cs
+++ /dev/null
@@ -1,63 +0,0 @@
-// Copyright (C) 2024 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-using System;
-using UnityEngine;
-
-namespace GoogleMobileAds.Api {
-
- ///
- /// Font Types for native templates.
- ///
- public enum NativeTemplateFontStyle
- {
- ///
- /// Default text.
- ///
- Normal = 0,
- ///
- /// Bold.
- ///
- Bold = 1,
- ///
- /// Italic.
- ///
- Italic = 2,
- ///
- /// Monospace.
- ///
- Monospace = 3
- }
-
- ///
- /// Text style options for native templates.
- ///
- [Serializable]
- public class NativeTemplateTextStyle
- {
- /// Background color
- public Color BackgroundColor { get; set; }
-
- /// Color of the Text to be rendered.
- public Color TextColor { get; set; }
-
- /// Size of the Text to be displayed.
- public int FontSize { get; set; }
-
- /// FontStyle for the text.
- public NativeTemplateFontStyle Style { get; set; }
-
- public NativeTemplateTextStyle() {}
- }
-}
diff --git a/source/plugin/Assets/GoogleMobileAds/Api/Core/NativeTemplateTextStyle.cs b/source/plugin/Assets/GoogleMobileAds/Api/Core/NativeTemplateTextStyle.cs
new file mode 100644
index 000000000..a9e258fd3
--- /dev/null
+++ b/source/plugin/Assets/GoogleMobileAds/Api/Core/NativeTemplateTextStyle.cs
@@ -0,0 +1,81 @@
+//
+// Copyright (C) 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+namespace GoogleMobileAds.Api
+{
+ using System;
+ using UnityEngine;
+
+ ///
+ /// Font Types for native templates.
+ ///
+ public enum NativeTemplateFontStyle
+ {
+ ///
+ /// Default text.
+ ///
+ Normal = 0,
+
+ ///
+ /// Bold text.
+ ///
+ Bold = 1,
+
+ ///
+ /// Italic text.
+ ///
+ Italic = 2,
+
+ ///
+ /// Monospace text.
+ ///
+ Monospace = 3
+ }
+
+ ///
+ /// Text style options for native templates.
+ ///
+ [Serializable]
+ public class NativeTemplateTextStyle
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public NativeTemplateTextStyle()
+ {
+ }
+
+ ///
+ /// Gets or sets the background color.
+ ///
+ public Color BackgroundColor { get; set; }
+
+ ///
+ /// Gets or sets the color of the Text to be rendered.
+ ///
+ public Color TextColor { get; set; }
+
+ ///
+ /// Gets or sets the size of the Text to be displayed.
+ ///
+ public int FontSize { get; set; }
+
+ ///
+ /// Gets or sets the FontStyle for the text.
+ ///
+ public NativeTemplateFontStyle Style { get; set; }
+ }
+}
diff --git a/source/plugin/Assets/GoogleMobileAds/Api/Core/Orientation.cs b/source/plugin/Assets/GoogleMobileAds/Api/Core/Orientation.cs
new file mode 100644
index 000000000..d4dc36d3c
--- /dev/null
+++ b/source/plugin/Assets/GoogleMobileAds/Api/Core/Orientation.cs
@@ -0,0 +1,39 @@
+//
+// Copyright (C) 2015 Google, Inc.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+namespace GoogleMobileAds.Api
+{
+ ///
+ /// Defines the different orientations that a layout or device can have.
+ ///
+ public enum Orientation
+ {
+ ///
+ /// Current orientation.
+ ///
+ Current = 0,
+
+ ///
+ /// Oriented landscape.
+ ///
+ Landscape = 1,
+
+ ///
+ /// Oriented portrait.
+ ///
+ Portrait = 2
+ }
+}
diff --git a/source/plugin/Assets/GoogleMobileAds/Api/Core/PreloadConfiguration.cs b/source/plugin/Assets/GoogleMobileAds/Api/Core/PreloadConfiguration.cs
index f2ce2fbfd..95b45ee34 100644
--- a/source/plugin/Assets/GoogleMobileAds/Api/Core/PreloadConfiguration.cs
+++ b/source/plugin/Assets/GoogleMobileAds/Api/Core/PreloadConfiguration.cs
@@ -1,3 +1,4 @@
+//
// Copyright (C) 2024 Google, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -11,11 +12,12 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
-
-using System;
+//
namespace GoogleMobileAds.Api
{
+ using System;
+
///
/// Configuration for preloading ads.
///
@@ -43,8 +45,17 @@ public sealed class PreloadConfiguration
///
public uint BufferSize;
- public PreloadConfiguration() { }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public PreloadConfiguration()
+ {
+ }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The configuration to copy.
public PreloadConfiguration(PreloadConfiguration configuration)
{
AdUnitId = configuration.AdUnitId;
diff --git a/source/plugin/Assets/GoogleMobileAds/Api/Core/PublisherPrivacyPersonalizationState.cs b/source/plugin/Assets/GoogleMobileAds/Api/Core/PublisherPrivacyPersonalizationState.cs
index bbf8c9945..4e8c582af 100644
--- a/source/plugin/Assets/GoogleMobileAds/Api/Core/PublisherPrivacyPersonalizationState.cs
+++ b/source/plugin/Assets/GoogleMobileAds/Api/Core/PublisherPrivacyPersonalizationState.cs
@@ -1,3 +1,4 @@
+//
// Copyright (C) 2024 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -11,21 +12,30 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
+//
namespace GoogleMobileAds.Api
{
///
/// Indicates the Publisher privacy treatment personalization states.
///
- public enum PublisherPrivacyPersonalizationState {
- /// Indicates that the ad request should receive the default publisher privacy
- /// treatment.
- Default = 0,
- /// Indicates that the ad request should receive the personalized publisher privacy
- /// treatment.
- Enabled = 1,
- /// Indicates that the ad request should receive the non-personalized publisher
- /// privacy treatment.
- Disabled = 2,
+ public enum PublisherPrivacyPersonalizationState
+ {
+ ///
+ /// Indicates that the ad request should receive the default publisher privacy treatment.
+ ///
+ Default = 0,
+
+ ///
+ /// Indicates that the ad request should receive the personalized publisher privacy
+ /// treatment.
+ ///
+ Enabled = 1,
+
+ ///
+ /// Indicates that the ad request should receive the non-personalized publisher privacy
+ /// treatment.
+ ///
+ Disabled = 2,
}
}
diff --git a/source/plugin/Assets/GoogleMobileAds/Api/Core/RequestConfiguration.cs b/source/plugin/Assets/GoogleMobileAds/Api/Core/RequestConfiguration.cs
index 3fcafc8de..d373b2079 100644
--- a/source/plugin/Assets/GoogleMobileAds/Api/Core/RequestConfiguration.cs
+++ b/source/plugin/Assets/GoogleMobileAds/Api/Core/RequestConfiguration.cs
@@ -1,3 +1,4 @@
+//
// Copyright (C) 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -11,12 +12,13 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
-
-using System.Collections.Generic;
-using System;
+//
namespace GoogleMobileAds.Api
{
+ using System;
+ using System.Collections.Generic;
+
///
/// Global configuration used for every .
///
@@ -81,8 +83,17 @@ public class RequestConfiguration
///
public bool? PublisherFirstPartyIdEnabled;
- public RequestConfiguration() {}
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public RequestConfiguration()
+ {
+ }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The configuration to copy.
public RequestConfiguration(RequestConfiguration requestConfiguration)
{
MaxAdContentRating = requestConfiguration.MaxAdContentRating;
diff --git a/source/plugin/Assets/GoogleMobileAds/Api/Core/Reward.cs b/source/plugin/Assets/GoogleMobileAds/Api/Core/Reward.cs
index 669679735..1885ccf4e 100644
--- a/source/plugin/Assets/GoogleMobileAds/Api/Core/Reward.cs
+++ b/source/plugin/Assets/GoogleMobileAds/Api/Core/Reward.cs
@@ -1,3 +1,4 @@
+//
// Copyright (C) 2015 Google, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -11,12 +12,13 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
-
-using System;
-using UnityEngine;
+//
namespace GoogleMobileAds.Api
{
+ using System;
+ using UnityEngine;
+
///
/// Describes a reward credited to a user for interacting with rewarded ads.
///
@@ -33,8 +35,17 @@ public class Reward : EventArgs
///
public double Amount;
- public Reward() {}
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public Reward()
+ {
+ }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The reward to copy.
public Reward(Reward reward)
{
Type = reward.Type;
diff --git a/source/plugin/Assets/GoogleMobileAds/Api/Core/ServerSideVerificationOptions.cs b/source/plugin/Assets/GoogleMobileAds/Api/Core/ServerSideVerificationOptions.cs
index 321dbb8e9..c0e1f335b 100644
--- a/source/plugin/Assets/GoogleMobileAds/Api/Core/ServerSideVerificationOptions.cs
+++ b/source/plugin/Assets/GoogleMobileAds/Api/Core/ServerSideVerificationOptions.cs
@@ -1,3 +1,4 @@
+//
// Copyright (C) 2019 Google, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -11,11 +12,12 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
-
-using System;
+//
namespace GoogleMobileAds.Api
{
+ using System;
+
///
/// Options for rewarded ad types server-side verification callbacks.
/// Options are created using .
@@ -33,8 +35,19 @@ public class ServerSideVerificationOptions
///
public string CustomData;
- public ServerSideVerificationOptions() {}
+ ///
+ /// Default constructor for .
+ ///
+ public ServerSideVerificationOptions()
+ {
+ }
+ ///
+ /// Copy constructor for .
+ ///
+ ///
+ /// The options to copy.
+ ///
public ServerSideVerificationOptions(ServerSideVerificationOptions options)
{
UserId = options.UserId;
diff --git a/source/plugin/Assets/GoogleMobileAds/Api/Core/TagForChildDirectedTreatment.cs b/source/plugin/Assets/GoogleMobileAds/Api/Core/TagForChildDirectedTreatment.cs
index 4682593bc..b80c4f0d3 100644
--- a/source/plugin/Assets/GoogleMobileAds/Api/Core/TagForChildDirectedTreatment.cs
+++ b/source/plugin/Assets/GoogleMobileAds/Api/Core/TagForChildDirectedTreatment.cs
@@ -1,3 +1,4 @@
+//
// Copyright (C) 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -11,6 +12,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
+//
namespace GoogleMobileAds.Api
{
@@ -35,11 +37,19 @@ namespace GoogleMobileAds.Api
///
public enum TagForChildDirectedTreatment
{
- /// Unspecified
+ ///
+ /// Indicates that the child-directed status is unspecified.
+ ///
Unspecified = -1,
- /// False
+
+ ///
+ /// Indicates that the app should not be treated as child-directed.
+ ///
False = 0,
- /// True
+
+ ///
+ /// Indicates that the app should be treated as child-directed.
+ ///
True = 1,
}
}
diff --git a/source/plugin/Assets/GoogleMobileAds/Api/Core/TagForUnderAgeOfConsent.cs b/source/plugin/Assets/GoogleMobileAds/Api/Core/TagForUnderAgeOfConsent.cs
index 7a9f86ebc..2ab87d526 100644
--- a/source/plugin/Assets/GoogleMobileAds/Api/Core/TagForUnderAgeOfConsent.cs
+++ b/source/plugin/Assets/GoogleMobileAds/Api/Core/TagForUnderAgeOfConsent.cs
@@ -1,3 +1,4 @@
+//
// Copyright (C) 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -11,6 +12,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
+//
namespace GoogleMobileAds.Api
{
@@ -20,11 +22,19 @@ namespace GoogleMobileAds.Api
///
public enum TagForUnderAgeOfConsent
{
- /// Unspecified
+ ///
+ /// Does not specify whenther the user is under the age of consent or not.
+ ///
Unspecified = -1,
- /// False
+
+ ///
+ /// Indicates that the user is not under the age of consent.
+ ///
False = 0,
- /// True
+
+ ///
+ /// Indicates that the user is under the age of consent.
+ ///
True = 1,
}
}
diff --git a/source/plugin/Assets/GoogleMobileAds/Api/Core/VideoOptions.cs b/source/plugin/Assets/GoogleMobileAds/Api/Core/VideoOptions.cs
index 569949261..a6271eee3 100644
--- a/source/plugin/Assets/GoogleMobileAds/Api/Core/VideoOptions.cs
+++ b/source/plugin/Assets/GoogleMobileAds/Api/Core/VideoOptions.cs
@@ -1,3 +1,4 @@
+//
// Copyright (C) 2023 Google, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -11,39 +12,40 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
-
-using System;
+//
namespace GoogleMobileAds.Api
{
- ///
- /// Options for controlling video playback in supported ad formats.
- ///
- [Serializable]
- public class VideoOptions
- {
- ///
- /// Indicates whether the requested video should have the click to expand behavior.
- ///
- public bool ClickToExpandRequested;
+ using System;
///
- /// Indicates whether the requested video should have custom controls enabled for
- /// play/pause/mute/unmute.
+ /// Options for controlling video playback in supported ad formats.
///
- public bool CustomControlsRequested;
+ [Serializable]
+ public class VideoOptions
+ {
+ ///
+ /// Indicates whether the requested video should have the click to expand behavior.
+ ///
+ public bool ClickToExpandRequested;
- ///
- /// Indicates whether videos should start muted.
- ///
- public bool StartMuted;
+ ///
+ /// Indicates whether the requested video should have custom controls enabled for
+ /// play/pause/mute/unmute.
+ ///
+ public bool CustomControlsRequested;
- ///
- /// Create a new VideoOptions object.
- ///
- public VideoOptions()
- {
- StartMuted = true;
+ ///
+ /// Indicates whether videos should start muted.
+ ///
+ public bool StartMuted;
+
+ ///
+ /// Create a new VideoOptions object.
+ ///
+ public VideoOptions()
+ {
+ StartMuted = true;
+ }
}
- }
}
diff --git a/source/plugin/Assets/GoogleMobileAds/Platforms/Android/GoogleMobileAdsClientFactory.cs b/source/plugin/Assets/GoogleMobileAds/Platforms/Android/GoogleMobileAdsClientFactory.cs
index 95228c501..dca444285 100644
--- a/source/plugin/Assets/GoogleMobileAds/Platforms/Android/GoogleMobileAdsClientFactory.cs
+++ b/source/plugin/Assets/GoogleMobileAds/Platforms/Android/GoogleMobileAdsClientFactory.cs
@@ -1,4 +1,4 @@
-#if !UNITY_IOS
+#if UNITY_ANDROID
// Copyright (C) 2015 Google, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
diff --git a/source/plugin/Assets/GoogleMobileAds/Platforms/Unity/GoogleMobileAdsClientFactory.cs b/source/plugin/Assets/GoogleMobileAds/Platforms/Unity/GoogleMobileAdsClientFactory.cs
index eebe7394d..c3c2f82a9 100644
--- a/source/plugin/Assets/GoogleMobileAds/Platforms/Unity/GoogleMobileAdsClientFactory.cs
+++ b/source/plugin/Assets/GoogleMobileAds/Platforms/Unity/GoogleMobileAdsClientFactory.cs
@@ -1,3 +1,4 @@
+#if UNITY_EDITOR
// Copyright (C) 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -94,3 +95,4 @@ public IMobileAdsClient MobileAdsInstance()
}
}
}
+#endif