Skip to main content
Target messenger settings

Configure the target messenger for your messenger ad

eWizard Team avatar
Written by eWizard Team
Updated over a year ago

You can create messenger ads for specific messengers by selecting the messenger in eWizard Editor.


NOTE: For now, messenger ad is available only for WeChat, stay tuned for future updates.


To set up a target messenger:

1) Open the targetMessenger.json file in the common/metadata directory.

// ./common/metadata/targetMessenger.json{
"targetMessenger": [
{
"code": "wechat",
"name": "WeChat"
}
]
}

β€” code is the id of the item used for eWizard Editor.

β€” name is the name of the messenger displayed in eWizard Editor.

2) Add the path to targetMessenger.json in the ./.ewizard/settings.json file.

// ./.ewizard/settings.json{
"path": {
"metadata": {
"targetMessenger": "common/metadata/targetMessenger.json"
}
}
}

3) Set the default and current messengers in ./settings.json. For example:

// ./settings.json{
"metadata": {
"targetMessenger": {
"default": "wechat",
"current": "wechat"
}
}
}

β€” default is the default messenger displayed first when selecting a messenger.

β€” current is the current messenger for the messenger ad.

Did this answer your question?