

def transform_geography_targeting_from_dfp(targeting):
    '\n    Convert dfp dictionary to geography targeting model\n\n    @param targeting: dict\n    @return: TargetingCriterion\n    '
    if (not targeting):
        return None
    exclude_list = []
    excluded = targeting.get('excludedLocations', [])
    for g in excluded:
        exclude_list.append(_geo_from_dfp(g))
    include_list = []
    included = targeting.get('targetedLocations', [])
    for g in included:
        include_list.append(_geo_from_dfp(g))
    return _make_criterion_from_lists(include_list, targeting)

dataset/ETHPy150Open chartbeat-labs/parselmouth/parselmouth/adapters/dfp/targeting_utils.py transform_geography_targeting_from_dfp/VarMisuse@99/195 `exclude_list`->`targeting`