API | Description |
|---|---|
Obtains the OAID of a device. You are advised to use this API only for ad-related scenarios. |
Obtains the OAID of a device. You are advised to use this API only for ad-related scenarios.
Parameter | Type | Mandatory | Description |
|---|---|---|---|
success | function | No | Callback function triggered upon a successful API call. |
fail | function | No | Callback function triggered upon a failed API call. |
complete | function | No | If a function is passed, it will be called regardless of whether the API call succeeds or fails. |
Parameter | Type | Description |
|---|---|---|
oaid | string | OAID of a device. If the current device does not support the OAID, an empty value is returned. If a user resets the OAID, the value changes. After Disable personalized ads is enabled on the phone, a string consisting of zeros is returned. |
"function" == typeof qg.getOAID && qg.getOAID({
success: function (ret) {
console.log("qg.getOAID success :" + JSON.stringify(ret));
},
fail: function (errMsg, errCode) {
console.log("qg.getOAID fail " + errCode + ': ' + errMsg)
},
complete: function () {
console.log("qg.getOAID complete")
}
})