Placement Load Events
Admix has several different placement events, and you can set up these events for a variety of needs. You can do that through code or through the Unity Editor. Admix also has next load events:
Placement Load Success Event
This event can be used to indicate when ad content is received and rendered successfully. You can register the event through code:
public AdmixPlacementBase AdmixPlacement;
private void Awake()
{
AdmixPlacement.PlacementLoadEvents.PlacementLoadSuccess.OnPlacementLoadSuccess.AddListener((arg1, arg2) =>
{
LogOnLoaded(arg2); // Function on Success
});
}
Placement Load Fail Event
This event indicates when ad content is NOT received and rendered successfully. This can happen for a few reasons, for example network connection issues, bad responses from the server, etc. You can register this event through code:
public AdmixPlacementBase AdmixPlacement;
private void Awake()
{
AdmixPlacement.PlacementLoadEvents.PlacementLoadFail.OnPlacementLoadFail.AddListener((arg1, arg2) =>
{
OnFailed(arg2); // Function on Failed
});
}
You can also setup this event for each Admix placement within the editor. It's available under the Admix banner/video script inside each Admix placement GameObject: