IGAW Common Modules
Proceed
with the common integration process after installing the SDK.
The basic
setting to use the IGAWorks service via common API integration.
After the
common integration process is completed, proceed to the integration process for
the chosen service via API.
IGAW Common Module Integration
After the
common integration process is complete, proceed to the chosen service's
integration process.
Plug-in Initialization
Set the reward server integration system for the app key
and hash key, which were generated after registering the app on the website (*).
In case the unity becomes initialized after executing the
application, IgaworksADWithAppKey
API is called up to initialize
the plug-ins.
Copy
public class MySampleScene : MonoBehaviour {
// Use this for initialization
void Start () {
//Plug-in becomes initialized when the Unity engine is loaded.
IgaworksADPluginIOS.IgaworksADWithAppKey ("YOUR_APP_KEY", "YOUR_HASH_KEY");
}
}
public class MySampleScene : MonoBehaviour {
// Use this for initialization
void Start () {
//Plug-in becomes initialized when the Unity engine is loaded.
IgaworksADPluginIOS.IgaworksADWithAppKey ("YOUR_APP_KEY", "YOUR_HASH_KEY");
}
}
+
YOUR_APP_KEY: The app key generated after registering the app in IGAWorks.
Log Level Setting
Set the log level to be displayed by the SDK.
Use the IgaworksADSetLogLevel API for setting. The value to decide the level shall be based on the enum defined in IgaworksADPluginIOS. See below for the specific levels.
- IgaworksADLogInfo : Display only the basic log according to the info.
- IgaworksADLogDebug : Display the log according to the debug included in the info.
- IgaworksADLogTrace : Display all available logs.
IgaworksADPluginIOS.IgaworksADSetLogLevel (IgaworksADPluginIOS.IgaworksADLogDebug);
The Unity iOS plug-in provides delegation for events that occur in each service.
Copy
public class MySampleScene : MonoBehaviour {
// Use this for initialization
void Start () {
//set Delegate Listener for Igaworks plugin
IgaworksADPluginIOS.IgaworksADSetCallbackHandler ("MySampleScene");
}
}
+
MySampleScene : To register delegation, set the name of the implemented
GameObject here.
NOTE. Using of Tracking Link and adPOPcorn Advertising
We do not collect ADFA in framework.Therefore, if you want to use Tracking Link and adPOPcorn Advertising, add IDFA in framework manually.
If IDFA is not registered, Tracking Link and adPOPcorn Advertising Service will not work.
[IGAWorks Unity iOS IDFA Registration Guide]