Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by voodoocactus · Oct 13, 2014 at 12:30 PM · iosunityads

unityAds won't show anymore after 3 ads

Hello,

I try to integrate UnityAds to an iOS game (Android is also planned). It works nice and I get the test advertising video. But after 3 ads I get the following message in the console and it won't show anymore ads. I have to close/open the app to be able to get another 3 ads but again, it will stop after those 3 videos.

 DEBUG [T:0xa32620 M] -[UnityAdsCampaignManager getViewableCampaigns]:256

I'm running unityAds is debug and test mode. Am I supposed to wait some delay to get another 3 ads or is there any ads limit in test mode?

Init unityAds

     viewController = [[RootViewController alloc] initWithNibName:nil bundle:nil];
     viewController.wantsFullScreenLayout = YES;
     viewController.view = __glView;
 
 #ifdef ADS
     [[UnityAds sharedInstance] setDelegate:self];
 #ifdef DEBUG
     // TEST MODE: Do not use in production apps
     [[UnityAds sharedInstance] setTestMode:YES];
     [[UnityAds sharedInstance] setDebugMode:YES];
 #endif
     [[UnityAds sharedInstance] startWithGameId:@"********" andViewController:viewController];
 #endif
     // Set RootViewController to window
     if ( [[UIDevice currentDevice].systemVersion floatValue] < 6.0)
     {
         // warning: addSubView doesn't work on iOS6
         [window addSubview: viewController.view];
     }
     else
     {
         // use this method on ios6
         [window setRootViewController:viewController];
     }

Show the ads

 if ([[UnityAds sharedInstance] canShow])
 {
     return [[UnityAds sharedInstance] show];
 }

I'm using cocos2dx 2.2.1 and iOS 5.1.

Thanks for your help

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by unity-nikkolai · Jan 26, 2015 at 07:17 PM

Sorry about the delayed response. I don't normally check in with the Answers forum. We have a Unity Ads forum here.

Right away, two things stand out as issues:

  1. The method canShowAds is missing from your conditional statement. The method canShow checks to make sure the zone is ready, while canShowAds makes sure an ad is available and ready. You should be calling both.

  2. The latest version of Unity Ads requires iOS 6.0 or later.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image john.sahas · Aug 02, 2015 at 02:26 AM 0
Share

I have the same issue. I'm essentially using the sample code that comes with the unityAds package to show an ad and to show a reward ad.

  • Works fine in Android dev environment (playing on PC in Unity Editor, ads always show).

  • Works fine on Android device (ads always show).

  • Works fine in iOS dev environment (playing on $$anonymous$$ac in Unity Editor, ads always show).

  • does not work on iOS device (ads show 3 times, regardless if interstitial or reward or both, then stop showing).

I've tried testing with debug$$anonymous$$ode true and false. I was about to submit my final build but this is stopping me now. I'm not sure if it's expected behavior and won't act like this when it's distributed live??

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Unity Ads Advertising Identifier (iOS) 1 Answer

Ads video not paused when multitasking on iOS 0 Answers

what would happen if you archived a published unity project? 1 Answer

(Unity Ads) ShowResult.Failed not triggered without internet at initialization 0 Answers

Unity Pro 4.6.8 MAC OSX El Capitan Last version of XCODE and Facebook SDK 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges