public class POBNativeAdManager
extends java.lang.Object
implements com.pubmatic.sdk.common.POBAdServerSignalingEventListener
loadAd(POBRequest,POBProfileInfo) to load native ad.
To get native ads set setListener(POBNativeAdManagerListener), that will notifies loading
events.| Modifier and Type | Class and Description |
|---|---|
static interface |
POBNativeAdManager.POBNativeAdManagerListener
Interface to definition to notify Native Ad load events.
|
| Constructor and Description |
|---|
POBNativeAdManager(android.content.Context context,
POBNativeTemplateType templateType,
POBNativeAdEventBridge eventHandlerBridge)
Initializes & returns a newly allocated ad loader object for supporting 'Header Bidding Configuration'.
|
| Modifier and Type | Method and Description |
|---|---|
com.pubmatic.sdk.common.base.POBBidsProvider |
getBidsProvider() |
void |
loadAd(com.pubmatic.sdk.openwrap.core.POBRequest request,
com.pubmatic.sdk.common.models.POBProfileInfo profileInfo)
Load the Native ad for given ad request and profile info.
|
void |
onAdServerWin() |
void |
onFailed(com.pubmatic.sdk.common.POBError error) |
void |
onOpenWrapPartnerWin(java.lang.String bidId) |
void |
setListener(POBNativeAdManager.POBNativeAdManagerListener adManagerListener)
To listen the AdManager load events, refer
|
public POBNativeAdManager(@NonNull
android.content.Context context,
@NonNull
POBNativeTemplateType templateType,
@NonNull
POBNativeAdEventBridge eventHandlerBridge)
context - the application contexttemplateType - Instance of POBNativeTemplateTypeeventHandlerBridge - Instance of POBNativeAdEvent or its subclasspublic void setListener(@Nullable
POBNativeAdManager.POBNativeAdManagerListener adManagerListener)
adManagerListener - reference of POBNativeAdManager.POBNativeAdManagerListener.public void loadAd(@NonNull
com.pubmatic.sdk.openwrap.core.POBRequest request,
@Nullable
com.pubmatic.sdk.common.models.POBProfileInfo profileInfo)
request - the instance of requestprofileInfo - thepublic void onOpenWrapPartnerWin(@Nullable
java.lang.String bidId)
onOpenWrapPartnerWin in interface com.pubmatic.sdk.common.POBAdServerSignalingEventListenerpublic void onAdServerWin()
onAdServerWin in interface com.pubmatic.sdk.common.POBAdServerSignalingEventListenerpublic void onFailed(@NonNull
com.pubmatic.sdk.common.POBError error)
onFailed in interface com.pubmatic.sdk.common.POBAdServerSignalingEventListener@Nullable public com.pubmatic.sdk.common.base.POBBidsProvider getBidsProvider()
getBidsProvider in interface com.pubmatic.sdk.common.POBAdServerSignalingEventListener