facebook/facebook-nodejs-business-sdk

field "advertiser_tracking_enabled" is required for setActionSource('app') but not available

Closed this issue · 5 comments

Which SDK version are you using?

14

What's the issue?

The advertiser_tracking_enabled field is not available but needed.

Steps/Sample code to reproduce the issue

Send any request EventRequest with setActionSource('app')

Observed Results:

400 error: 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:

Offer a way to set advertiser_tracking_enabled

Same here

Same. More than a month already, please fix, its kind of blocking

The same!

+1

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;
	}

https://github.com/facebook/facebook-nodejs-business-sdk/blob/main/src/objects/serverside/server-event.js#L399