[Android] Admob 오류 종류
Ad failed to load : 0
public static final int ERROR_CODE_INTERNAL_ERROR
Something happened internally; for instance, an invalid response was received from the ad server.
Constant Value: 0
Ad failed to load : 1
public static final int ERROR_CODE_INVALID_REQUEST
The ad request was invalid; for instance, the ad unit ID was incorrect.
Constant Value: 1
Ad failed to load : 2
public static final int ERROR_CODE_NETWORK_ERROR
The ad request was unsuccessful due to network connectivity.
Constant Value: 2
Ad failed to load : 3
public static final int ERROR_CODE_NO_FILL
The ad request was successful, but no ad was returned due to lack of ad inventory.
Constant Value: 3
특히 3번의 원인에는 다음과 같은 것들이 있음
- Google AdMod에 결제 수단을 추가하는 것을 잊어 버림
- 앱이 디버깅 모드이고 릴리스 모드가 아닌 경우
- 코드는 정확하지만 서버에 대한 요청 량이 적기 때문에 광고가 표시되지 않습니다.
- Google 콘솔에서 광고 포함을 사용하는 것을 잊지 마십시오
기타
- This request is sent from a test device.
- Use RequestConfiguration.Builder().setTestDeviceIds(Arrays.asList("63DA9D9E2512D97E1CDE43513F7344AC") to get test ads on this device
참고자료
구글 애드몹 공식문서
AdRequest | Android용 Google API | Google Developers
Nested Class Summary Constant Summary String DEVICE_ID_EMULATOR The deviceId for emulators to be used with setTestDeviceIds(List). int ERROR_CODE_APP_ID_MISSING The ad request was not made due to a missing app ID. int ERROR_CODE_INTERNAL_ERROR Something ha
developers.google.com