Elvin, I’ll look into that!
Right now, it’s set up to pass values at the page level, so you can feed any targeting you want by adding to the object before it’s sent to javascript. However, that doesn’t include targeting for individual positions. It is part of my plan to add the ability to set targeting values to individual positions, as well. Overall, I want it to be blazingly simple to setup for people who don’t need much, and still provide options for people looking for more.
If you want to add additional page-level targetin, there’s a filter called pre_dfp_ads_to_js
that contains the data needed to setup the ad positions. To filter in new targeting, you would add a key to the “page_targeting” along with an array of values.
Example:
add_filter( 'pre_dfp_ads_to_js', function( $dfp_ads ) {
$dfp_ads->page_targeting['custom_key'] = array('of', 'values');
return $dfp_ads;
} );