//--------------------------------------
    // INTERSTITIAL EVENTS
    //--------------------------------------

    private void OnInterstitialsLoaded(string adProperties)
    {
        SA_AmazonAdsExample.isInterstitialLoaded = true;

        string[] storeData = adProperties.Split(DATA_SPLITTER [0]);

        AMN_InterstitialDataResult result = new AMN_InterstitialDataResult(storeData);

        OnInterstitialDataReceived(result);
    }
    private void OnInterstitialsFailed(string error_message)
    {
        SA_AmazonAdsExample.isInterstitialLoaded = false;

        Debug.Log("OnInterstitialsFailed with error " + error_message);

        AMN_InterstitialDataResult result = new AMN_InterstitialDataResult(error_message);

        OnInterstitialDataReceived(result);
    }
Exemple #3
0
 private static void AmazonInterstitialDataReceived(AMN_InterstitialDataResult result)
 {
     if (result.isSuccess)
     {
         OnInterstitialLoaded();
         if (_AmazonAdsShowOnLoad)
         {
             SA_AmazonAdsManager.Instance.ShowInterstitial();
         }
     }
     else
     {
         OnInterstitialLoadFail(0);
     }
 }
    //--------------------------------------
    // INTERSTITIAL EVENTS
    //--------------------------------------

    private void OnInterstitialDataReceived(AMN_InterstitialDataResult result)
    {
        AMN_AdProperties properties = result.Properties;

        Debug.Log("OnInterstitialDataReceived with result success " + result.isSuccess + " " + properties);
    }