- Home /
unity ads help
hey guys so im using this script to manage my advertising, I had it working before but now its giving me the error Scripts\Modules\Advertising\NetworkClients\UnityAdsClientImpl.cs(327,17): warning CS0618: 'ShowOptions.resultCallback' is obsolete: 'Implement IUnityAdsListener and call Advertisement.AddListener()', I've tried implementing , it seems pretty straight forward however i keep getting more errors so i revert it back and keeo trying but im at the point where i need to ask for some help. i under stand i need to implement iunityadslistener and replace the old outdated call functions with the new, but ive been away and im just confused to the max and the harder i try to figure it out the more confused i make myself, ive watched tutorials , but they all have different ways of doing things and it confuses me even further, i usually just study to codes i see find out what they mean and memorize . anyways any help would be greatly appreciated, sorry for lack of proper punctuation, just too tired..
var showOptions = new ShowOptions
{
resultCallback = (result) =>
{
InternalRewardedAdCallback(result, placement);
}
};
Advertisement.Show(id, showOptions);
#else
Advertisement.Show(id);
--------------------------------------------------------------------------------------------------
var showOptions = new ShowOptions
{
resultCallback = (result) =>
{
InternalInterstitialAdCallback(result, placement);
}
};
Advertisement.Show(id, showOptions);
#else
Advertisement.Show(id);
Answer by SaveTheWorldDotGames · Nov 03, 2020 at 01:03 PM
Hi, Sorry to ask, but in my experience, the error you mentioned actually lets everything continue working, and just bugs you to update the code. Is this the case here? If so, you might want to just let it continue working? (I am assuming that this is not the case, but just wanting to clarify)
Keep on Creating!
Justin of JustinTime Studio http://unity3d.expert
Answer by carmanroofer93 · Nov 03, 2020 at 08:05 PM
I have to be honest, first. I appreciate the answer as I didn't expect anything lol, 2. I am unsure I know when I went to fix issue I could add obsolete and the errors would go away but I had this strange feeling it wouldn't work so I reverted it back, I'm pretty sure they were warnings instead of errors I just wanted to know how I would go about changing if required to. 3. I left it as is.. went to bed and I woke up and everything was gone, seems like everything is fine.. I still haven't touched unity just noticed they disappeared without me clearing or anything... like I did it in my sleep or something lol If anymore issues I will of course ask, but for now I feel like I wasted a page on the internet. however others that see this might realize they were trying too hard like myself. thanks a bunch @SaveTheWorldDotGames
Your answer
Follow this Question
Related Questions
How to create custom inspector from my script (dropdown from list) 1 Answer
Not sure how to get OnUnityAdsShowClick working. Please help. 1 Answer
Unity ads folder being created 1 Answer
Admob reward player after watching video 0 Answers
is there an advantage of creating multiple Ad units/ Placement of same type in Unity, Admob etc? 1 Answer