개발생활/Unity Engine
Unity Admob How to Get Test Device /유니티 애드몹 테스트 디바이스 정보 얻기
한국인맛집
2022. 1. 21. 15:20
반응형
AdManager.cs
// List 단위로 넣게 변경됨.
List<string> testDeviceIds = new List<string>();
void Awake(){
MobileAds.Initialize(initStatus => { });
}
void Start(){
// add code
testDeviceIds.Add(AdRequest.TestDeviceSimulator);
RequestConfiguration config = new RequestConfiguration.Builder().SetTestDeviceIds(testDeviceIds).build();
}
그런다음 빌드 한다 mono
Apk를 안드로이드 스튜디오로 오픈한다.
Run -> logcat
필터 [ Ads.] 입력하면 SetTestDeviceIds 가 보이며 string 값을 복사하여
리스트에 추가해주면 끝
Reference :
stackoverflow.com/questions/4524752/how-can-i-get-device-id-for-admob
How can I get device ID for Admob
I'm using Eclipse to develop applications for android, and I want to integrate Admob to make money. The tutorial says I should watch the LogCat to find ID, but where is it? When I run in either th...
stackoverflow.com
반응형