Expand my Community achievements bar.

SOLVED

AJO Consent dataset- How to ingest data to AJO consent dataset using API ?

Avatar

Community Advisor

Hi All,

Is it possible to ingest subscription and consent data to AJO default system generated schema dataset 'AJO Consent Service Dataset' using API or Web SDK? If yes, please share some details on how to ingest it.

Schema: AJO Consent Service Schema

Dataset: AJO Consent Service Dataset

 

Thanks,

Sneha 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hello @Sneha-Parmar 

 

You will have to add Consent and Preferences field group to the Profile Schema and then you can use HTTP API update the field group values against a profile.

 

This is a simple payload you can use for HTTP API

var json=
{        
         "optInOut":{
            "_channels":{
              "sms": localStorage.getItem('optin_sms'),
              "email": localStorage.getItem('optin_email'),
              "phone": localStorage.getItem('optin_phone'),
              "directMail": localStorage.getItem('optin_dm')
            }
         },        
         "SANDBOX_IDNETIFIER":{
            "identity":{               
              "ecid": _satellite.getVar('ECID'),
              "email":localStorage.getItem('email')
            }
         }
};

 

Same payload can be used to append the subscriptions object mentioned in this document.

https://experienceleague.adobe.com/en/docs/experience-platform/xdm/data-types/marketing-field-subscr...


     Manoj
     Find me on LinkedIn

View solution in original post

2 Replies

Avatar

Employee Advisor

Kindly take a look at the following documentation https://experienceleague.adobe.com/en/docs/experience-platform/landing/governance-privacy-security/c...

 

Consent dataset is a system dataset used by the AJO consent service, and it's not advisable to modify it. 

Instead,

  • Create a custom dataset based on the Consent Service Schema 
  • Set up an HTTP API Dataflow to ingest data into the custom dataset and use the ingestion API of this Dataflow to input consent values into the respective profiles

Additional reference 

https://experienceleague.adobe.com/en/docs/experience-platform/xdm/data-types/marketing-field-subscr...

Avatar

Correct answer by
Community Advisor

Hello @Sneha-Parmar 

 

You will have to add Consent and Preferences field group to the Profile Schema and then you can use HTTP API update the field group values against a profile.

 

This is a simple payload you can use for HTTP API

var json=
{        
         "optInOut":{
            "_channels":{
              "sms": localStorage.getItem('optin_sms'),
              "email": localStorage.getItem('optin_email'),
              "phone": localStorage.getItem('optin_phone'),
              "directMail": localStorage.getItem('optin_dm')
            }
         },        
         "SANDBOX_IDNETIFIER":{
            "identity":{               
              "ecid": _satellite.getVar('ECID'),
              "email":localStorage.getItem('email')
            }
         }
};

 

Same payload can be used to append the subscriptions object mentioned in this document.

https://experienceleague.adobe.com/en/docs/experience-platform/xdm/data-types/marketing-field-subscr...


     Manoj
     Find me on LinkedIn