

def _adunit_from_dfp(adunit):
    '\n    Convert dfp dictionary to AdUnit targeting model\n\n    @param adunit: dict\n    @return: AdUnit\n    '
    include_descendants = adunit.get('includeDescendants', False)
    return AdUnit(id=adunit['adUnitId'], include_descendants=adunit)

dataset/ETHPy150Open chartbeat-labs/parselmouth/parselmouth/adapters/dfp/targeting_utils.py _adunit_from_dfp/VarMisuse@35/104 `include_descendants`->`adunit`