DataProviders - profile parameter | Community
Skip to main content
Level 2
October 24, 2022
Solved

DataProviders - profile parameter

  • October 24, 2022
  • 1 reply
  • 1068 views

Hi,

 

We are using the data providers function to call an API and pass through data to Adobe Target.

 

https://developer.adobe.com/target/implement/client-side/atjs/atjs-functions/targetglobalsettings/?lang=en#data-providers

 

If I want this data to be appended to the profile. Can I just pass the profile.[param_name]  in the call back?

 

E.g. 

Instead of:

callback(null, {t1: 1, t2: 2, t3: 3});

 

callback(null, {profile.t1: 1, profile.t2: 2, profile.t3: 3});

 

Thanks

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Perrin_Ennen

Hi @enick_88,
I know what you want to do. But it would be new to me that you can pass profile parameters from the callback. But I'm happy to be taught better.

My understanding is that it is only appended to the target request (payload). At this point the targetPageParamsAll() has already been executed. So I don't know if there is another way that you have the profile parameter already at the first request.

 

But you can pass the profile parameter accordingly for further requests - here I rather think of ways.

1 reply

Perrin_Ennen
Community Advisor
Perrin_EnnenCommunity AdvisorAccepted solution
Community Advisor
October 26, 2022

Hi @enick_88,
I know what you want to do. But it would be new to me that you can pass profile parameters from the callback. But I'm happy to be taught better.

My understanding is that it is only appended to the target request (payload). At this point the targetPageParamsAll() has already been executed. So I don't know if there is another way that you have the profile parameter already at the first request.

 

But you can pass the profile parameter accordingly for further requests - here I rather think of ways.

enick_88Author
Level 2
October 26, 2022

Thanks for the reply.  Is the data sent through on the Target request available within profile scripts? Could I pick it up server side and then store against the profile?

Perrin_Ennen
Community Advisor
Community Advisor
October 26, 2022

As I understand it, you can only create audiences with it.

 

Of course you can also create activities with the audiences that write something in your profile. But that is your one request later - and possibly then too late and complicated. Then you can also use e.g. session storage and pass the parameters to targetPageParamsAll() according to the profile at the next page load.

 

Here is something else mentioned. Maybe this will help you:

Alternatively, you could pass the values as profile parameters using the profile. prefix, and just pass them in the first Target request of the session. However, you would be limited to passing fifty profile parameters per request.

How to Implement Data Providers to Integrate Third-party Data | Adobe Target