Login
Welcome
Login

AdSettings parameters


This article shows you all available settings to tweak Teads ad

First create a teadsAdSettings object:

let teadsAdSettings = TeadsAdSettings {
	$0.enableDebug()
	$0.pageUrl("https://myarticle.com/id")
	$0....
}
adView.load(teadsAdSettings: teadsAdSettings)

Here is a list of all available TeadsAdSettings parameters:

SettingsDescription
enableDebug()Enable debug logs from Teads SDK.
enableLigtEndScreen()Enable light mode for the end screen
disableLocation()Disable the collection of user location. By default, SDK will collect user location if corresponding permissions have been granted to the host application.
disableMediaPreload()Disable preload of media files (like videos). If disabled, media files will be loaded lazily.
pageUrl(_ urlString: String)The publisher equivalent web page URL for brand safety purposes.
userConsent(subjectToGDPR: String, consent: String)The user consent, European regulation requirement, see the GDPR consent management documentation
userConsent(subjectToGDPR: String, consent: String, tcfVersion: TCFVersion, cmpSdkID: Int)The GDPR Transparency and Consent Framework v2 requirement, see the GDPR consent management documentation
setUsPrivacy(consent: String)The US privacy CCPA user consent following IAB specifications
disableTeadsAudioSessionManagement()(iOS only) Disable audio session management, see the Audio Mix Management section
disableBatteryMonitoring()(iOS only) Disable battery monitoring, see the Battery monitoring management section
enableValidationMode()Enable validation tool session, see the Validate your integration section
disableCrashMonitoring()Disable crash monitoring, see the Crash monitoring documentation

First create a teadsAdSettings object:


adView.load(new AdSettings.Builder()
	.pageUrl("https://example.com/article1")
	.build())

Here is a list of all available TeadsAdSettings parameters:

SettingsDescription
enableDebug()Enable debug logs from Teads SDK.
useLightEndscreen()Enable light mode for the end screen
disableLocation()Disable the collection of user location. By default, SDK will collect user location if corresponding permissions have been granted to the host application.
disableMediaPreload()Disable preload of media files (like videos). If disabled, media files will be loaded lazily.
pageUrl(String url)The publisher equivalent web page URL for brand safety purposes.
userConsent(@Nullable String subjectToGDPR, String consent)The user consent, European regulation requirement, see the GDPR consent management documentation
userConsent(@Nullable String subjectToGDPR, String consent, UserConsent.TCFVersion tcfVersion, Integer cmpSdkID)The GDPR Transparency and Consent Framework v2 requirement, see the GDPR consent management documentation
setUsPrivacy(String consentString)The US privacy CCPA user consent following IAB specifications
hideBrowserUrl()(Android only) Hide the website url in the internal browser only. The url is visible by default.
toolbarBackgroundColor(int color)Set the toolbar background color on the browser.
enableValidationMode()Enable validation tool session, see the Validate your integration section
disableCrashMonitoring()Disable crash monitoring, see the Crash monitoring documentation

Did you find it helpful? Yes No

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