static int32 onAdLoad(void* systemData, void* userData)
{
    s3eAmazonAdsCallbackLoadedData* data = static_cast<s3eAmazonAdsCallbackLoadedData*>(systemData);
    CCLog("---------------------------Ad loaded.");
    
    if (data == NULL || data->m_Properties == NULL)
    {
        return 1;
    }
    
    if (data->m_Id == g_InterstatialId) {
        //
        //Once it is available show the interstatial or you can wait until necessary (scene change or end of round).
        //
        s3eAmazonAdsShowAd(g_InterstatialId);
        
    }
    
    //
    //Change the flag so at the next interval you can request a new one.
    g_requestNewInterstatial = true;
    
    return 0;
}
bool showAd(int adId)
{
    return s3eAmazonAdsShowAd(adId) == S3E_RESULT_SUCCESS;
}