Skip to content

Adding Custom Values

Marius Merkevičius edited this page Oct 13, 2015 · 5 revisions

Adding custom values to AdformSDK

To add custom values with the add, you can use a static class AdformSDK and its method setPublisherIdAndCustomData(int, HashMap<String ,String>).

Note that #1 parameter is publisher id and #2 is a set of custom data.

// Use builder to set custom parameters...
AdformSDK.setPublisherIdAndCustomData(666666, CustomParamBuilder.startCreating()
                .addCustomParam("gender", "female")
                .addCustomParam("age", "23")
                .buildParams()
);        

Clone this wiki locally