Repository navigation
1.0.2
- Bug fixes.
- Extended
customParamsin theCreativeQueryand in the ``. You can pass complex JSON object now. See more details in the CreativeQuery. ProductCreativeQuery. An example:
creativeView.query = CreativeQuery(
placementId = arrayOf(
"HTML_BANNER",
"IMAGE_BANNER"
).random(),
sizes = listOf(Size(width = 260, height = 106)),
floorPrice = 2.0,
currency = "USD",
customParams = mapOf(
"object" to mapOf(
"id" to "ID00001",
"name" to "MyObjectName",
),
"string" to "MyString",
"int" to 199,
"float" to 3.14,
"objectList" to listOf(
mapOf(
"property" to "item",
"value" to "lego bricks"
),
mapOf(
"property" to "amount",
"value" to 3001
),
mapOf(
"property" to "price",
"value" to 12.99
),
),
"integerList" to listOf(11, 12, -13, -14),
"nonTypicalList" to listOf("some string", 3.14, 199),
"emptyList" to emptyList<Int>()
),
)