Answer the question
In order to leave comments, you need to log in
Initialize Google Mobile Ads SDK?
Can anyone please explain in simple terms what is required to Initialize the Google Mobile Ads SDK. Here is a part of the text copied from one of the sites explaining the installation of advertising in the game on the unit and I do not understand what to do with this code.
Initialize the Google Mobile Ads SDK
Before loading ads, initialize the mobile ads SDK by calling MobileAds.Initialize() with an Action callback. This only needs to be done once, ideally at application startup.
using GoogleMobileAds.Api;
using System.Collections.Generic;
...
public class GoogleMobileAdsDemoScript : MonoBehaviour
{
...
public void Start()
{
// Initialize the Mobile Ads SDK.
MobileAds.Initialize((initStatus) =>
{
// SDK initialization is complete
});
...
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question