--
---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/01ca57e4-3786-4ab4-a295-2cb0e97a6ab2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks for reaching out to us. Can you please share the following information for us to investigate the issue:
- Complete Crash logs/Crashlytics link
- Steps to reproduce the issue
- Sample app if you are able to reproduce this locally.
- Charles logs
- App link in AppStore
Thanks for getting back to us. The offset for the GAD** symbol is pretty high for the Mobile Ads SDK to be considered the cause of this crash and more likely cause looks like AVAssetResourceLoader <AVFoundation> framework. However, to debug this further. can you send us code snippets of your implementation of the Mobile Ads SDK? We will then have a look into this.
//After fethcing table view elements on viewDidLoad method, I load GADAdLoader requests and hold them in an array
GADAdLoader *adLoaderForAdmob = [[GADAdLoader alloc] initWithAdUnitID:adUnitId
rootViewController:self
adTypes:@[
kGADAdLoaderAdTypeUnifiedNative,
]
options:@[multipleAdsOptions]];
adLoaderForAdmob.delegate = self;
GADRequest *request = [GADRequest request];
request.testDevices = @[kGADSimulatorID];
[adLoaderForAdmob loadRequest:request];
NSMutableDictionary *adLoaderDict = [NSMutableDictionary dictionaryWithObjects:@[adLoaderForAdmob, Key_Admob]
forKeys:@[@"adLoader", @"cellType"]];
[tempArray addObject:[adLoaderDict mutableCopy]];
- (void)adLoader:(GADAdLoader *)adLoader didReceiveUnifiedNativeAd:(GADUnifiedNativeAd *)nativeAd {
if (nativeAd) {
for (NSInteger i=0; i<self.translationHistory.count; i++) {
NSMutableDictionary *adLoaderDict = self.translationHistory[i];
if ([adLoaderDict objectForKey:@"adLoader"]
&& [((GADAdLoader*)[adLoaderDict objectForKey:@"adLoader"]).adUnitID isEqualToString:adLoader.adUnitID]
&& [[adLoaderDict objectForKey:@"adLoader"] isEqual:adLoader]) {
[adLoaderDict setObject:nativeAd forKey:@"nativeAd"];
...// replace the object at index i with adLoaderDict on my array
}
}
}
[self.tableViewForHistory reloadData];
//then on cellForRowAtIndexPath method, get GADUnifiedNativeAd classes and show themGADUnifiedNativeAd *nativeAd = (GADUnifiedNativeAd*)[tempDict objectForKey:@"nativeAd"];
if (nativeAd) {
cell.nativeAdView.hidden = NO;
cell.nativeAdView.nativeAd = nativeAd;
((UILabel*)cell.nativeAdView.headlineView).text = nativeAd.headline ? nativeAd.headline : @"";
((UILabel*)cell.nativeAdView.bodyView).text = nativeAd.body ? nativeAd.body : @"";
[((UIButton*)cell.nativeAdView.callToActionView) setTitle:(nativeAd.callToAction ? nativeAd.callToAction : @"") forState:UIControlStateNormal];
((UIButton*)cell.nativeAdView.callToActionView).userInteractionEnabled = NO;
...