SDK-API Calls

From Mocean Mobile Wiki

Jump to: navigation, search

When using our SDK to call the ad request API, the following fields are setup by SDK or developer:


Parameters set by the SDK that cannot be overwritten by developer

ParameterDescription
version SDK version number
key Specifies output format (key=3 for XML)
count Number of ads in ad response (count=1)


Parameters set by the SDK that can be overwritten by developer

ParameterDescription
ua User-Agent string
size_x max width of the ad banner
size_y max height of the ad banner
mcc Mobile Country Code (int) (If supported)
mncMobile Network (Carrier) Code (int) (If supported)
ad_server_url url of ad server


Parameters set by developer

ParameterDescription
site id of publisher site (optionally set)
zone id of publisher zone (must always be set)


Parameters optionally auto-detected and set by SDK

ParameterDescription
long id of publisher site (optionally set)
lat id of publisher zone (must always be set)


All other ad request parameters can optionally be set by developer by calling the property setting method defined the SDK.

Personal tools