ผสานรวม Maio กับสื่อกลาง

This guide shows you how to use the Google Mobile Ads SDK to load and display ads from maio using AdMob Mediation, covering waterfall integrations. It covers how to add maio to an ad unit's mediation configuration, and how to integrate the maio SDK and adapter into an app.

The dashboard interface for maio uses Japanese text for its labels, buttons, and descriptions, and the screenshots in this guide have not been translated. In this guide's descriptions and instructions however, labels and buttons are referenced with their English language equivalents. "URL スキーム," for example, is "URL Scheme".

Supported integrations and ad formats

The mediation adapter for maio has the following capabilities:

Integration
Bidding
Waterfall
Formats
Banner
Interstitial
Rewarded
Native

Requirements

  • iOS deployment target of 12.0 or higher

Step 1: Set up configurations in maio UI

ก่อนอื่น ให้ลงชื่อสมัครใช้หรือลงชื่อเข้าสู่ระบบบัญชี maio ของคุณ คลิกปุ่ม การจัดการแอปพลิเคชันในแถบด้านซ้าย แล้วคลิกแอปใหม่

เลือกแท็บประเภทโฆษณาที่ต้องการ

โฆษณาคั่นระหว่างหน้า

ป้อนชื่อของแอป เลือกแพลตฟอร์ม และระบุ URL ของแอป เลือกประเภทโฆษณาเป็นโฆษณาวิดีโอคั่นระหว่างหน้า แล้วคลิกอัปเดต

Android

iOS

ได้รับรางวัลแล้ว

ป้อนชื่อของแอป เลือกแพลตฟอร์ม และระบุ URL ของแอป เลือกรางวัลวิดีโอเป็นประเภทโฆษณา แล้วคลิกอัปเดต

Android

iOS

ในหน้าการจัดการแอปพลิเคชัน ให้จดรหัสสื่อ แต่คุณต้องตั้งค่า AdMob หน่วยโฆษณาในส่วนถัดไป

Android

iOS

ในหน้า Zone Management ให้จดบันทึก Zone ID และยังเป็นสิ่งจำเป็นในการตั้งค่า AdMob หน่วยโฆษณาในส่วนถัดไปด้วย

Android

iOS

(Waterfall เท่านั้น) นอกจากรหัสสื่อและรหัสโซนแล้ว คุณจะต้องใช้รหัส API และ API KEY เพื่อตั้งค่ารหัสหน่วยโฆษณาสำหรับสื่อกลางด้วย ในหน้า Reporting API ให้จดรหัส API และ API KEY

Step 2: Set up maio demand in AdMob UI

กำหนดการตั้งค่าสื่อกลางสำหรับหน่วยโฆษณา

Android

ดูวิธีการได้ที่ขั้นตอนที่ 2 ในคู่มือสําหรับ Android

iOS

โปรดดูวิธีการในขั้นตอนที่ 2 ในคู่มือสำหรับ iOS

Step 3: Import the maio SDK and adapter

  • Add the following line to your project's Podfile:

    pod 'GoogleMobileAdsMediationMaio'
    
  • From the command line run:

    pod install --repo-update

Manual integration

  • Download the latest version of the maio SDK.
  • Download the latest version of the maio adapter from the download link in the Changelog, and link maioAdapter.framework in your project.

Step 4: Add required code

SKAdNetwork integration

Follow maio's documentation to add the SKAdNetwork identifiers to your project's Info.plist file.

Step 5: Test your implementation

เปิดใช้โฆษณาทดสอบ

อย่าลืม ลงทะเบียนอุปกรณ์ทดสอบ สำหรับ AdMob

ผู้เผยแพร่โฆษณาที่ใช้ SDK โฆษณาในอุปกรณ์เคลื่อนที่ของ Google เวอร์ชัน 7.26.0 ขึ้นไปจะได้รับโฆษณาทดสอบจาก maio โดยอัตโนมัติในโทรศัพท์และแท็บเล็ตที่ลงทะเบียนเป็นอุปกรณ์ทดสอบเมื่อส่งคําขอ

ยืนยันโฆษณาทดสอบ

ในการยืนยันว่าคุณได้รับโฆษณาทดสอบจาก maio ให้เปิดใช้ การทดสอบแหล่งที่มาของโฆษณาแหล่งเดียว ในเครื่องมือตรวจสอบโฆษณาโดยใช้ maio (Waterfall) แหล่งที่มาของโฆษณา

Error codes

If the adapter fails to receive an ad from maio, publishers can check the underlying error from the ad response using GADResponseInfo.adNetworkInfoArray under the following classes:

Format Class name
Interstitial GADMMaioInterstitialAdapter
Rewarded GADMMaioRewardedAdapter

Here are the codes and accompanying messages thrown by the maio adapter when an ad fails to load:

Error code Reason
0-10 maio returned an SDK-specific error. See maio's code for more details.
101 maio does not yet have an ad available.
102 Invalid server parameters (e.g. missing Placement ID).
103 The maio adapter does not support the ad format being requested.
104 An ad is already loaded for this network configuration.

maio iOS Mediation Adapter Changelog

Version 2.1.5.0

  • Verified compatibility with maio SDK version 2.1.5.

Built and tested with:

  • Google Mobile Ads SDK version 11.6.0.
  • Maio SDK version 2.1.5.

Version 2.1.4.0

  • Verified compatibility with maio SDK version 2.1.4.

Built and tested with:

  • Google Mobile Ads SDK version 11.2.0.
  • Maio SDK version 2.1.4.

Version 2.1.3.0

  • Verified compatibility with maio SDK version 2.1.3.

Built and tested with:

  • Google Mobile Ads SDK version 11.1.0.
  • Maio SDK version 2.1.3.

Version 2.1.2.1

  • Now requires Google Mobile Ads SDK version 11.0 or higher.
  • Included Info.plist in the frameworks within MaioAdapter.xcframework.

Built and tested with:

  • Google Mobile Ads SDK version 11.0.1.
  • Maio SDK version 2.1.2.

Version 2.1.2.0

  • Verified compatibility with maio SDK version 2.1.2.

Built and tested with:

  • Google Mobile Ads SDK version 10.14.0.
  • Maio SDK version 2.1.2.

Version 2.1.1.0

  • Verified compatibility with maio SDK version 2.1.1.

Built and tested with:

  • Google Mobile Ads SDK version 10.12.0.
  • Maio SDK version 2.1.1.

Version 2.0.0.0

  • Verified compatibility with maio SDK version 2.0.0.
  • Removed the dependency on MaioOB SDK.
  • Removed support of the armv7 architecture.
  • Now requires minimum iOS version 12.0.
  • Now requires Google Mobile Ads SDK version 10.4.0 or higher.

Built and tested with:

  • Google Mobile Ads SDK version 10.10.0.
  • Maio SDK version 2.0.0.

Version 1.6.3.1

  • Now requires Google Mobile Ads SDK version 10.0.0 or higher.

Built and tested with:

  • Google Mobile Ads SDK version 10.0.0.
  • Maio SDK version 1.6.3.
  • MaioOB SDK version 2.0.0-alpha.

Version 1.6.3.0

  • Updated the adapter to use the didRewardUser API.
  • Now requires Google Mobile Ads SDK version 9.8.0 or higher.
  • Verified compatibility with maio SDK version 1.6.3 and maioOB SDK version 2.0.0-alpha.

Built and tested with:

  • Google Mobile Ads SDK version 9.12.0.
  • Maio SDK version 1.6.3.
  • MaioOB SDK version 2.0.0-alpha.

Version 1.6.2.0

  • Verified compatibility with maio SDK version 1.6.2 and maioOB SDK version 2.0.0-alpha.

Built and tested with:

  • Google Mobile Ads SDK version 9.5.0.
  • Maio SDK version 1.6.2.
  • MaioOB SDK version 2.0.0-alpha.

Version 1.6.1.0

  • Verified compatibility with maio SDK version 1.6.1 and maioOB SDK version 2.0.0-alpha.

Built and tested with:

  • Google Mobile Ads SDK version 9.2.0.
  • Maio SDK version 1.6.1.
  • MaioOB SDK version 2.0.0-alpha.

Version 1.6.0.1

  • Verified compatibility with Google Mobile Ads SDK version 9.0.0.
  • Now requires Google Mobile Ads SDK version 9.0.0 or higher.

Built and tested with:

  • Google Mobile Ads SDK version 9.0.0.
  • Maio SDK version 1.6.0.
  • MaioOB SDK version 2.0.0-alpha.

Version 1.6.0.0

  • Verified compatibility with maio SDK version 1.6.0 and maioOB SDK version 2.0.0-alpha.

Built and tested with:

  • Google Mobile Ads SDK version 8.13.0.
  • Now requires minimum iOS version of 10.0.
  • Maio SDK version 1.6.0.
  • MaioOB SDK version 2.0.0-alpha.

Version 1.5.8.0

  • Verified compatibility with maio SDK version 1.5.8 and maioOB SDK version 2.0.0-alpha.
  • Added bidding capability to the adapter for interstitial and rewarded ad formats.
  • Relaxed dependency to Google Mobile Ads SDK version 8.0.0 or higher.

Built and tested with:

  • Google Mobile Ads SDK version 8.7.0.
  • Maio SDK version 1.5.8.
  • MaioOB SDK version 2.0.0-alpha.

Version 1.5.6.1

  • Added standardized adapter error codes and messages.
  • Updated the adapter to use the .xcframework format.
  • Fixed a bug where rewarded ad events were sometimes not forwarded.
  • Now requires Google Mobile Ads SDK version 8.3.0 or higher.

Built and tested with:

  • Google Mobile Ads SDK version 8.3.0.
  • Maio SDK version 1.5.6.

Version 1.5.6.0

  • Verified compatibility with maio SDK version 1.5.6.
  • Now requires Google Mobile Ads SDK version 7.68.0 or higher.

Built and tested with:

  • Google Mobile Ads SDK version 7.68.0.
  • Maio SDK version 1.5.6.

Version 1.5.5.0

  • Verified compatibility with maio SDK version 1.5.5.
  • Now requires Google Mobile Ads SDK version 7.64.0 or higher.

Built and tested with:

  • Google Mobile Ads SDK version 7.64.0.
  • Maio SDK version 1.5.5.

Version 1.5.4.0

  • Verified compatibility with maio SDK version 1.5.4.
  • Now requires Google Mobile Ads SDK version 7.60.0 or higher.

Built and tested with:

  • Google Mobile Ads SDK version 7.60.0.
  • Maio SDK version 1.5.4.

Version 1.5.3.1

  • To limit timeouts, ad requests will now immediately fail if maio does not have an ad ready to be shown.
  • Removed support for the i386 architecture.

Built and tested with:

  • Google Mobile Ads SDK version 7.58.0.
  • Maio SDK version 1.5.3.

Version 1.5.3.0

  • Verified compatibility with maio SDK version 1.5.3.

Built and tested with:

  • Google Mobile Ads SDK version 7.55.1.
  • Maio SDK version 1.5.3.

Version 1.5.2.1

  • Fixed an issue where the adapter was not invoking the -rewardedAdDidPresent: callback.

Built and tested with:

  • Google Mobile Ads SDK version 7.53.1.
  • Maio SDK version 1.5.2.

Version 1.5.2.0

  • Verified compatibility with maio SDK version 1.5.2.

Built and tested with:

  • Google Mobile Ads SDK version 7.53.1.
  • Maio SDK version 1.5.2.

Version 1.5.1.0

  • Verified compatibility with maio SDK version 1.5.1.

Built and tested with:

  • Google Mobile Ads SDK version 7.52.0.
  • Maio SDK version 1.5.1.

Version 1.5.0.0

  • Verified compatibility with maio SDK version 1.5.0.

Built and tested with

  • Google Mobile Ads SDK version 7.51.0.
  • Maio Ads SDK version 1.5.0.

Version 1.4.8.0

  • Verified compatibility with maio SDK version 1.4.8.

Version 1.4.6.0

  • Verified compatibility with maio SDK version 1.4.6.
  • Updated the adapter to use the new rewarded API.
  • Now requires Google Mobile Ads SDK version 7.42.2 or higher.

Version 1.4.2.0

  • Verified compatibility with maio SDK version 1.4.2.

Version 1.4.1.0

  • Verified compatibility with maio SDK version 1.4.1.
  • Fixed an issue where maio adapter might fail if multiple MediaIds are provided from AdMob.

Version 1.4.0.0

  • Verified compatibility with maio SDK version 1.4.0.

Version 1.3.2.0

  • Verified compatibility with maio SDK version 1.3.2.

Version 1.3.1.1

  • Added adapterDidCompletePlayingRewardBasedVideoAd: callback to the adapter.

Version 1.3.1.0

  • Verified compatibility with maio SDK version 1.3.1.

Version 1.3.0.0

  • Verified compatibility with maio SDK version 1.3.0.

Version 1.2.19.0

  • Verified compatibility with maio SDK version 1.2.19.

Version 1.2.18.0

  • First release!
  • Added support for interstitials and rewarded videos ads.