Skip to main content

Extra data

Bidon SDK goes beyond standard ad integration by offering the ability to pass extra data (key, value pairs) with each ad request. This feature allows you to enhance your ad targeting, analytics, and reporting capabilities, giving you greater control and flexibility over your advertising campaigns.

SDK Level Extra

SDK enables you to attach SDK-level data to your ad requests. This means you can include specific information related to the SDK configuration, version, user or any other relevant details that help you monitor and optimize your SDK usage.

// Set extras values
BidonSdk.setExtraValue("SOME_STRING_VALUE", for: "SOME_STRING_KEY")
BidonSdk.setExtraValue(10.00, for: "SOME_NUMERIC_KEY")
BidonSdk.setExtraValue(true, for: "SOME_BOOLEAN_KEY")

// Remove previous value
BidonSdk.setExtraValue(nil, for: "SOME_KEY_TO_REMOVE")

// Get extras
let extras: [String: AnyHashable]? = BidonSdk.extras

AdType Level Extra

SDK also allows you to include ad type-specific data with your ad-requests. Whether you're dealing with banner ads, interstitials, rewarded videos, you can provide additional context or attributes associated with that particular ad type.

// Set extras values
adObject.setExtraValue("SOME_STRING_VALUE", for: "SOME_STRING_KEY")
adObject.setExtraValue(10.00, for: "SOME_NUMERIC_KEY")
adObject.setExtraValue(true, for: "SOME_BOOLEAN_KEY")

// Remove previous value
adObject.setExtraValue(nil, for: "SOME_KEY_TO_REMOVE")

// Get extras
let extras: [String: AnyHashable]? = adObject.extras

Benefits

  • Precision Targeting. By passing extra data, you can fine-tune your ad targeting strategies. For example, you can send user demographics, behavior insights, or contextual information to ensure that ads are shown to the most relevant audiences.

  • Performance Tracking. With the ability to include SDK and ad type data, you gain comprehensive visibility into the performance of your ads. This data can be invaluable for analyzing ad effectiveness and making data-driven optimizations.

  • Custom Reporting. Extra data can be used to create custom reports and dashboards, enabling you to measure the impact of your advertising efforts more accurately and make informed decisions.

  • Improved User Experience. By leveraging extra data, you can tailor the ad experience to match user preferences and behavior, ultimately enhancing user engagement and satisfaction.