using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using GoogleMobileAds.Api;

public class PowerSlashADS : MonoBehaviour
{
ย 
ย private InterstitialAd interstitial;

ย 
ย  Resource resource;
ย  private readonly string InterstitialID = "ca-app-pub-00000000000000/0000000000000";

ย // public GameObject psrechangWin;



public void Start()
ย  ย  { ย  ย  ย  ย 
ย  ย  ย  ย interstitial = new InterstitialAd(InterstitialID);
ย  ย  ย resource = GameObject.Find("Coin&Resource").GetComponent<Resource>();
ย  ย  ย  ย  RequestConfiguration requestConfiguration =
ย  ย  ย  ย  new RequestConfiguration.Builder()
ย  ย  ย  ย  .SetSameAppKeyEnabled(true).build();
ย  ย  ย  ย  MobileAds.SetRequestConfiguration(requestConfiguration);
ย  ย  ย  ย  // Initialize the Google Mobile Ads SDK.
ย  ย  ย  ย  MobileAds.Initialize(initStatus => { });
ย  ย  ย  ย  ย  load();
ย  ย  }

public void Update(){
ย  ย 
}


ย  ย  //๊ตฌ๊ธ€์—์„œ ๊ด‘๊ณ ๋ฅผ ๋ถˆ๋Ÿฌ์™€ ์ €์žฅํ•ด๋†“์Šต๋‹ˆ๋‹ค.
ย  ย  private void load()
ย  ย  {
ย  ย  ย  ย  AdRequest _request = new AdRequest.Builder().Build();
ย  ย  ย  ย  interstitial.LoadAd(_request);
ย  ย  }



'InterstitialAd.InterstitialAd(string)'์€(๋Š”) ์‚ฌ์šฉ๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค. 'Use InterstitialAd.Load().' [Assembly-CSharp]csharp(CS0618)


๋นจ๊ฐ„์ƒ‰์œผ๋กœ ํ‘œ์‹œํ•œ ๋ถ€๋ถ„์ด ๋…ธ๋ž€ ๋ฐ‘์ค„๋กœ ํ‘œ์‹œ๋˜๋ฉด์„œย 

์œ„์™€ ๊ฐ™์€ ๋ฉ”์„ธ์ง€๊ฐ€ ๋‚˜์˜ค๋Š”๋ฐ ์ด๊ฑด ๊ฒ€์ƒ‰ํ•ด๋ด๋„ ์•ˆ๋‚˜์˜ค๋Š”๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

์›์ธ์ด ๋ญ˜๊นŒ์š”