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:
Settings | Description |
---|---|
enableDebug() | Enable debug logs from Teads SDK. |
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:
Settings | Description |
---|---|
enableDebug() | Enable debug logs from Teads SDK. |
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 |