def transform_targeting_data_to_dfp(targeting):
    dfp_targeting = {}

    if targeting.inventory:
        dfp_targeting['inventoryTargeting'] = transform_inventory_targeting_to_dfp(targeting.inventory)

    if targeting.geography:
        dfp_targeting['geoTargeting'] = transform_geography_targeting_to_dfp(targeting.geography)

    if targeting.day_part:
        dfp_targeting['dayPartTargeting'] = transform_day_part_targeting_to_dfp(targeting.day_part)

    if targeting.technology:
        dfp_targeting['technologyTargeting'] = transform_technology_targeting_to_dfp(targeting.technology)

    if targeting.video_content:
        dfp_targeting['contentTargeting'] = transform_video_content_targeting_to_dfp(targeting.video_content)

    if targeting.video_position:
        dfp_targeting['videoPositionTargeting'] = transform_video_position_targeting_to_dfp(targeting.video_position)

    if targeting.custom:
        dfp_targeting['customTargeting'] = transform_custom_targeting_to_dfp(targeting.custom)

    return dfp_targeting
Regression for #12386 - field names on the autogenerated intermediate
dataset/ETHPy150Open chartbeat-labs/parselmouth/parselmouth/adapters/dfp/targeting_utils.py/transform_targeting_data_to_dfp--crossover with--dataset/ETHPy150Open django/django/tests/model_package/tests.py/ModelPackageTests.test_automatic_m2m_column_names