Skip to content

1.0.2

Choose a tag to compare

@smuravev smuravev released this 09 Dec 06:57
· 14 commits to main since this release
9350ccb
  • 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(
        sizes: [sizes.randomElement()!],
        markupType: .BANNER,
    
        customParams: [
            "object": [
                "id": "ID00001",
                "name": "MyObjectName"
            ],
            "string": "MyString",
            "int": 199,
            "float": 3.14,
            "objectList": [
                [
                    "property": "item",
                    "value": "lego bricks"
                ],
                [
                    "property": "amount",
                    "value": 3001
                ],
                [
                    "property": "price",
                    "value": 12.99
                ]
            ],
            "integerList": [11, 12, -13, -14],
            "nonTypicalList": ["some string", 3.14, 199],
            "emptyList": []
        ]
    )