Skip to content

Commit

Permalink
Merge pull request #56 from yandexmobile/yandexmobile/update-demo-blocks
Browse files Browse the repository at this point in the history
Update demo blocks to use new format
  • Loading branch information
mobile-ads-github authored Apr 3, 2023
2 parents 05d6e0b + 2ff69d6 commit b375e04
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
7 changes: 2 additions & 5 deletions samples/YandexMobileAdsBannerDemoScript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,8 @@ private void RequestBanner()
//Sets COPPA restriction for user age under 13
MobileAds.SetAgeRestrictedUser(true);

// Replace demo R-M-DEMO-320x50 with actual Ad Unit ID
// Following demo Block IDs may be used for testing:
// R-M-DEMO-320x50
// R-M-DEMO-320x100
string adUnitId = "R-M-DEMO-320x100";
// Replace demo Unit ID 'demo-banner-yandex' with actual Ad Unit ID
string adUnitId = "demo-banner-yandex";

if (this.banner != null)
{
Expand Down
4 changes: 2 additions & 2 deletions samples/YandexMobileAdsInterstitialDemoScript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ private void RequestInterstitial()
//Sets COPPA restriction for user age under 13
MobileAds.SetAgeRestrictedUser(true);

// Replace demo R-M-DEMO-interstitial with actual Ad Unit ID
string adUnitId = "R-M-DEMO-interstitial";
// Replace demo Unit ID 'demo-interstitial-yandex' with actual Ad Unit ID
string adUnitId = "demo-interstitial-yandex";

if (this.interstitial != null)
{
Expand Down
5 changes: 3 additions & 2 deletions samples/YandexMobileAdsRewardedAdDemoScript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ private void RequestRewardedAd()
this.rewardedAd.Destroy();
}

// Replace demo R-M-DEMO-rewarded-client-side-rtb with actual Ad Unit ID
string adUnitId = "R-M-DEMO-rewarded-client-side-rtb";
// Replace demo Unit ID 'demo-rewarded-yandex' with actual Ad Unit ID
string adUnitId = "demo-rewarded-yandex";

this.rewardedAd = new RewardedAd(adUnitId);

this.rewardedAd.OnRewardedAdLoaded += this.HandleRewardedAdLoaded;
Expand Down

0 comments on commit b375e04

Please sign in to comment.