Google Ads API에 관한 의견을 공유하고 싶으신가요?
등록하여 사용자 연구에 참여하도록 초대받으세요.
리소스 이름
Google Ads API의 항목 고유 식별자는 리소스 이름이라고 하며 예측 가능한 형식의 문자열로 표시됩니다. 리소스 이름의 구성 요소를 알고 있다면 이 유틸리티를 사용하여 최종 리소스 이름을 생성할 수 있습니다.
ResourceNames 클래스
ResourceNames
유틸리티는 항목과 관련된 모든 관련 ID를 알고 있는 경우 항목의 리소스 이름을 구성하는 방법입니다. 예를 들어 캠페인 리소스 이름은 customers/{customer_id}/campaigns/{campaign_id}
형식이므로 고객 ID와 캠페인 ID를 알고 있다면 ResourceNames
유틸리티를 사용하여 다음과 같이 전체 리소스 이름을 구성할 수 있습니다.
my $resource_name =
Google::Ads::GoogleAds::V18::Utils::ResourceNames::campaign($customer_id,
$campaign_id);
리소스 이름의 최종 형식에 따라 다른 ID를 사용하는 다른 항목 이름도 사용할 수 있습니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-11-09(UTC)
[null,null,["최종 업데이트: 2024-11-09(UTC)"],[[["Google Ads API entities are uniquely identified by resource names, which are strings with predictable formats based on their components."],["The `ResourceNames` utility helps construct these resource names when you know the necessary IDs, such as customer and campaign IDs."],["You can use the `ResourceNames` utility with various entity names, providing the corresponding IDs needed for the specific resource name structure."]]],[]]