What is your-tnt-id or your-thirdpartyid from Adobe Target Profile?

prabakarm880930

20-11-2018

Hi,

I am trying to use Adobe Target "Profile" REST API. I want to know where can i find your-tnt-id or your-thirdpartyid for below API calls ?

Fetching a profile:

https://<your-client-code>.tt.omtrdc.net/rest/v1/profiles/your-tnt-id?client=<your-client-code>

https://<your-client-code>.tt.omtrdc.net/rest/v1/profiles/thirdPartyId/your-thirdpartyid?<your-client-code>

Please guide where can i find this id, as i didn't get any info on this from documentation.

Replies

Highlighted

prabakarm880930

05-12-2018

I still have doubts on this, couldn't fix it.

  1. I installed Adobe Debugger. I couldn't see mbox3rdPartyID through that.

Here is my sample code, sending mbox3rdPartyID: Please correct me if anything wrong in it.

import React, { Component } from 'react';

import { hot } from 'react-hot-loader';

import Helmet from 'react-helmet';

import { AdobeTargetForReact } from '/lib/index.js';


class App extends Component {


   componentDidMount() {

   let event = new CustomEvent('at-view-start', {

   //Adobe Target addition

   detail: {

   mbox: 'target-global-testmbox',

   params: {

   //paramKey: "paramValue"

   //orderId: "ORDER ID FROM YOUR ORDER PAGE",

   //orderTotal: "ORDER TOTAL FROM YOUR ORDER PAGE",

   //productPurchasedId: "PRODUCT ID FROM YOUR ORDER PAGE, PRODUCT ID2, PRODUCT ID3"

   mbox3rdPartyID: "123123123"

  }

  }

  });

   document.dispatchEvent(event);

  }

   render() {


   return (

   <Template title="My App">

   <Helmet

   title="New Web Ref App"

   script={[

  {

   innerHTML: 'document.addEventListener("at-view-start", function(event) { var mbox = event.detail.mbox; var params = event.detail.params; adobe.target.getOffer({ mbox: mbox, params: params, success: function(offers) { var e = new CustomEvent("at-offers-received", {detail: {offers : offers, mbox: mbox } }); document.dispatchEvent(e); },error: function(status, error) {console.warn("Adobe Target custom mBox ( " + mbox + " ) request did not succeed :: ", status, error); var e = new CustomEvent("at-offers-received", {detail: {offers : [], mbox: mbox}}); document.dispatchEvent(e);} });});'

  },

  {

   innerHTML: 'window.targetGlobalSettings = {globalMboxAutoCreate: false}'

  },

  {

   'src': 'https://xxxx/yyyy/zzz/bbb/at-min.js',

   'type': 'text/javascript'

  }

  ]}

   />

   </Template>

  );

  }

}


export default hot(module)(App);

2. I know well about what is tntid and mbox3rdPartyID (company's visitor ID).

I am trying to use this profile API locally (within our environment - let's say whether localhost or host in a server within our dev environment)

Where can i see "tntid"? Why can't i get "tntid" and use, instead of mbox3rdparty to fetch profile? I am not getting exactly about it.