Aggiornamento dell’unità geografica di un profilo updating-a-geographical-unit

  1. Eseguire una richiesta GET su geoUnitBase risorsa per recuperare l’unità geografica PKey.
  2. Esegui una richiesta PATCH sul profilo PKey, con l’unità geografica PKey desiderata nel payload.

Richiesta di esempio

Recupera l’elenco delle unità geografiche.

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

Restituisce tutte le unità geografiche. Recuperate la chiave PK dell'unità a cui desiderate assegnare il profilo.

{
 "PKey": "<PKEY>",
 "created": "2019-04-06 22:36:19.089Z",
 "desc": "",
 "href": "https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServicesExt/geoUnitBase/<PKEY>",
 "label": "Europe",
 "lastModified": "2019-04-06 22:36:19.086Z",
 "name": "eu",
 "parentTitle": "All (all)",
 "title": "Europe (eu)"
},

Esegui una richiesta PATCH sul profilo, con la PKey dell’unità geografica desiderata nel payload.

-X PATCH 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>'
-i
-d {
-d "geoUnit":{
-d    "PKey":"<PKEY>"
-d  }
-d }
recommendation-more-help
3ef63344-7f3d-48f9-85ed-02bf569c4fff