コンテンツにスキップ

リワード広告

リワード広告は、ユーザーが広告にエンゲージすることで、ゲームプレイの継続、仮想通貨、その他のアプリ内報酬を受け取れる仕組みです。ユーザーが時間をかけて広告にエンゲージすることで具体的なメリットが得られるため、エンゲージメントの向上につながります。

次のセクションでは、リワード広告をロードおよび表示する方法について説明します。

リワード広告をロード

以下のコードは、リスナーを設定して最初のリワード広告をロードする方法を示しています。

Initialize Rewarded Ads (Custom Event). Rewarded ad is ready to be shown. “Is Rewarded Ad Ready” will return True. On Rewarded Ad Loaded Dynamic Delegate (AppLovinMAXDelegate: Ad Info. Reset retry attempts. SET: Retry Attempt 0.0. If rewarded ad fails to load, retry with exponentially higher delays up to a maximum delay (in this case 64 seconds). On Rewarded Ad Load Failed Dynamic Delegate (AppLovinMAXDelegate): Ad Info, Ad Error. Retry Attempt. ++. MIN (6.0), Add pin+. Power: Exp, Return Value. Delay: Duration, Completed. Rewarded ad failed to display. AppLovin recommends loading the next ad. On Rewarded Ad Display Failed Dynamic Delegate (AppLovinMAXDelegate): Ad Info, Ad Error. Rewarded ad is hidden. Pre-load the next ad. On Rewarded Ad Hidden Dynamic Delegate (AppLovinMAXDelegate): Ad Info. Rewarded ad was displayed and user should receive the reward. On Rewarded Ad Received Reward Dynamic Delegate (AppLovinMAXDelegate): Ad Info, Reward. Ad Unit Identifier. Load Rewarded Ad: Ad Unit Identifier.

リワード広告を表示

リワード広告を表示するには、ShowRewardedAd()を呼び出します。

Ad Unit Identifier. Is Rewarded Ad Ready: Ad Unit Identifier, Return Value. Branch: Condition (True). Show Rewarded Ad: Ad Unit Identifier, Placement.

S2S Rewarded Callbacks

通貨サーバーへのコールバックを受け取ることができます。 設定方法については、MAX S2S Rewarded CallbackAPIガイドをご覧ください。 次に、Edit Ad UnitページにてServer Side Callback URLをアップデートしてください。

リワード広告の金額と通貨の設定

リワードの金額と通貨を設定する方法:

  1. Edit Ad UnitページにてAdd S2S Reward Callbackをクリックします:Ad Type: ☐App Open, ☐Banner, ☐Interstitial, ☐MRec, ☐Native, ☑Rewarded. Add S2S Reward Callback.
  2. Server Side Callback URLReward AmountおよびRewarded Currency Nameを追加します:Ad Type: ☐App Open, ☐Banner, ☐Interstitial, ☐MRec, ☐Native, ☑Rewarded. Hide Callback Settings.Server Side Callback URL form field. Reward Amount form field. Rewarded Currency Name form field. AppLovin Event Key form field.