ドキュメント

​
​

Development

User Acquisition

Monetization

産業

LevelPlay SDK - iOS

Unity SDK

Android SDK

iOS SDK

Adobe AIR SDK

Flutter SDK

React Native SDK

LevelPlay SDK - iOS

このページは選択した言語では使用できません。
Unity LevelPlay
​
​
iOS SDK
  • Get started
    • Get started with iOS
    • iOS SDK integration
    • LevelPlay SDK integration with Swift
    • Integrate Ad Quality SDK
      • Ad Quality SDK Swift integration for iOS
    • Custom adapters
    • LevelPlay SDK Changelog
    • Ad Quality SDK Changelog
  • Regulations and settings
  • Ad formats
  • Mediated networks
  • Test your integration
  1. ゲームの成長
  2. Unity LevelPlay
  3. LevelPlay SDK
  4. iOS 開発者向け LevelPlay SDK

Ad Quality SDK Swift integration for iOS

Integrate the Ad Quality SDK with Swift by creating a bridging header and initializing the SDK with your app key.
読み終わるまでの所要時間 1 分
最終更新 6ヶ月前

Ad Quality supports both Objective-C and Swift. While the SDK is written in Objective-C, you can make it compatible with Swift.

Step 1: Bridging Header

Swift and Objective-C use different runtime environments, you need a bridging header to access Objective-C code in Swift.
  1. Create a Bridging Header
    1. Inside Xcode, go to File > New > File.
    2. Select Header File under Source.
    3. Name it Ad-Quality-Bridging-Header.h and save it in your project.
  2. Link the Header in Build Settings
    1. Open Project Navigator and select your project target.
    2. Go to Build Settings.
    3. Search for Objective-C Bridging Header.
    4. Set the path to the bridging header:
      YourApp/Ad-Quality-Bridging-Header.h
  3. Import the Objective-C SDK into the Bridging Header
    1. Inside Ad-Quality-Bridging-Header.h, import the Objective-C SDK's main header file:
      #import "IronSourceAdQuality.h"

Step 2: Use the SDK in Swift

You can now use the Objective-C classes inside your Swift files. For example:
import SwiftUI@mainstruct ironsourceadquality_sampleApp: App { init() { IronSourceAdQuality.getInstance().initialize(withAppKey: "YOUR_APP_KEY") }}
You can now start integrating the Ad Quality SDK with Swift. Continue to Integrate Ad Quality SDK for iOS.

Copyright © 2026 Unity Technologies
法規事項プライバシーポリシークッキーDocumentation Terms of Use私の個人情報を販売または共有しないプライバシーに関する選択 (クッキー設定)

"Unity" の名称、Unity のロゴ、およびその他の Unity の商標は、米国およびその他の国における Unity Technologies またはその関係会社の商標または登録商標です (詳しくはこちら)。その他の名称またはブランドは該当する所有者の商標です。

一部のページは利便性向上のため機械翻訳を使用しており、内容に不正確な表現が含まれる場合があります。内容に齟齬または不一致が生じた場合は、英語版を正本とします。

  • このページ
    • Step 1: Bridging Header

    • Step 2: Use the SDK in Swift


このページの問題を報告する