Closed jcurlier closed 6 months ago
This is a follow up to the issue https://github.com/facebook/facebook-nodejs-business-sdk/issues/251 - both issues preventing setting advertiser_tracking_enabled
with the release 17.0.3
, the error is now a FacebookRequestError
Error
at FacebookRequestError.FacebookError [as constructor] (/home/app/node_modules/facebook-nodejs-business-sdk/dist/cjs.js:352:16)
at new FacebookRequestError (/home/app/node_modules/facebook-nodejs-business-sdk/dist/cjs.js:374:129)
at /home/app/node_modules/facebook-nodejs-business-sdk/dist/cjs.js:673:15
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
serverEvent:
_action_source: "app"
_advertiser_tracking_enabled: false
_custom_data: {
_content_type: "product"
_contents: [1]
_currency: "USD"
_value: 119.99
}
Having the same issue here
Any update on this ? advertiser_tracking_enabled
IS this wrong implementation by me? . Node js I still receive error that the value is not provided
const serverEvent_0 = new ServerEvent()
.setEventName(FBEventName)
.setEventSourceUrl(eventSourceUrl)
.setEventTime(eventTime)
.setUserData(userData)
.setActionSource(actionSource);
if (actionSource === 'app') {
serverEvent_0.setAdvertiserTrackingEnabled(1); // or 1 0r 0
}
@saxo751 which version are you using? https://github.com/facebook/facebook-nodejs-business-sdk/pull/254/ this issue shall be resolved already.
Which SDK version are you using?
17.0.2
What's the issue?
I am getting the following error
Server Side Api Parameter Error: Unexpected key "advertiser_tracking_enabled" on param "$['data'][0]"." method: "POST"
when sending an event with action source = 'app' and advertiser tracking enabled set.Steps/Sample code to reproduce the issue
Observed Results:
I am getting the following error
Server Side Api Parameter Error: Unexpected key "advertiser_tracking_enabled" on param "$['data'][0]"." method: "POST"
Expected Results:
The event should be sent without errors.
Investigation
For one instance, the following event is sent:
I believe (1) the
advertiser_tracking_enabled flag
should be set underapp_data
and (2) the value should be0
or1
according to the following documentation: