| java.lang.Object | |
| ↳ | com.smaato.sdk.core.SmaatoSdk |
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| static Integer | getAge() | ||||||||||
| static boolean |
getCoppa()
false indicates that ad content should not be treated as child-directed for purposes of COPPA. | ||||||||||
| static Gender | getGender() | ||||||||||
| static String | getKeywords() | ||||||||||
| static String | getLanguage() | ||||||||||
| static LatLng | getLatLng() | ||||||||||
| static String | getRegion() | ||||||||||
| static String | getSearchQuery() | ||||||||||
| static String | getVersion() | ||||||||||
| static String | getZip() | ||||||||||
| static void |
init(Application application, Config config)
Initializes the SDK with custom
Config. | ||||||||||
| static void | init(Application application) | ||||||||||
| static void |
setAge(Integer age)
The user’s age.
| ||||||||||
| static void |
setCoppa(boolean coppa)
false will indicate that ad content should not be treated as child-directed for purposes of COPPA. | ||||||||||
| static void |
setGender(Gender gender)
The user's gender.
| ||||||||||
| static void |
setKeywords(String keywords)
Tags (free text, case insensitive) describing the content: comma separated values.
| ||||||||||
| static void |
setLanguage(String language)
The user's language represented as two-symbol code according to ISO 639-1.
| ||||||||||
| static void |
setLatLng(LatLng latLng)
GPS coordinates of the user's location.
| ||||||||||
| static void |
setRegion(String region)
The region or state, the user is located in.
| ||||||||||
| static void |
setSearchQuery(String searchQuery)
Query String: A search term entered by the user: comma separated values.
| ||||||||||
| static void |
setZip(String zip)
The postal code of the user's location.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
false indicates that ad content should not be treated as child-directed for purposes of COPPA.
true indicates that ad content should be treated as child-directed for purposes of COPPA.
coppa flag. The default value is false.null.null.null.null.null.Initializes the SDK with custom Config.
SmaatoSdk.init() must be called from your Application.onCreate().
| application | can not be null. |
|---|---|
| config | a Config instance, can be null. If null is passed, then a default Config
is used (log level set to INFO and httpsOnly set to false). |
| NullPointerException | if application parameter is null. |
|---|
The user’s age. If only a range is available, use the mean average.
Sets the age.
| age | the age to set, can be null. |
|---|
false will indicate that ad content should not be treated as child-directed for purposes of COPPA.
true will indicate that ad content should be treated as child-directed for purposes of COPPA.
Sets the coppa. If not set, the default value is false.
| coppa | the coppa to set |
|---|
The user's gender.
Sets the gender.
| gender | the gender to set, can be null. |
|---|
Tags (free text, case insensitive) describing the content: comma separated values.
Sets the keywords.
| keywords | the keywords to set, can be null. |
|---|
The user's language represented as two-symbol code according to ISO 639-1.
Sets the language.
| language | the language to set, can be null. |
|---|
GPS coordinates of the user's location.
Sets the latLng.
| latLng | the latLng to set, can be null. |
|---|
The region or state, the user is located in.
Sets the region.
| region | the region to set, can be null. |
|---|
Query String: A search term entered by the user: comma separated values.
Sets the searchQuery.
| searchQuery | the searchQuery to set, can be null. |
|---|
The postal code of the user's location.
Sets the zip.
| zip | the zip to set, can be null. |
|---|