Android N 이상에서 Charles 프록시 Google 모바일 광고 SDK 설정
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
Android N 이상에서는 다음 단계를 실행할 때만 Charles 프록시에서 광고 호출을 볼 수 있습니다.
- 휴대기기에서 Google Play 서비스를 업데이트합니다.
- 휴대기기에서 네트워크 추적을 사용 설정합니다.
- 기기에 Charles SSL 인증서를 설치하고 프록시를 설정합니다.
- 모바일 앱에서 SSL 프록시를 사용하도록 설정합니다.
휴대기기에서 Google Play 서비스 업데이트하기
에뮬레이터의 경우 사이드 메뉴에 Google Play 섹션이 표시되지 않으면
Android 스튜디오를 업데이트하고 가상 기기 설정에서 최신 시스템 이미지를
다운로드해야 할 수 있습니다. 타겟에 Google Play가 있는 시스템 이미지를 사용해야 합니다.

사이드 메뉴를 사용하여 Google Play 서비스를 확인하고 최신 버전으로 업데이트하세요. Google Play 서비스가 작동할 수 있는 최소 버전은 14.5.74
입니다.

실제 휴대기기 (스마트폰 또는 태블릿)의 경우 Google Play를 검색하거나 이 링크로 이동하여 Google Play를 직접 열 수 있습니다.
휴대기기에서 네트워크 추적 사용 설정
네트워크 추적을 사용하려면 기기에서 개발자 옵션을
사용 설정해야
합니다. Google 설정 앱을 실행하고 Google > 광고 > 광고
디버그 로깅 사용을 선택합니다. AdMob 및 Google Ad Manager 게시자를 위한
더 상세한 가이드가 제공됩니다.

기기에 Charles SSL 인증서를 설치하고 프록시 설정하기
모바일 앱에서 Charles를 프록시로 사용하려면 컴퓨터에 Charles를 다운로드하여 설치해야 합니다. Charles에 관한 안내에 따라 Android 에뮬레이터 또는
휴대기기에 SSL 인증서를 설치하세요.

에뮬레이터는 이미 Charles가 실행되고 있는 컴퓨터와 동일한 Wi-Fi 네트워크에 연결되어 있기 때문에 프록시가 있는 에뮬레이터를 사용하는 것이 더 간단합니다. 에뮬레이터를 프록시와 함께 사용할 경우 프록시를 localhost (http://127.0.0.1
) 및 Charles 프록시가 실행되고 있는 포트(Charles 메뉴 옵션 프록시 > 프록시 설정에서 확인 가능)로 설정합니다.
실제 휴대기기 (스마트폰 또는 태블릿)를 사용하는 경우 고급 네트워크 설정을 사용해 Charles가 실행되고 있는 컴퓨터와 동일한 Wi-Fi 네트워크에 휴대기기를 연결해야 합니다. 실제 기기에 프록시를 설정할 경우
컴퓨터의 IP 주소를 확인할 수 있는 Charles 메뉴 옵션인
Help(도움말) > Local IP address(로컬 IP 주소)를 사용해 기기에 프록시 주소를
입력합니다(동일한 Wi-Fi 네트워크에 연결된 상태여야 함).
Charles 프록시가 실행 중인 포트를 사용합니다.
모바일 앱에 SSL 프록시 사용 설정하기
Charles에서 모바일 앱의 SSL 트래픽을 인터셉트하기 위해서는
앱에서 사용자가 제공한 SSL 인증서를 신뢰할 수 있음을 선언해야 합니다.
먼저 네트워크 보안 설정을 위한 새 XML 리소스 파일을
<network-security-config>
<debug-overrides>
<trust-anchors>
<!-- Trust user added CAs while debuggable only -->
<certificates src="user" />
</trust-anchors>
</debug-overrides>
</network-security-config>

그런 다음 네트워크 보안 설정을 사용할 수 있도록 AndroidManifest.xml
파일을 업데이트합니다.
<?xml version="1.0" encoding="utf-8"?>
<manifest ... >
<application ...
android:networkSecurityConfig="@xml/network_security_config"
... >
...
</application>
</manifest>

그런 다음 모바일 앱을 시작하고 Charles 로그에서 광고 요청을
찾을 수 있습니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-09-05(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-09-05(UTC)"],[[["\u003cp\u003eOn Android N or higher, specific steps are required to view ad calls in Charles proxy, including updating Google Play services, enabling network tracing, installing the Charles SSL certificate, and configuring SSL proxy settings for your app.\u003c/p\u003e\n"],["\u003cp\u003eFor successful network tracing, ensure your Google Play services version is at least 14.5.74 and enable debug logging for ads within the Google Settings app.\u003c/p\u003e\n"],["\u003cp\u003eInstalling the Charles SSL certificate requires downloading Charles on your computer and following the instructions provided to install the certificate on your emulator or mobile device.\u003c/p\u003e\n"],["\u003cp\u003eWhen using Charles proxy, ensure your mobile device and computer are on the same Wi-Fi network and correctly configure proxy settings using either localhost for emulators or your computer's local IP address for physical devices.\u003c/p\u003e\n"],["\u003cp\u003eTo enable Charles to intercept SSL traffic from your mobile app, you need to declare trust for user-provided SSL certificates by adding a network security configuration XML file and updating your app's AndroidManifest.xml file.\u003c/p\u003e\n"]]],[],null,["On Android N or higher, ad calls are visible in Charles proxy only when the\nfollowing steps are performed:\n\n1. Update the Google Play services on the mobile device.\n2. Enable Network Tracing on the mobile device.\n3. Install Charles SSL certificate on your device, and set up proxy.\n4. Enable SSL Proxy for your mobile app.\n\nUpdate the Google Play services on the mobile device\n\nFor an emulator, if you don't see the Google Play section in the side menu,\nyou may need to update the Android Studio and download the latest system\nimages in the **Virtual Device Configuration**. Make sure to use a system\nimage with Google Play in its target.\n\nUse the side menu to check and update Google Play services to the latest\nversion. The minimum working version of the Google Play services is\n`14.5.74`.\n\nFor a physical mobile device (phone or tablet), you can search for Google\nPlay or follow this\n[link](//play.google.com/store/apps/details?id=com.google.android.gms)\nto open Google Play directly.\n\nEnable Network Tracing on the mobile device\n\nTo enable network tracing, you will need to [enable developer\noptions](//developer.android.com/studio/debug/dev-options) for your\ndevice. Launch the Google Settings app and select **Google \\\u003e Ads \\\u003e Enable\ndebug logging for ads** . A more detailed\n[guide](/admob/android/network-tracing) is\navailable for both AdMob and Google Ad Manager publishers.\n\nInstall Charles SSL certificate on your device, and set up proxy\n\nTo use Charles as a proxy for your mobile app, you will need to download and\n[install](//www.charlesproxy.com/documentation/installation/) Charles\non a computer. Follow Charles' instructions to install an SSL certificate on\nthe Android emulator or mobile device.\n\nIt is simpler to [use the emulator with a\nproxy](//developer.android.com/studio/run/emulator-networking#proxy) because the\nemulator is already connected to the same Wi-Fi network with the computer\nrunning Charles. When using the emulator with a proxy, set the proxy to\nlocalhost (`http://127.0.0.1`) and the port that Charles proxy is running on\n(found in Charles menu option **Proxy \\\u003e Proxy Settings**).\n\nIf you're using a physical mobile device (phone or tablet), you'll need to\nconnect the mobile device to the same Wi-Fi network with your computer\nrunning Charles using the [advanced network\nsettings](//support.google.com/pixelphone/answer/2819519). When setting up the\nproxy settings for your physical device, use the Charles menu option **Help \\\u003e\nLocal IP address** to get the IP address of your computer, to enter for the proxy\naddress on your device (you must be on the same Wi-Fi network for this to work).\nUse the port that Charles proxy is running on.\n\nEnable SSL Proxy for your mobile app\n\nFor Charles to intercept your mobile app's SSL traffic, you will need to declare\nthat your app can trust a user-provided SSL certificate.\n\nFirst, you will need to add a new XML resource file for [Network Security\nConfiguration](//developer.android.com/training/articles/security-config) under \n\n \u003cnetwork-security-config\u003e\n \u003cdebug-overrides\u003e\n \u003ctrust-anchors\u003e\n \u003c!-- Trust user added CAs while debuggable only --\u003e\n \u003ccertificates src=\"user\" /\u003e\n \u003c/trust-anchors\u003e\n \u003c/debug-overrides\u003e\n \u003c/network-security-config\u003e\n\nNext, update the `AndroidManifest.xml` file to use the network security\nconfiguration. \n\n \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n \u003cmanifest ... \u003e\n \u003capplication ...\n android:networkSecurityConfig=\"@xml/network_security_config\"\n ... \u003e\n ...\n \u003c/application\u003e\n \u003c/manifest\u003e\n\nAfter that, you can launch the mobile app and look for ad requests in the\nCharles log."]]