The SolarEngine SDK provides a plugin for developers to set the Google Advertising ID (GAID). In most cases, the SDK will automatically retrieve the GAID, and developers do not need to set it manually.
Once the GAID is passed to the SDK, it will be saved and remain unchanged until the next GAID is passed. If multiple GAIDs are passed, only the last one will be saved.
Function
public void setGaid(String gaid);
Parameter | Description | Type | Required |
---|---|---|---|
gaid | GAID of the device | String | No |
Sample Code
SolarEngineManager.getInstance().setGaid("xxxGaidxxx");
Note:
If developers have configured isGDPRArea(true) during the SDK initialization, this method cannot be called successfully.