1/** 2 * Send ad_density data to Assertive Yield. 3 */ 4wp.hooks.addFilter('tmbi_ay_ad_targeting', 'tmbi_ad_density', function (ayTargeting) { 5 let adDensity = wp.hooks.applyFilters('measured_ad_density', ''); 6 let targetDensity = wp.hooks.applyFilters('tmbi_dai_target_density', '-1'); 7 8 ayTargeting.adDensity = adDensity.toString() || ''; 9 ayTargeting.adDensityTarget = targetDensity.toString() || ''; 10 return ayTargeting; 11});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.