Package com.my.target.mediation
Interface MediationNativeBannerAdAdapter.MediationNativeBannerAdListener
- Enclosing interface:
- MediationNativeBannerAdAdapter
public static interface MediationNativeBannerAdAdapter.MediationNativeBannerAdListener
-
Method Summary
Modifier and TypeMethodDescriptionvoidCalls ifMediationNativeBannerAdAdapter.MediationNativeBannerAdListener#shouldCloseAutomaticallyreturned false.voidonAdChoicesIconLoad(ImageData imageData, boolean success, MediationNativeBannerAdAdapter adapter) Need to call when adChoices icon loaded successfullyvoidonClick(MediationNativeBannerAdAdapter adapter) Must be called when ad view received click.voidCalls ifMediationNativeBannerAdAdapter.MediationNativeBannerAdListener#shouldCloseAutomaticallyreturned true.voidonLoad(NativeBanner banner, MediationNativeBannerAdAdapter adapter) Must be called when implemented ads network loads successfully insideMediationNativeBannerAdAdapter#load(MediationNativeBannerAdConfig, MediationNativeBannerAdListener, Context)method.voidonNoAd(IAdLoadingError adLoadingError, MediationNativeBannerAdAdapter adapter) Must be called when implemented ads failed to load for some reason insideMediationNativeBannerAdAdapter#load(MediationNativeBannerAdConfig, MediationNativeBannerAdListener, Context)method.voidonShow(MediationNativeBannerAdAdapter adapter) Must be called when ad view showing / impression must be tracked.booleanDetermines what SDK should do when selecting particular adchoices option.
-
Method Details
-
onAdChoicesIconLoad
void onAdChoicesIconLoad(ImageData imageData, boolean success, MediationNativeBannerAdAdapter adapter) Need to call when adChoices icon loaded successfully- Parameters:
imageData- is current instancesuccess- is download statusadapter- an instance of current adapter
-
onLoad
Must be called when implemented ads network loads successfully insideMediationNativeBannerAdAdapter#load(MediationNativeBannerAdConfig, MediationNativeBannerAdListener, Context)method.- Parameters:
banner- banner should be created from assets, received from ad network. UseNativeBanner.Builderfor building itadapter- an instance of current adapter
-
onNoAd
Must be called when implemented ads failed to load for some reason insideMediationNativeBannerAdAdapter#load(MediationNativeBannerAdConfig, MediationNativeBannerAdListener, Context)method.- Parameters:
adLoadingError- a reason of fail to loadadapter- an instance of current adapter
-
onClick
Must be called when ad view received click. Most of ad networks provide callbacks for this, so pass it here- Parameters:
adapter- an instance of current adapter
-
onShow
Must be called when ad view showing / impression must be tracked. Most of ad networks provide callbacks for this, so pass it here- Parameters:
adapter- an instance of current adapter
-
shouldCloseAutomatically
boolean shouldCloseAutomatically()Determines what SDK should do when selecting particular adchoices option.- Returns:
- Boolean value which specifies should be ad closed or not.
-
onCloseAutomatically
Calls ifMediationNativeBannerAdAdapter.MediationNativeBannerAdListener#shouldCloseAutomaticallyreturned true.- Parameters:
adapter- Adapter whom ad was closed automatically.
-
closeIfAutomaticallyDisabled
Calls ifMediationNativeBannerAdAdapter.MediationNativeBannerAdListener#shouldCloseAutomaticallyreturned false.- Parameters:
adapter- Adapter whom ad have to be hidden.
-