def state_key_name(advertiser_ids, stream_name):
    """Generate Singer State key for stream."""
    if advertiser_ids:
        return stream_name + '_' + advertiser_ids
    else:
        return stream_name
