From ad5f8082df41cea5e622f7bbf84055afbab9badf Mon Sep 17 00:00:00 2001 From: Garrett Oelze Date: Thu, 20 Apr 2023 11:23:45 -0500 Subject: [PATCH 1/2] Add missing Headline property to NativeAd --- source/Google/MobileAds/ApiDefinition.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/Google/MobileAds/ApiDefinition.cs b/source/Google/MobileAds/ApiDefinition.cs index d00b492de..0194fa14d 100644 --- a/source/Google/MobileAds/ApiDefinition.cs +++ b/source/Google/MobileAds/ApiDefinition.cs @@ -865,6 +865,11 @@ interface SearchBannerView { Delegates = new [] { "Delegate", "UnconfirmedClickDelegate" }, Events = new [] { typeof (NativeAdDelegate), typeof (NativeAdUnconfirmedClickDelegate) })] interface NativeAd { + // @property (readonly, copy, nonatomic) NSString * _Nullable headline; + [NullAllowed] + [Export ("headline")] + string Headline { get; } + // @property (readonly, copy, nonatomic) NSString * _Nullable callToAction; [NullAllowed] [Export ("callToAction")] From 26e91c1ec76d43def42a4f6cbe255a0b1e5639a1 Mon Sep 17 00:00:00 2001 From: Garrett Oelze Date: Thu, 20 Apr 2023 11:24:42 -0500 Subject: [PATCH 2/2] Add missing INativeAdLoaderDelegate. --- source/Google/MobileAds/ApiDefinition.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/source/Google/MobileAds/ApiDefinition.cs b/source/Google/MobileAds/ApiDefinition.cs index 0194fa14d..ab38e9495 100644 --- a/source/Google/MobileAds/ApiDefinition.cs +++ b/source/Google/MobileAds/ApiDefinition.cs @@ -1456,6 +1456,23 @@ interface AdLoaderDelegate { void DidFinishLoading (AdLoader adLoader); } + interface INativeAdLoaderDelegate { + } + + // @protocol GADNativeAdLoaderDelegate +#if NET + [Model] +#else + [Model (AutoGeneratedName = true)] +#endif + [Protocol] + [BaseType (typeof (NSObject), Name = "GADNativeAdLoaderDelegate")] + interface NativeAdLoaderDelegate : AdLoaderDelegate { + // @optional - (void)adLoader:(nonnull GADAdLoader *)adLoader didReceiveNativeAd:(nonnull GADNativeAd *)nativeAd; + [Export("adLoader:didReceiveNativeAd:")] + void DidReceiveNativeAd (AdLoader adLoader, NativeAd nativeAd); + } + #region Loading.Formats interface INativeAdDelegate {