public final class MyTargetStandardAdAdapter extends java.lang.Object implements MediationStandardAdAdapter
MediationStandardAdAdapter.MediationStandardAdListener| Constructor and Description |
|---|
MyTargetStandardAdAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroys adapter and cleans resources.
|
void |
load(MediationAdConfig mediationAdConfig,
MyTargetView.AdSize adSize,
MediationStandardAdAdapter.MediationStandardAdListener listener,
android.content.Context context)
Will be called when mediation choose this adapter for loading mediation.
|
void |
setSection(StandardAdSection section) |
public void setSection(@Nullable
StandardAdSection section)
public void load(@NonNull
MediationAdConfig mediationAdConfig,
@NonNull
MyTargetView.AdSize adSize,
@NonNull
MediationStandardAdAdapter.MediationStandardAdListener listener,
@NonNull
android.content.Context context)
MediationStandardAdAdapter.MediationStandardAdListener.onLoad(View, MediationStandardAdAdapter)
in case of failed loading should be called
MediationStandardAdAdapter.MediationStandardAdListener.onNoAd(String, MediationStandardAdAdapter)
with the reason of fail. If no callbacks will be called, adapter will be removed from loading
queue, and next adapter or no ad will be called.load in interface MediationStandardAdAdaptermediationAdConfig - contains main configuration for mediationadSize - banner sizelistener - main mediation listenercontext - app contextMediationAdConfig,
MyTargetView.AdSizepublic void destroy()
destroy in interface MediationAdapter