Closed jcurlier closed 1 year ago
Seems there is an issue with the getter:
get advertiser_tracking_enabled() {
return this._data_processing_options_country;
}
Should be:
get advertiser_tracking_enabled() {
return this._advertiser_tracking_enabled;
}
closing this as the diff is merged
Steps/Sample code to reproduce the issue
Creating a ServerEvent and sending it with the API
Dump of the server event
Sending
Observed Results:
What happened? This could be a description, log output, etc.
I am getting the exception
Did not send 'Subscribe' pixel event: FacebookRequestError: Missing Advertiser Tracking Enabled Flag: The parameter 'advertiser_tracking_enabled' is required for the event with the action source 'app' (each set to either 0 or 1). Apps should expose an opportunity for users to opt-out of ad tracking, resulting in the setting of the 'advertiser_tracking_enabled' parameter.
Expected Results:
What did you expect to happen?
As advertiser_tracking_enabled is set, I was expecting the event to be sent
Related to:
https://github.com/facebook/facebook-nodejs-business-sdk/issues/233