Skip to content

Commit

Permalink
release yandex-ads-unity-plugin-0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
satsakul committed Apr 30, 2019
1 parent bf57980 commit 5830e8b
Show file tree
Hide file tree
Showing 21 changed files with 27 additions and 19 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Change Log

## Version 0.3.0

#### Added
* Ability to specify age and gender in ad request
* Support for GDPR to obtain and manage consent from users from GDPR region to serve personalized ads
* UnityAds mediation

#### Fixed
* Fixed displaying banner in safe area on iOS

## Version 0.2.0

#### Added
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ EULA is available at [EULA website][LICENSE]

4. Make sure all of the files are selected and click Import.

5. Add [Metrica Unity plugin](https://appmetrica.yandex.com/doc//mobile-sdk-dg/concepts/unity-plugin-docpage/) to the project, only if you use `yandex-mobileads-<version>.unitypackage`.
5. Add [Metrica Unity plugin](https://tech.yandex.com/appmetrica/doc/mobile-sdk-dg/concepts/unity-plugin-docpage/) to the project, only if you use `yandex-mobileads-<version>.unitypackage`.

6. You can use one of demo scripts in folder `samples` to test plugin. Just add one of this files to your project.

Expand Down Expand Up @@ -66,6 +66,7 @@ Third-party networks can be connected to Yandex Mobile Ads Mediation by several
| mobileads-facebook-mediation | Facebook mediation |
| mobileads-mytarget-mediation | MyTarget mediation |
| mobileads-startapp-mediation | StartApp mediation |
| mobileads-unityads-mediation | UnityAds mediation |
| admob-mobileads-mediation | Third-party mediation with AdMob |
| mopub-mobileads-mediation| Third-party mediation with MoPub |

Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
6 changes: 1 addition & 5 deletions samples/YandexMobileAdsBannerDemoScript.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* This file is a part of the Yandex Advertising Network
*
* Version for Android (C) 2018 YANDEX
* Version for Android (C) 2019 YANDEX
*
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at https://legal.yandex.com/partner_ch/
Expand All @@ -25,10 +25,6 @@ public class YandexMobileAdsBannerDemoScript : MonoBehaviour

private Banner banner;

void Start() {
Screen.orientation = ScreenOrientation.Portrait;
}

public void OnGUI()
{
GUIStyle style = new GUIStyle();
Expand Down
6 changes: 1 addition & 5 deletions samples/YandexMobileAdsInterstitialDemoScript.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* This file is a part of the Yandex Advertising Network
*
* Version for Android (C) 2018 YANDEX
* Version for Android (C) 2019 YANDEX
*
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at https://legal.yandex.com/partner_ch/
Expand All @@ -25,10 +25,6 @@ public class YandexMobileAdsInterstitialDemoScript : MonoBehaviour
private readonly int FontSize = (int) (0.035f * Screen.width);

private Interstitial interstitial;

void Start() {
Screen.orientation = ScreenOrientation.Portrait;
}

public void OnGUI()
{
Expand Down
21 changes: 13 additions & 8 deletions samples/YandexMobileAdsRewardedAdDemoScript.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This file is a part of the Yandex Advertising Network
*
* Version for Android (C) 2019 YANDEX
*
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at https://legal.yandex.com/partner_ch/
*/

using System;
using System.Collections;
using System.Collections.Generic;
Expand All @@ -16,10 +25,6 @@ public class YandexMobileAdsRewardedAdDemoScript : MonoBehaviour
private readonly int FontSize = (int) (0.035f * Screen.width);

private RewardedAd rewardedAd;

void Start() {
Screen.orientation = ScreenOrientation.Portrait;
}

public void OnGUI()
{
Expand Down Expand Up @@ -52,10 +57,10 @@ private void RequestRewardedAd()
{
this.rewardedAd.Destroy();
}

// Replace BLOCK_ID with your unique Block ID.
string blockId = "BLOCK_ID";
this.rewardedAd = new RewardedAd(blockId);
// Replace demo R-M-DEMO-rewarded-client-side-rtb with actual Block ID
string adUnitId = "R-M-DEMO-rewarded-client-side-rtb";
this.rewardedAd = new RewardedAd(adUnitId);

this.rewardedAd.OnRewardedAdLoaded += this.HandleRewardedAdLoaded;
this.rewardedAd.OnRewardedAdFailedToLoad += this.HandleRewardedAdFailedToLoad;
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 5830e8b

Please sign in to comment.