Migración de Android SDK v7 a 8.0
Los publicadores con SDK v8.0 deben inicializar el SDK de Xandr antes de realizar una solicitud de anuncio. Cuando se usa el SDK de Xandr Mobile Ads para Android SDK v8, se debe llamar al init()
método antes de cualquier otra operación del SDK. Sin esta inicialización, no se realizaría ninguna solicitud de anuncio y el SDK produciría una excepción. Para obtener más información, consulte Inicialización de Android - SDK (v8.0).
API eliminadas y sus alternativas
Algunas de las API que se enumeran a continuación se han quitado en el SDK de Xandr v8.0. Si se usan las SIGUIENTES API enumeradas, solicitamos que las API se migren a sus API equivalentes o alternativas.
Clase | API eliminada | API alternativa |
---|---|---|
ANNativeAdResponse |
isOpenNativeBrowser() |
getClickThroughAction() |
ANNativeAdResponse |
openNativeBrowser(boolean openNativeBrowser) |
setClickThroughAction(ANClickThroughAction clickThroughAction) |
VideoAd |
getOpensNativeBrowser() |
getClickThroughAction() |
VideoAd |
setOpensNativeBrowser(boolean opensNativeBrowser) |
setClickThroughAction(ANClickThroughAction clickThroughAction) |
VideoAd |
setExternalUid(String externalUid) |
SDKSettings.setPublisherUserId(String publisherUserId) |
VideoAd |
getExternalUid() |
SDKSettings.getPublisherUserId() |
VideoAd |
getCreativeId() |
ANAdResponseInfo.getCreativeId() |
ANMultiAdRequest |
getExternalUid() |
SDKSettings.setPublisherUserId(String publisherUserId) |
ANMultiAdRequest |
setExternalUid(String externalUid) |
SDKSettings.getPublisherUserId() |
BannerAdView |
loadAdOffscreen() |
loadAd() |
BannerAdView |
getOpensNativeBrowser() |
getClickThroughAction() |
BannerAdView |
setOpensNativeBrowser(boolean opensNativeBrowser) |
setClickThroughAction(ANClickThroughAction clickThroughAction) |
BannerAdView |
setExternalUid(String externalUid) |
SDKSettings.setPublisherUserId(String publisherUserId) |
BannerAdView |
getExternalUid() |
SDKSettings.getPublisherUserId() |
BannerAdView |
getCreativeId() |
ANAdResponseInfo.getCreativeId() |
BannerAdView |
getAdType() |
ANAdResponseInfo.getAdType() |
BannerAdView |
setAllowNativeDemand(boolean enabled, int rendererId) |
setAllowNativeDemand(boolean) setRendererId(int rendererId) |
BannerAdView |
setCountImpressionOnAdLoad(boolean enabled) |
N/D |
BannerAdView |
getCountImpressionOnAdLoad() |
N/D |
InterstitialAdView |
loadAdOffscreen() |
loadAd() |
InterstitialAdView |
getOpensNativeBrowser() |
getClickThroughAction() |
InterstitialAdView |
setOpensNativeBrowser(boolean opensNativeBrowser) |
setClickThroughAction(ANClickThroughAction clickThroughAction) |
InterstitialAdView |
setExternalUid(String externalUid) |
SDKSettings.setPublisherUserId(String publisherUserId) |
InterstitialAdView |
getExternalUid() |
SDKSettings.getPublisherUserId() |
InterstitialAdView |
getCreativeId() |
ANAdResponseInfo.getCreativeId() |
InterstitialAdView |
getAdType() |
ANAdResponseInfo.getAdType() |
NativeAdRequest |
getOpensNativeBrowser() |
getClickThroughAction() |
NativeAdRequest |
setOpensNativeBrowser(boolean opensNativeBrowser) |
setClickThroughAction(ANClickThroughAction clickThroughAction) |
NativeAdRequest |
setExternalUid(String externalUid) |
SDKSettings.setPublisherUserId(String publisherUserId) |
NativeAdRequest |
getExternalUid() |
SDKSettings.getPublisherUserId() |
NativeAdResponse |
getCreativeId() |
ANAdResponseInfo.getCreativeId() |
SDKSettings |
useHttps(boolean useHttps) |
N/A. HTTPS se usa de forma predeterminada. |
SDKSettings |
isHttpsEnabled() |
N/D |
SDKSettings |
setExternalUserIds(Map<ANExternalUserIdSource,String> externalUserIds) |
setUserIds(List<ANUserId> userIdList) |
SDKSettings |
getExternalUserIds() |
getUserIds() |
SDKSettings |
setAllowUsingSimpleDomain(boolean allow) |
N/D |
SDKSettings |
setCountImpressionOn1pxRendering(boolean enable) |
N/D |
SDKSettings |
getCountImpressionOn1pxRendering() |
N/D |
Clog |
clogged (Variable) |
N/D |
ANExternalUserIdSource (enum) |
ANUserId.Source |