선별

데이터 세그먼트 활성화

데이터 세그먼트 중 하나를 활성화하려면 curators.dataSegments.activate 메서드를 사용합니다. 구매자는 거래 또는 패키지에서 데이터 세그먼트를 타겟팅할 수 있습니다.

다음 예에서는 지정된 데이터 세그먼트를 활성화하는 API 엔드포인트에 HTTP POST 요청을 전송합니다.

curl API 호출 예시

요청

curl --request POST \
'https://authorizedbuyersmarketplace.googleapis.com/v1beta/curators/[YOUR_ACCOUNT_ID]/dataSegments/test-data-segment-1:activate?key=[YOUR_API_KEY]' \
--header 'Authorization: Bearer [YOUR_ACCESS_TOKEN]' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{}' \
--compressed
    

응답

{
  "name": "curators/[YOUR_ACCOUNT_ID]/dataSegments/test-data-segment-1",
  "createTime": "2025-08-13T12:14:03.421Z",,
  "updateTime": "2025-08-14T19:47:40.253938Z",
  "cpmFee": {
    "currencyCode": "USD",
    "units": "1000000"
  },
  "state": "ACTIVE"
}
    

데이터 세그먼트 비활성화

데이터 세그먼트 중 하나를 비활성화하려면 curators.dataSegments.deactivate 메서드를 사용합니다.

다음 예에서는 지정된 데이터 세그먼트를 비활성화하는 API 엔드포인트에 HTTP POST 요청을 전송합니다.

curl API 호출 예시

요청

curl --request POST \
'https://authorizedbuyersmarketplace.googleapis.com/v1beta/curators/[YOUR_ACCOUNT_ID]/dataSegments/test-data-segment-1:deactivate?key=[YOUR_API_KEY]' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{}' \
--compressed
    

응답

{
  "name": "curators/[YOUR_ACCOUNT_ID]/dataSegments/test-data-segment-1",
  "createTime": "2025-08-13T12:14:03.421Z",
  "updateTime": "2025-08-14T20:05:51.439110Z",
  "cpmFee": {
    "currencyCode": "USD",
    "units": "1000000"
  },
  "state": "INACTIVE"
}
    

다음 단계