- Home /
I got an error message after switching to the new ad ID in Unity.
Hello there. Two of my games had the same advertising ID. I wanted to do something to give a new advertising ID to the 2nd game. For this I created a new ad structure called "Toy Matching". I opened the second game in the Unity program and removed the old advertising ID. When I added my new ad ID ("Toy Matching"), I started to get the following error.
Assets / Scripts / ADS.cs (7,7): error CS0103: The name `Advertisement 'does not exist in the current context
I did research on the internet, but the solutions I found did not work.
I am using Unity 2017.1.1f1 (64-bit) version.
My previous ad: UPID 0942ec64-8638-4acb-9b0a-511cf136e3a8
My new ad: UPID df60420f-0077-4f1d-b2d5-6d16b6e54565
The applications I mentioned above: one. https://play.google.com/store/apps/details?id=com.chocolikegames.birdmatching 2nd. https://play.google.com/store/apps/details?id=com.chocolikegames.toy.matching.pair.memory.game.story.buzz.match
My AD script: using UnityEngine; using UnityEngine.Advertisements; public class ADS : MonoBehaviour { public static void showAd() { if (Advertisement.IsReady ()) Advertisement.Show (); } }
I am very happy if you can help.
Your answer
Follow this Question
Related Questions
When I click on anything on the services windows it shows me this error? 1 Answer
Error when building Game 0 Answers
Advertisement.isready ("rewardedVideo") always returns false 1 Answer
Issue with Reward Ad Playing 2 Answers
I have one final error to resolve if anybody knows how to fix this please tell me. 0 Answers