Search Unity

ShowOptions Type Not Found

Discussion in 'Unity Ads & User Acquisition' started by CalaveraX, Dec 22, 2017.

  1. CalaveraX

    CalaveraX

    Joined:
    Jul 11, 2013
    Posts:
    143
    Hi Everyone!!!

    I'm still having issues using unityAds, on the same proyect, same code, i builded for android and all works perfect, switched to build for iOs and i get this error...
    Unity ads are active, but i still get this error, any hints? thanks in advance!

    Code (CSharp):
    1.  
    2. #if UNITY_ADS
    3.         private ShowOptions GetShowOptions () {
    4.             ShowOptions options = new ShowOptions ();
    5.             options.resultCallback += OnAdFinished;
    6.             return options;
    7.         }
    8. #endif
     

    Attached Files:

  2. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Looks like you're missing namespace or plugin is not available for iOS.
     
  3. CalaveraX

    CalaveraX

    Joined:
    Jul 11, 2013
    Posts:
    143
    Yeah... that's exactly what the error means...
    BUT, if the precompiler directive UNITY_ADS is active, and the code is being executed, it means that the ads are active, and the library has been built and its present on the project... also, its a part of Unity.Advertisement, reason why it should throw lots of error, and even on earlier lines of code (since the include)