def get_analytics_parameters(ids: list, category: str) -> dict:
    """Given a list of campaign ids or creative ids, returns parameters with corresponding filters.

    :returns: params: Parameters used to filter the query to the AdAnalytics LinkedIn API
    :rtype: dict
    """

    params = {}
    key_prefix = {"GROUP": "", "CAMPAIGN": "search.campaignGroup.values[{}]", "CAMPAIGN_ANALYTICS": "campaigns[{}]",
                  "CREATIVES": "search.campaign.values[{}]", "CREATIVES_ANALYTICS": "creatives[{}]"}
    urn_prefix = {"GROUP": "", "CAMPAIGN": "urn:li:sponsoredCampaignGroup:", "CAMPAIGN_ANALYTICS": "urn:li:sponsoredCampaign:",
                  "CREATIVES": "urn:li:sponsoredCampaign:", "CREATIVES_ANALYTICS": "urn:li:sponsoredCreative:"}
    for i, id_value in enumerate(ids):
        params[key_prefix[category].format(str(i))] = urn_prefix[category] + str(id_value)
    return params