2015-12-30

MobilePush Demographicsの確認方法

ExactTarget(Marketing Cloud)のMobile Push Contactの属性情報の確認方法についての備忘録。

UIから確認する

ログインして[Contact Builder]>[Data Designer]で[Mobile Push Data]を選択します。

etmc_contactbuilder_datadesigner

MobilePush DemographicsのDataExtensionの編集を選択します。

etmc_contactbuilder_mobilepush

レコードとして属性情報が格納されているのでContactIDやSystemTokenを突き合わせて確認します。

etmc_mobilepush_demographics

UIから確認する2

[Contact Builder]>[All Contacts]から任意のContactを選択し、[Attributes]からMobilePush Demographicsのデータを確認します。

etmc_mobilepush_demographics2

APIで確認する

前段として、上記の「UIから確認する」のMobilePush DemographicsのExternalKeyをコピります。

SOAP APIでデータエクステンションを抽出します。curlだとこんな感じ

$ curl -i -X POST \
   -H "Content-Type:text/xml" \
   -H "SOAPAction:\"Retrieve\"" \
   -d \
'<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <soapenv:Header>
    <fueloauth>{AccessToken}</fueloauth>
  </soapenv:Header>
  <soapenv:Body>
    <RetrieveRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
      <RetrieveRequest>
        <ObjectType>DataExtensionObject[{MobilePush Demographics DataExtension ExternalKey}]</ObjectType>
        <Properties>_ContactID</Properties>
        <Properties>_SystemToken</Properties>
        <Filter xsi:type="SimpleFilterPart">
          <Property>_ContactID</Property>
          <SimpleOperator>equals</SimpleOperator>
          <Value>{Target ContactID}</Value>
        </Filter>
      </RetrieveRequest>
    </RetrieveRequestMsg>
  </soapenv:Body>
</soapenv:Envelope>' \
 'https://webservice.s7.exacttarget.com/Service.asmx'

UIから確認する方法よりも画面遷移の数が少ない分、最も効率が良く、フィルタリングも柔軟に設定可能なのでオススメです。

このエントリーをはてなブックマークに追加