क्यूरेशन

डेटा सेगमेंट चालू करना

अपने किसी डेटा सेगमेंट को चालू करने के लिए, curators.dataSegments.activate तरीके का इस्तेमाल करें. खरीदार, डील या पैकेज में डेटा सेगमेंट को टारगेट कर सकते हैं.

यहां दिए गए उदाहरण में, एचटीटीपी POST का इस्तेमाल करके एपीआई एंडपॉइंट पर अनुरोध किया गया है. इससे तय किए गए डेटा सेगमेंट को चालू किया जाता है.

कर्ल एपीआई कॉल का उदाहरण

अनुरोध

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 तरीके का इस्तेमाल करें.

यहां दिए गए उदाहरण में, एपीआई एंडपॉइंट पर एचटीटीपी POST अनुरोध किया गया है. यह अनुरोध, तय किए गए डेटा सेगमेंट को बंद करने के लिए किया गया है.

कर्ल एपीआई कॉल का उदाहरण

अनुरोध

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"
}
    

अगले चरण