The European Physical Journal C, Aug 2023 In this paper we investigate the vacuum polarization effects associated to a charged quantum massive scalar field on a $$(D+1)$$ -dimensional anti-de Sitter background induced by a magnetic-flux-carrying cosmic string in the braneworld model context. We consider the brane parallel to the anti-de Sitter boundary and the cosmic string orthogonal to them. Moreover, we assume that the field obeys the Robin boundary condition on the brane.