De geografische eenheid van een profiel bijwerken updating-a-geographical-unit

  1. Voer een verzoek van GET op het geoUnitBase middel uit om de Geografische eenheid PKey terug te winnen.
  2. Voer een PATCH-verzoek uit op het profiel PKey met de gewenste geografische eenheid PKey in de lading.

verzoek van de Steekproef

De lijst van geografische eenheden ophalen.

-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>'

Alle geografische eenheden worden geretourneerd. Haal de sleutel van de eenheid op waaraan u het profiel wilt toewijzen.

{
 "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)"
},

Voer een PATCH-aanvraag voor het profiel uit met de PKey van de gewenste geografische eenheid in de 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