Skip to content

1.0.2

Choose a tag to compare

@smuravev smuravev released this 09 Dec 05:25
· 12 commits to main since this release
f547a09
  • Bug fixes.
  • Extended customParams in the CreativeQuery and 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>()
            ),
        )