Facebook Ad Network Sync 2

Facebook Ad Network Sync 2 (facebook/adnw-sync2)

operated by: Facebook (get company information on datarequests.org)

Endpoint URLs

These are URLs or regexes of endpoints the tracker sends data to. We use these to determine which adapter to apply to a request. Some trackers use the same endpoint for several formats. In this case we use additional logic to match the adapter to the request, refer to the code for more information.
  • /^https:\/\/(www|web)\.facebook\.com\/adnw_sync2?$/

Decoding steps

Every tracking library has its own way of transmitting tracking data, often even several. They are regularly pretty convoluted, nested encoding schemes. Because of that, the adapter needs to decode the request information into a consistent format. We try to keep keys and paths intact, but the structure results from our decoding. All steps used in the decoding for this adapter are documented here.
  1. Parse the request body as a query string. Store that in the variable q.
  2. Get the property at JSONPath payload in the variable q. Store that in the variable payload.
  3. Parse the variable payload as JSON. Store that in the result for the request body.
  4. Parse the result for the request body at context.VALPARAMS as JSON. Replace the existing value.
  5. Parse the result for the request body at context.ANALOG as JSON. Replace the existing value.
1q = parseQueryString(body)
2payload = q.payload
3res.body = parseJson(payload)
4res.body.context.VALPARAMS = parseJson(res.body.context.VALPARAMS)
5res.body.context.ANALOG = parseJson(res.body.context.ANALOG)

Observed data transmissions

This is data that we observed being transmitted by this tracker. Not every request contains all of this data. The context of the data describes where we found the data in the request, the path describes the location of the data in the decoded request. The examples are a selection of observed values.
PropertyContextPathExamples of observed values
Accelerometer Xbodycontext.ANALOG.accelerometer_x0.7662141
0
0.0
0.0209808349609375
0.024566650390625
Accelerometer Ybodycontext.ANALOG.accelerometer_y9.013549
0
9.776321
0.0218353271484375
0.003692626953125
Accelerometer Zbodycontext.ANALOG.accelerometer_z3.795387
0
0.812345
-0.9869842529296875
-1.000091552734375
Device advertising ID (GAID/IDFA)bodycontext.IDFA827d8162-0e1c-48cd-892e-4abd3df95ba8
ea70edc1-ac05-481c-8d2a-66b1be496a7e
C28EC4DC-DC86-4D1E-A3A9-353789F5CD26
830ec0b3-e94e-43e5-8722-a3a428af37bb
49b61a9c-cece-4300-b52e-26840e4c258e
App IDbodycontext.BUNDLEcom.curvydating
com.stx.pullhimout
drzio.dailyyoga.at.home.yogaforbeginner.howtodoyoga
com.free.music.downloader.mp3.song.download.player
com.atpc
App namebodycontext.APPNAMECurvy Dating
Pull Him Out
Yoga For Begginer
MusicDownload
AT Player
App versionbodycontext.APPVERS1.0.10
1.2.1
2.0.8
2.1.6
1.442
Battery levelbodycontext.ANALOG.battery77.0
100.0
-100
100
81.99999928474426
Carrierbodycontext.CARRIERAndroid
T-Mobile
Free disk spacebodycontext.ANALOG.free_space5693734912
5578498048
5707972608
5708124160
5722030080
Charging statusbodycontext.ANALOG.charging0
0
1
Is device an emulator?bodycontext.VALPARAMS.is_emutrue
false
Is device rooted?bodycontext.ROOTED1
2
Languagebodycontext.LOCALEen_US
en
auto
ar
en_DE
Manufacturerbodycontext.MAKEGoogle
Apple
Modelbodycontext.MODELsdk_gphone_x86_64_arm64
iPhone9,3
iPhone10,4
sdk_gphone_x86_64
iPhone10,6
OS namebodycontext.OSAndroid
iOS
OS versionbodycontext.OSVERS11
14.8
14.5.1
15.6.1
13
Free RAMbodycontext.ANALOG.available_memory935862272
417808384
987467776
959950848
913403904
Total RAMbodycontext.ANALOG.total_memory2077356032
2076893184
2.098839552e+09
2.070495232e+09
2077286400
Rotation Xbodycontext.ANALOG.rotation_x0.0
0
-0.0029166939202696085
-0.005094361025840044
-0.003368099918588996
Rotation Ybodycontext.ANALOG.rotation_y0.0
0
-0.0031734227668493986
0.0012546151410788298
-0.001612011343240738
Rotation Zbodycontext.ANALOG.rotation_z0.0
0
-0.0026407905388623476
-0.0015156050212681293
0.0002623213513288647
Screen heightbodycontext.SCREEN_HEIGHT683
411
667
375
320
Screen widthbodycontext.SCREEN_WIDTH411
683
375
667
568
Unique session IDbodycontext.SESSION_ID6d86926b-c36e-4db7-b8c0-32e407c00acc
15d3b8b7-c2ff-416f-a52f-b21c34aee4c2
bc1e0f16-7aaa-431f-9e2d-2c85e97e07a1
7426590f-140d-41bb-98e1-ef402357b951
df2b3ed3-1d6b-4264-8693-deb371c104cf
Time zonebodycontext.VALPARAMS.timezone_offset3600000
Tracker SDK versionbodycontext.SDK_VERSION5.11.0
6.2.0
5.6.0
6.1.0
5.9.1