1
0

EditorNativePromoAdapter.cs 785 B

12345678910111213141516171819202122232425262728293031323334
  1. #if UNITY_EDITOR
  2. namespace UnityEngine.Monetization
  3. {
  4. public class EditorNativePromoAdapter : INativePromoAdapter
  5. {
  6. public EditorNativePromoAdapter(PromoAdPlacementContent placementContent)
  7. {
  8. metadata = placementContent.metadata;
  9. }
  10. public PromoMetadata metadata { get; }
  11. public void OnShown()
  12. {
  13. OnShown(PromoShowType.Full);
  14. }
  15. public void OnShown(PromoShowType type)
  16. {
  17. Debug.LogFormat("Native promo was shown: {0}", type);
  18. }
  19. public void OnClosed()
  20. {
  21. Debug.LogFormat("Native promo was closed.");
  22. }
  23. public void OnClicked()
  24. {
  25. Debug.LogFormat("Native promo was clicked");
  26. }
  27. }
  28. }
  29. #endif