Z
Z
Zimaell2021-02-17 11:37:56
Unity
Zimaell, 2021-02-17 11:37:56

How to use the right set up advertising?

The site clearly states that
Advertisement.IsReady() - checks if an advertisement is ready to be shown
Advertisement.Show(); - shows ads
for me Advertisement.IsReady() returns false, that is, not ready, but where to set it up so that it is ready?
my code looks something like this

using UnityEngine.Advertisements;
[CSHARP]public class GameManager : MonoBehaviour{
void Start(){
if(Advertisement.isSupported){ Debug.Log("isSupported");
Advertisement.Initialize("4000007", true);
}
if(Advertisement.IsReady()){ Debug.Log("IsReady");
Advertisement.Show();
}[/CSHARP]
isSupported is, IsReady is not, that is, it is supported but advertising is not ready, where it is and how to set it up, I already started to get lost, as some write to set up in unity, others in admob.
I set up advertising in admob and where to put it in unity xs ....
in unity my panel looks like this, below there are two id for android and apple, at the top "You're missing out on revenue! Please enter your store ID." and Add Store Id, and I understand that I will not enter anything there until I post the finished applications.
And here I’m sitting stupid, I don’t understand how to set everything up correctly step by step ...

By the way, I watched different videos on this topic, what’s annoying is that each video shows a different interface and unity and google console, I’m confused kapets ....

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
GavriKos, 2021-02-17
@GavriKos

It is necessary to watch not the video, but the offmanual.
And the first thing you need to understand is what kind of advertising are you embedding? Unity or edmob? Or some other network? But I'll tell you from the code - you are embedding UnityADS
And yes, isReady will not return anything to you until you configure the ad to the end. It is necessary to register all IDs. And you can get them in the unityADS console on the unity website

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question