Login
Welcome
Login

Settings

AdPlacementSettings

AdPlacementSettings Description
enableDebug() This enable debug logging for Teads inApp SDK
userConsent (subjectGdpr: String , consent: String , tcfVersion: TCFVersion , cmpSdkId: Int) The GDPR status and consent, should match the IAB specifications https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/TCFv2/IAB%20Tech%20Lab%20-%20CMP%20API%20v2.md#how-is-a-cmp-used-in-app%20In-App%20Consent%20APIs%20v1.0%20Final.md
setUsPrivacy(usPrivacy: String) The CCPA consent string, should match the IAB specifications https://iabtechlab.com/standards/ccpa/
disableBatteryMonitoring() Prevent to automatically set UIDevice.current.isBatteryMonitoringEnabled
disableCrashMonitoring() Disable crash monitoring. It will collect Teads crashes by default
disableTeadsAudioSessionManagement() By default, the Teads SDK handles the audio session by setting its category to ambient. This means that all the audio played by other apps will be simply mixed with the ad sound.
addExtras(String, for: String) Add extra data to Teads inApp SDK

AdRequestSettings

AdRequestSettings Description
pageUrl(url: String) This gives context to Teads inApp SDK for Brand Safety
enableValidationMode() This enable the validation tool mode for Teads inApp SDK
addExtra(key: String, value: String) Add extra data to Teads inApp SDK

TeadsAdapterSettings

TeadsAdapterSettings Description
enableDebug() This enable debug logging for Teads inApp SDK
userConsent (subjectGdpr: String , consent: String , tcfVersion: TCFVersion , cmpSdkId: Int) The GDPR status and consent, should match the IAB specifications https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/TCFv2/IAB%20Tech%20Lab%20-%20CMP%20API%20v2.md#how-is-a-cmp-used-in-app%20In-App%20Consent%20APIs%20v1.0%20Final.md
setUsPrivacy(usPrivacy: String) The CCPA consent string, should match the IAB specifications https://iabtechlab.com/standards/ccpa/
disableBatteryMonitoring() Prevent to automatically set UIDevice.current.isBatteryMonitoringEnabled
disableCrashMonitoring() Disable crash monitoring. It will collect Teads crashes by default
disableTeadsAudioSessionManagement() By default, the Teads SDK handles the audio session by setting its category to ambient. This means that all the audio played by other apps will be simply mixed with the ad sound.
addExtras(String, for: String) Add extra data to Teads inApp SDK
pageUrl(url: String) This gives context to Teads inApp SDK for Brand Safety
enableValidationMode() This enable the validation tool mode for Teads inApp SDK
addExtra(key: String, value: String) Add extra data to Teads inApp SDK
registerAdView(UIView, delegate: TeadsMediatedAdViewDelegate) Register the ad view in case of mediation adapter
setMediaScale(_ mediaScale: MediaScale) This is to set how the MediaView scale on its container. You can switch between scaleAspectFill (default) and scaleAspectFit.
This will apply for both images and videos media types.
Available only for Native Ad (Classic or Mediation).

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.