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.
↧