Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Missing API definitions for native ads #614

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions source/Google/MobileAds/ApiDefinition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down Expand Up @@ -1451,6 +1456,23 @@ interface AdLoaderDelegate {
void DidFinishLoading (AdLoader adLoader);
}

interface INativeAdLoaderDelegate {
}

// @protocol GADNativeAdLoaderDelegate <GADAdLoaderDelegate>
#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 {
Expand Down