Skip to content

Commit

Permalink
Fixed swift native ad "Mute This Ad" sample.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 640990767
  • Loading branch information
nventimigli authored and maddevrelgithubbot committed Jun 6, 2024
1 parent 7fcfdad commit 45eff7c
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ import GoogleMobileAds
import UIKit

/// A controller that demonstrates how to implement the custom Mute This Ad feature.
class AdMobNativeCustomMuteThisAdViewController: UIViewController {
class AdMobNativeCustomMuteThisAdViewController: UIViewController, UIPickerViewDelegate,
UIPickerViewDataSource
{

/// The view that holds the native ad.
@IBOutlet var nativeAdPlaceholder: UIView!
Expand Down Expand Up @@ -64,6 +66,8 @@ class AdMobNativeCustomMuteThisAdViewController: UIViewController {
else {
assert(false, "Could not load nib file for adView")
}
pickerView.delegate = self
pickerView.dataSource = self
setAdView(adView)
nativeAdView.isHidden = true
refreshAd(nil)
Expand Down

0 comments on commit 45eff7c

Please sign in to comment.