def add_products(self, product_id_dict):
        try:
            analytics_credentials = self.get_analytics_credentials()
        except __HOLE__:
            # AnonymousUser doesn't have method
            analytics_credentials = {}    
        product_id_type = product_id_dict.keys()[0]
        add_even_if_removed = True  # re-add even if previously removed
        new_products = self.get_new_products(
                product_id_type, 
                product_id_dict[product_id_type], 
                analytics_credentials,
                add_even_if_removed)
        tiids = [product.tiid for product in new_products]

        return tiids
dataset/ETHPy150Open Impactstory/total-impact-webapp/totalimpactwebapp/profile.py/Profile.add_products