iOS SDK v7 を 8.0 に移行する
SDK v8.0 を使用するパブリッシャーは、広告要求を行う前に Xandr SDK を初期化する必要があります。 xandr Mobile Ads SDK for iOS SDK v8 を使用する場合は、他の init()
SDK 操作の前に メソッドを呼び出す必要があります。 この初期化がないと、広告要求は通過せず、SDK は例外をスローします。 詳細については、「 iOS - SDK の初期化 (v8.0)」を参照してください。
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{
// ideally initialize Xandr SDK inside AppDelegate before calling any other SDK methods
[[XandrAd sharedInstance] initWithMemberID:1234 preCacheRequestObjects:YES completionHandler:^(BOOL success) {
if(success){
NSLog(@"XandrAd init Complete");
}
}];
return YES;
}
削除された API とその代替手段
以下に示す API の一部は、Xandr SDK v8.0 で削除されています。 次に示す API が使用されている場合は、API を同等の API または代替 API に移行するよう要求します。
クラス | 削除されたプロパティとメソッド | 代替プロパティとメソッド |
---|---|---|
ANBannerAdView |
プロパティ: externalUid |
ANSDKSettings.publisherUserId |
ANBannerAdView |
プロパティ: adType |
ANAdResponseInfo.adType |
ANBannerAdView |
プロパティ: creativeId |
ANAdResponseInfo.creativeId |
ANBannerAdView |
プロパティ: countImpressionOnAdReceived |
該当なし |
ANBannerAdView |
メソッド: - (void)setAllowNativeDemand:(BOOL)nativeDemand withRendererId:(NSInteger)rendererId; |
ANBannerAdView.shouldAllowNativeDemand<br>ANBannerAdView.nativeAdRendererId |
ANInterstitialAd |
プロパティ: externalUid |
ANSDKSettings.publisherUserId |
ANInterstitialAd |
プロパティ: adType |
ANAdResponseInfo.adType |
ANInterstitialAd |
プロパティ: creativeId |
ANAdResponseInfo.creativeId |
ANInstreamVideoAd |
プロパティ: externalUid |
ANSDKSettings.publisherUserId |
ANInstreamVideoAd |
プロパティ: adType |
ANAdResponseInfo.adType |
ANInstreamVideoAd |
プロパティ: creativeId |
ANAdResponseInfo.creativeId |
ANMultiAdRequest |
プロパティ: externalUid |
ANSDKSettings.publisherUserId |
ANMultiAdRequest |
プロパティ: adType |
ANAdResponseInfo.adType |
ANMultiAdRequest |
プロパティ: creativeId |
ANAdResponseInfo.creativeId |
ANExternalUserId |
プロパティ: source |
ANUserId.source |
ANExternalUserId |
プロパティ: userId |
ANUserId.userId |
ANExternalUserId |
メソッド: - (nullable instancetype)initWithSource:(ANExternalUserIdSource)source userId:(nonnull NSString *)userId; |
ANUserId.initWithANUserIdSource:(ANUserIdSource)source userId:(nonnull NSString *)userId; |
ANNativeAdRequest |
プロパティ: adType |
ANAdResponseInfo.adType |
ANNativeAdRequest |
プロパティ: externalUid |
ANSDKSettings.publisherUserId |
ANNativeAdResponse |
プロパティ: creativeId |
ANAdResponseInfo.creativeId |
ANSDKSettings |
プロパティ: HTTPSEnabled |
該当なし |
ANSDKSettings |
プロパティ: externalUserIdArray |
ANSDKSettings.userIdArray |
ANSDKSettings |
プロパティ: useAdnxsSimpleDomain |
該当なし |
ANSDKSettings |
プロパティ: countImpressionOn1PxRendering |
該当なし |
ANTargetingParameters |
プロパティ: externalUid |
N/A |