


What is the reason for not having a constantly sized and well designed icon for all native ads served irrespective of mediation partner? Is there a way I can manually style it or force them to be the same?
GADNativeAdViewAdOptions *adViewOptions = [[GADNativeAdViewAdOptions alloc] init];
adViewOptions.preferredAdChoicesPosition = GADAdChoicesPositionTopLeftCorner;
self.adLoader = [[GADAdLoader alloc]
initWithAdUnitID:@"xxx"
rootViewController: topViewController
adTypes:@[kGADAdLoaderAdTypeUnifiedNative]
options:@[adViewOptions]];
self.adLoader.delegate = self;
[self.adLoader loadRequest:[GADRequest request]];
CGFloat aspectRatio = ad.mediaContent.aspectRatio;
(lldb) po ad
<GADUnifiedNativeAd: 0x282a68360>
(lldb) po ad.adNetworkClassName
GADMAdapterFacebook
(lldb) po ad.mediaContent
<GADMediaContent: 0x2800f2550>
(lldb) po ad.mediaContent.aspectRatio
0
Printing description of ad->_internalNativeAd->_assets->_mediaContent->_mediatedNativeAd->_nativeAd->_dataModel->_image:
<FBAdImage: 0x2800830c0>
Printing description of ad->_internalNativeAd->_assets->_mediaContent->_mediatedNativeAd->_nativeAd->_dataModel->_image->_width:
(long long) _width = 750
Printing description of ad->_internalNativeAd->_assets->_mediaContent->_mediatedNativeAd->_nativeAd->_dataModel->_image->_height:
(long long) _height = 750


(note this is a different instance hence it has a different aspect ratio)
CGFloat aspectRatio = ad.mediaContent.aspectRatio;
if (aspectRatio == 0) {
FBNativeAd *fbAd = [ad valueForKeyPath:@"_internalNativeAd._assets._mediatedNativeAd._nativeAd"];
aspectRatio = fbAd.aspectRatio;
}
Hi Neobie,
Thank you for reaching out to us.
As per checking on the thread, my previous colleague already mentioned that, the size of the adChoice icon from the Facebook ads is determined by the Facebook SDK(Meta Audience Network) and the Meta Audience Network adapter (Facebook adapter) does not make any changes to the size of the adChoice icon. It would be best that you reach out to that team as they are better equipped to address concerns specific to adChoice icon size. Also, if you're using Meta Audience Network(Facebook), it would be best if you're using the latest version.
Regards,
|
||||||