Skip to content

Commit 94d4e88

Browse files
Mobile Ads Developer Relationscopybara-github
authored andcommitted
Added onPaidEvent callback handling to Next Gen Implementation of Interstitial Ad Client
PiperOrigin-RevId: 815851998
1 parent 582afcc commit 94d4e88

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

source/plugin/Assets/GoogleMobileAds/Platforms/Android/DecagonInterstitialAdClient.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,20 @@ internal void onAdClicked()
188188
}
189189
}
190190

191+
void onPaidEvent(int precision, long valueInMicros, string currencyCode)
192+
{
193+
if (this.OnPaidEvent != null)
194+
{
195+
AdValue adValue = new AdValue()
196+
{
197+
Precision = (AdValue.PrecisionType) precision,
198+
Value = valueInMicros,
199+
CurrencyCode = currencyCode
200+
};
201+
this.OnPaidEvent(adValue);
202+
}
203+
}
204+
191205
#endregion
192206
}
193207
}

0 commit comments

Comments
 (0)