def transform_targeting_data_from_dfp(targeting):

    return TargetingData(
        inventory=transform_inventory_targeting_from_dfp(targeting.get('inventoryTargeting')),
        geography=transform_geography_targeting_from_dfp(targeting.get('geoTargeting')),
        day_part=transform_day_part_targeting_from_dfp(targeting.get('dayPartTargeting')),
        user_domain=transform_user_domain_targeting_from_dfp(targeting.get('userDomainTargeting')),
        technology=transform_technology_targeting_from_dfp(targeting.get('technologyTargeting')),
        video_content=transform_video_content_targeting_from_dfp(targeting.get('contentTargeting')),
        video_position=transform_video_position_targeting_from_dfp(targeting.get('videoPositionTargeting')),
        custom=transform_custom_targeting_from_dfp(targeting.get('customTargeting')),
    )
Convert dictionary-representation for a SUDS creative object into a
dataset/ETHPy150Open chartbeat-labs/parselmouth/parselmouth/adapters/dfp/targeting_utils.py/transform_targeting_data_from_dfp