Call setGaid to set the Google Advertising ID:
Function
export function setGaid(gaid:string);
Parameter | Parameter Meaning | Parameter Type | Required |
---|---|---|---|
gaid | GAID of the device | String | Yes |
Sample Code
//It is recommended to call before SolarEngine SDK initialization
let gaid:string = "your device gaid";
SolarEngine.setGaid(gaid);
Note:
This method only applies to the Android system.