Skip to content

Commit 776e8e1

Browse files
nventimiglimaddevrelgithubbot
authored andcommitted
Updated MuteThisAd sample to use alloc instead of new.
PiperOrigin-RevId: 642138309
1 parent 45eff7c commit 776e8e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objective-C/advanced/APIDemo/APIDemo/AdMobNativeCustomMuteThisAdViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ - (IBAction)refreshAd:(id)sender {
6262
self.refreshButton.enabled = NO;
6363

6464
// Provide the custom mute this ad loader options to request custom mute feature.
65-
GADNativeMuteThisAdLoaderOptions *muteOptions = [GADNativeMuteThisAdLoaderOptions new];
65+
GADNativeMuteThisAdLoaderOptions *muteOptions = [[GADNativeMuteThisAdLoaderOptions alloc] init];
6666
self.adLoader = [[GADAdLoader alloc] initWithAdUnitID:GADAPIDemoNativeTestAdUnit
6767
rootViewController:self
6868
adTypes:@[ GADAdLoaderAdTypeNative ]

0 commit comments

Comments
 (0)