diff --git a/source/plugin/Assets/GoogleMobileAds/Api/Core/AdFormat.cs b/source/plugin/Assets/GoogleMobileAds/Api/Core/AdFormat.cs new file mode 100644 index 000000000..0507739e0 --- /dev/null +++ b/source/plugin/Assets/GoogleMobileAds/Api/Core/AdFormat.cs @@ -0,0 +1,35 @@ +// Copyright (C) 2024 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 +{ + /// + /// Format of the ad being requested. + /// + 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/AdFormat.cs.meta b/source/plugin/Assets/GoogleMobileAds/Api/Core/AdFormat.cs.meta new file mode 100644 index 000000000..968b6eecd --- /dev/null +++ b/source/plugin/Assets/GoogleMobileAds/Api/Core/AdFormat.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 33dae7206ed774fbc81b0c67eef1e1ad +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/source/plugin/Assets/GoogleMobileAds/Api/Core/PreloadConfiguration.cs b/source/plugin/Assets/GoogleMobileAds/Api/Core/PreloadConfiguration.cs new file mode 100644 index 000000000..08c8ac70f --- /dev/null +++ b/source/plugin/Assets/GoogleMobileAds/Api/Core/PreloadConfiguration.cs @@ -0,0 +1,49 @@ +// Copyright (C) 2024 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. + +using System; + +namespace GoogleMobileAds.Api +{ + /// + /// Configuration for preloading ads. + /// + [Serializable] + public sealed class PreloadConfiguration + { + /// + /// The ad unit ID of the ad to preload. + /// + public string AdUnitId; + + /// + /// The ad format of the ad to preload. + /// + public AdFormat Format; + + /// + /// The ad request to preload. + /// + public AdRequest Request; + + public PreloadConfiguration() { } + + public PreloadConfiguration(PreloadConfiguration configuration) + { + AdUnitId = configuration.AdUnitId; + Format = configuration.Format; + Request = configuration.Request; + } + } +} diff --git a/source/plugin/Assets/GoogleMobileAds/Api/Core/PreloadConfiguration.cs.meta b/source/plugin/Assets/GoogleMobileAds/Api/Core/PreloadConfiguration.cs.meta new file mode 100644 index 000000000..4faf2add7 --- /dev/null +++ b/source/plugin/Assets/GoogleMobileAds/Api/Core/PreloadConfiguration.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 117797828564244c286d8e8b0049fed1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: