You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/**
Called after a rewarded video has changed its availability to true.
@param adInfo The info of the ad.
Replaces the delegate rewardedVideoHasChangedAvailability:(true)available
*/
- (void)hasAdAvailableWithAdInfo:(ISAdInfo *)adInfo{
int dsMapIndex = dsMapCreate();
dsMapAddString(dsMapIndex, (char*)"type",(char*)"ironsource_rewarded_video_availability_changed");
dsMapAddDouble(dsMapIndex,(char*)"available", 1.0);
createSocialAsyncEventWithDSMap(dsMapIndex);
}
/**
Called after a rewarded video has changed its availability to false.
Replaces the delegate rewardedVideoHasChangedAvailability:(false)available
*/
- (void)hasNoAvailableAd{
int dsMapIndex = dsMapCreate();
dsMapAddString(dsMapIndex, (char*)"type",(char*)"ironsource_rewarded_video_availability_changed");
dsMapAddDouble(dsMapIndex,(char*)"available", 0.0);
createSocialAsyncEventWithDSMap(dsMapIndex);
}
/**
Called after a rewarded video has been viewed completely and the user is eligible for a reward.
@param placementInfo An object that contains the placement's reward name and amount.
@param adInfo The info of the ad.
*/
- (void)didReceiveRewardForPlacement:(ISPlacementInfo *)placementInfo withAdInfo:(ISAdInfo *)adInfo {
int dsMapIndex = dsMapCreate();
dsMapAddString(dsMapIndex, (char*)"type",(char*)"ironsource_rewarded_video_rewarded");
createSocialAsyncEventWithDSMap(dsMapIndex);
}
/**
Called after a rewarded video has attempted to show but failed.
@param error The reason for the error
@param adInfo The info of the ad.
*/
- (void)didFailToShowWithError:(NSError *)error andAdInfo:(ISAdInfo *)adInfo {
AudioResumeAll();
Audio_DeviceResume();
int dsMapIndex = dsMapCreate();
dsMapAddString(dsMapIndex, (char*)"type",(char*)"ironsource_rewarded_video_show_failed");
createSocialAsyncEventWithDSMap(dsMapIndex);
}
/**
Called after a rewarded video has been opened.
@param adInfo The info of the ad.
*/
- (void)didOpenWithAdInfo:(ISAdInfo *)adInfo {
int dsMapIndex = dsMapCreate();
dsMapAddString(dsMapIndex, (char*)"type",(char*)"ironsource_rewarded_video_opened");
createSocialAsyncEventWithDSMap(dsMapIndex);
}
/**
Called after a rewarded video has been dismissed.
@param adInfo The info of the ad.
*/
- (void)didCloseWithAdInfo:(ISAdInfo *)adInfo {
AudioResumeAll();
Audio_DeviceResume();
int dsMapIndex = dsMapCreate();
dsMapAddString(dsMapIndex, (char*)"type",(char*)"ironsource_rewarded_video_closed");
createSocialAsyncEventWithDSMap(dsMapIndex);
}
/**
Called after a rewarded video has been clicked.
This callback is not supported by all networks, and we recommend using it
only if it's supported by all networks you included in your build
@param adInfo The info of the ad.
*/
- (void)didClick:(ISPlacementInfo *)placementInfo withAdInfo:(ISAdInfo *)adInfo {
int dsMapIndex = dsMapCreate();
dsMapAddString(dsMapIndex, (char*)"type",(char*)"ironsource_rewarded_video_clicked");
createSocialAsyncEventWithDSMap(dsMapIndex);
}
@end
Right, are a bit different, but if I'm correct it's the same feature. not sure if add again the same feature under other work flow it's the best for most of the users, can be confusing.
But if it exists a really positive advantage against the manual flow let us know, (more than avoid call load())
most of the users wouldn't want to manage loading themselves, its extra code and headaches that can easily be avoided by letting ironsource's sdk do it for them.
the official ironsource sdk supports both, why hide one of the functionallities?
the code is already written and tested in production by our app, so its really not much work to add it :)
as described in IronSource docs,
there's a difference between
LevelPlayRewardedVideoManualListener
andLevelPlayRewardedVideoListener
see:
https://developers.is.com/ironsource-mobile/android/rewarded-video-integration-android/
and
https://developers.is.com/ironsource-mobile/android/rewarded-video-manual-integration-android/
seems like
LevelPlayRewardedVideoListener
is missing atm.I suggest changing current
ironsource_rewarded_video_init
toironsource_rewarded_video_manual_init
and adding it like:and same in ios:
new .h file:
listener_reward:
listener_reward_manual:
inits:
The text was updated successfully, but these errors were encountered: