Abrufen der geografischen Einheit eines Profils retrieving-geographical-unit

  1. Führen Sie eine GET-Anfrage für den PKey des Profils aus, um die URL geoUnit abzurufen.
  2. Führen Sie eine GET-Anfrage für die URL aus, um weitere Details zur geografischen Einheit abzurufen.

Beispielanfrage

Rufen Sie den Profildatensatz ab.

-X GET https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServicesExt/profile/<PKEY> \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Cache-Control: no-cache' \
-H 'X-Api-Key: <API_KEY>'

Es wird die geoUnit-URL für das Profil zurückgegeben.

{
  ...
  "geoUnit": {
    "PKey": "@zYV4vIjP1wpBebml6s71hjGiDhs4_gHgbC_UhuJFk8h7XTZxZ5QnZrPnQPEfB__TxwR2ge6sz61D8RR4zvD75CLDZtc<PKEY>",
    "href": "https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServicesExt/orgUnitBase/<PKEY>",
    "title": "All (all)"
    },
  ...
}

Führen Sie eine GET-Anfrage für die URL aus, um weitere Informationen abzurufen.

-X GET https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServicesExt/geoUnitBase/<PKEY> \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Cache-Control: no-cache' \
-H 'X-Api-Key: <API_KEY>'

Es werden Details zur geografischen Einheit zurückgegeben.

{
  "PKey": "<PKEY>",
  "created": "2019-04-02 22:36:13.252Z",
  "desc": "Default geographical entity (accessible to everyone)",
  "label": "All",
  "lastModified": "2019-04-03 08:17:19.100Z",
  "name": "all",
  "parentTitle": "",
  "title": "All (all)"
}
recommendation-more-help
3ef63344-7f3d-48f9-85ed-02bf569c4fff