![]() |
Google Ads API Team |
let nativeOptions = GADNativeAdViewAdOptions()
nativeOptions.preferredAdChoicesPosition = .topRightCorner
let videoOptions = GADVideoOptions()
videoOptions.startMuted = false
videoOptions.customControlsRequested = true
let aspectRatioOption = GADNativeAdMediaAdLoaderOptions()
aspectRatioOption.mediaAspectRatio = .any
let adLoader = GADAdLoader(adUnitID: adUnitID, self: vc,adTypes: [.native], options: [aspectRatioOption,videoOptions,nativeOptions])
adLoader.delegate = self
adLoader.load(GADRequest())
**
Main thread blocked by synchronous property query on not-yet-loaded property (assetProperty_Tracks) for HTTP(S) asset. This could have been a problem if this asset were being read from a slow network.
Main thread blocked by synchronous property query on not-yet-loaded property (NaturalSize) for HTTP(S) asset. This could have been a problem if this asset were being read from a slow network.
Main thread blocked by synchronous property query on not-yet-loaded property (PreferredTransform) for HTTP(S) asset. This could have been a problem if this asset were being read from a slow network.
Main thread blocked by synchronous property query on not-yet-loaded property (EstimatedDataRate) for HTTP(S) asset. This could have been a problem if this asset were being read from a slow network.
Main thread blocked by synchronous property query on not-yet-loaded property (NominalFrameRate) for HTTP(S) asset. This could have been a problem if this asset were being read from a slow network.
Show less
**

func adLoader(_ adLoader: GADAdLoader, didReceive nativeAd: GADNativeAd) {
(self.headlineView as? UILabel)?.text = nativeAd.headline
self.mediaView?.mediaContent = nativeAd.mediaContent
(self.bodyView as? UILabel)?.text = nativeAd.body
self.bodyView?.isHidden = nativeAd.body == nil
(self.callToActionView as? UIButton)?.setTitle(nativeAd.callToAction, for:.normal)
self.callToActionView?.isHidden = nativeAd.callToAction == nil
let image = nativeAd.icon?.image
self.iconView?.isHidden = image == nil
self.adImageView.isHidden = image == nil
self.callToActionView?.isUserInteractionEnabled = false
self.nativeAd = nativeAd
}
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups "Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/qXxPr000000000000000000000000000000000000000000000SHFQBX00vn66JKP6RAG3SDRTrwGiZA%40sfdc.net.