Skip to content

Commit

Permalink
upating taboola field (segmentio#2130)
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-ayoub-segment authored Jul 2, 2024
1 parent 0cc866b commit cd2b58f
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@ describe('Taboola.syncAudience', () => {
const event = createTestEvent({
event: 'Audience Entered',
type: 'track',
properties: {},
properties: {
ios: {
id: DEVICE_ID
}
},
context: {
device: {
id: DEVICE_ID,
advertisingId: '11111'
},
traits: {
Expand Down Expand Up @@ -127,10 +130,13 @@ describe('Taboola.syncAudience', () => {
const event = createTestEvent({
event: 'Audience Entered',
type: 'track',
properties: {},
properties: {
ios: {
id: DEVICE_ID
}
},
context: {
device: {
id: DEVICE_ID,
advertisingId: '11111'
},
traits: {
Expand Down Expand Up @@ -165,10 +171,13 @@ describe('Taboola.syncAudience', () => {
createTestEvent({
event: 'Audience Entered',
type: 'track',
properties: {},
properties: {
ios: {
id: DEVICE_ID
}
},
context: {
device: {
id: DEVICE_ID,
advertisingId: '11111'
},
traits: {
Expand All @@ -186,10 +195,13 @@ describe('Taboola.syncAudience', () => {
createTestEvent({
event: 'Audience Exited',
type: 'track',
properties: {},
properties: {
ios: {
id: '456'
}
},
context: {
device: {
id: '456',
advertisingId: '22222'
},
traits: {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,17 @@ const action: ActionDefinition<Settings, Payload, AudienceSettings> = {
},
device_id: {
label: 'Mobile Device ID',
description: 'Mobile Device ID.',
description:
"To send iOS and Android Device IDs, include the 'ios.id' and 'android.id' Identifiers from the 'Customized Setup' option when connecting your Audience.",
type: 'string',
required: false,
unsafe_hidden: true,
unsafe_hidden: false,
default: {
'@path': '$.context.device.id'
'@if': {
exists: { '@path': '$.properties.ios.id' },
then: { '@path': '$.properties.ios.id' },
else: { '@path': '$.properties.android.id' }
}
}
},
batch_size: {
Expand Down

0 comments on commit cd2b58f

Please sign in to comment.