-
Notifications
You must be signed in to change notification settings - Fork 283
StackAdapt Audience Destination: Fix profile deletion query #3215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
label: "Advertiser ID", | ||
description: "The StackAdapt advertiser ID to add the profile to. The value in this field field can also be overridden at the Action level via the Action field of the same name.", | ||
type: 'string', | ||
required: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be required:false.
description: "The StackAdapt advertiser ID to add the profile to. The value in this field field can also be overridden at the Action level via the Action field of the same name.", | ||
type: 'string', | ||
required: true, | ||
disabledInputMethods: ['literal', 'variable', 'function', 'freeform', 'enrichment'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for this line. Customers can't map data from payloads anyway so you can delete this line.
const syncId = sha256hash(String(userId)) | ||
const advertiserId = settings.advertiser_id | ||
if(!advertiserId) { | ||
throw new InvalidAuthenticationError("Advertiser value must be provided in either the main Settings Advertiser field or at the Action level Advertiser field.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
throw new InvalidAuthenticationError("Advertiser value must be provided in either the main Settings Advertiser field or at the Action level Advertiser field.") | |
throw new InvalidAuthenticationError("To delete a user, the Advertiser field in Settings should be populated.") |
Hi @joe-ayoub-segment, thanks for your comments. Is there a way to use a dynamic dropdown instead of input box for advertiserID in under Settings? |
We will not enable onDelete if we can't have the dropdown for advertiserIds in a single place that can be referenced for both |
It's not in use by clients at the moment. The traffic is from our internal testing. |
Ah OK if no customers are using it, we can just keep the advertiserIds field in Settings / authentication, and then delete the advertiserIds in the Mappings UI. |
Yes, we can surely do that but more importantly we want to keep the UI intuitive for clients. I tried to have the |
Hi @Vanessa-SSY , Can you try something like this please?
|
I tried with the code you suggested above but still seeing advertiser ID under |
Ah OK - I wouldn't worry about testing it in the testing tool. That tool is so out of date it hardly works. We're going to be building a new test tool. One way you should be able to test it is to use Postman. When you start up the testing tool you will see a list of endpoints you can hit at your localhost:3000 For example: ![]() If you call those endpoints you should be able to invoke the dynamic function that populates the dropdown list. If you have any trouble with this please schedule a call with me - I'd be happy to figure it out in a working session. https://calendly.com/joe_ayoub Thanks |
I have tried to use postman but still don't see the dynamic function being triggered. I would like to schedule a call with you some time tomorrow if that works for you. I'm free any time before 4PM EST. Please let me know you availability. @joe-ayoub-segment |
A summary of your pull request, including the what change you're making and why.
Testing
Include any additional information about the testing you have completed to
ensure your changes behave as expected. For a speedy review, please check
any of the tasks you completed below during your testing.