전체 설정
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
<ph type="x-smartling-placeholder">
다음과 같은 전역 함수를 사용하여 특정 정보를 제어할 수 있습니다.
모바일 광고 SDK에 의해 수집됩니다.
Google 모바일 광고 C++ SDK는 게시자 퍼스트 파티 ID를 사용하여
앱에서 수집한 데이터를 활용하여 더 관련성 높은 개인 맞춤 광고 게재
사용할 수 있습니다.
게시자 퍼스트 파티 ID는 기본적으로 사용 설정되어 있지만
다음 코드를 초기화합니다.
#include "firebase/gma.h"
firebase::gma::SetIsSameAppKeyEnabled(/*is_enabled=*/false);
비정상 종료 보고 (iOS만 해당)
Google 모바일 광고 C++ SDK는 iOS 앱에서 발생하는 예외를 검사하고
문제가 SDK로 인해 발생한 경우 기록합니다. 이러한 예외가 수집되므로
향후 SDK 버전에서 이를 방지할 수 있습니다
비정상 종료 보고는 기본적으로 사용 설정되어 있습니다. SDK 관련 예외를 원하지 않는 경우
녹음을 원하지 않는 경우
DisableSDKCrashReporting()
함수를 사용하세요. 이 메서드를 호출하기 가장 좋은 시점은
앱이 실행됩니다.
#include “firebase/gma.h”
firebase::gma::DisableSDKCrashReporting();
Android 기기에서는 비정상 종료 보고가 지원되지 않습니다.
쿠키 사용 동의
앱에 Android 관련 특별한 요구사항이 있는 경우 선택적
SharedPreferences
드림
gad_has_consent_for_cookies
입니다. 자세한 내용은
쿠키 사용 동의
섹션을 참조하세요.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-08-21(UTC)
[null,null,["최종 업데이트: 2025-08-21(UTC)"],[[["\u003cp\u003eThe Google Mobile Ads C++ SDK is deprecated as of June 17, 2024 and will reach End-of-Maintenance on June 17, 2025, with no further updates or bug fixes after that date.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers should consider using the iOS and Android SDKs from AdMob instead of the Google Mobile Ads C++ SDK.\u003c/p\u003e\n"],["\u003cp\u003eThe SDK includes features like Publisher first-party ID (enabled by default) for personalized ads and crash reporting (iOS only, enabled by default).\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can control these features, including disabling Publisher first-party ID and crash reporting, using provided code snippets.\u003c/p\u003e\n"],["\u003cp\u003eFor Android, specific consent requirements related to cookies can be addressed using SharedPreferences.\u003c/p\u003e\n"]]],["The Google Mobile Ads C++ SDK is deprecated as of June 17, 2024, and will reach End-of-Maintenance on June 17, 2025. Consider using the AdMob iOS and Android SDKs instead. Publisher first-party ID, enabled by default, can be disabled via `SetIsSameAppKeyEnabled(false)`. For iOS, crash reporting is on by default but can be disabled using `DisableSDKCrashReporting()`. Android consent for cookies can be set using `SharedPreferences` with `gad_has_consent_for_cookies`.\n"],null,["# Global Settings\n\n| **DEPRECATED:** The Google Mobile Ads C++ SDK is *deprecated* as of June 17, 2024 and should not be adopted in projects that don't already use it. It will enter *End-of-Maintenance (EoM)* on June 17, 2025. Note that versions of the SDK released before the EoM date will continue to function, but no further bug fixes or changes will be released after the EoM date.\n|\n| Instead of the Google Mobile Ads C++ SDK, consider using the\n| [iOS](/admob/ios/quick-start) and\n| [Android](/admob/android/quick-start) SDKs from AdMob.\n| For support, reach out to the\n| [Google Mobile Ads SDK Technical Forum](https://groups.google.com/g/google-admob-ads-sdk).\n\n\u003cbr /\u003e\n\nThe following global functions may be used to control certain information\ncollected by the Mobile Ads SDK.\n\nPublisher first-party ID, formerly known as same app key\n--------------------------------------------------------\n\nThe Google Mobile Ads C++ SDK uses Publisher first-party ID to help you\ndeliver more relevant and personalized ads by using data collected from the app\nthe user is using.\n\nPublisher first-party ID is enabled by default, but you can disable it with the\nfollowing code prior to initialization: \n\n #include \"firebase/gma.h\"\n\n firebase::gma::SetIsSameAppKeyEnabled(/*is_enabled=*/false);\n\nCrash reporting (iOS Only)\n--------------------------\n\nThe Google Mobile Ads C++ SDK inspects exceptions that occur in an iOS app and\nrecords them if they are caused by the SDK. These exceptions are collected so we\ncan prevent them in future SDK versions.\n\nCrash reporting is enabled by default. If you don't want SDK-related exceptions\nto be recorded, you can disable this feature by calling the\n`DisableSDKCrashReporting()` function. The best time to call this method is when\nthe app launches: \n\n #include \"firebase/gma.h\"\n\n firebase::gma::DisableSDKCrashReporting();\n\nCrash reporting is not supported on Android devices.\n\nConsent for cookies\n-------------------\n\nIf your app has special requirements on Android, you can set the optional\n[`SharedPreferences`](//developer.android.com/reference/android/content/SharedPreferences)\n`gad_has_consent_for_cookies`. See the\n[Consent for cookies](/admob/android/global-settings#consent_for_cookies)\nsection of the Android Global Settings guide for more information."]]