This application relates to Heterocyclic compounds of formula (i) wherein Het is a radical of formula as indicated. G1 is n, etc. A1 A2 is Hydrogen, halogen, etc. is Hydrogen, halogen, etc. R is Hydrogen, alkyl, etc. R1 is Hydrogen, alkyl, etc. R2 is Hydrogen or alkyl, N or C - Q is R3, R3 is Hydrogen, alkyl, etc. v is a Radical Oxygen, sulfur, etc.These compounds are used for the control of animal pests. The application is also geared to the preparation thereof. Preferred compounds are: 5 Ethyl 2 - (pyridin-3-yl) - 6 - (trifluoromethyl) - 2,5 - dihydro - 4 - pyrazolo [3,4-d] pyrimidine ona (32), 4 - isopropyl - 3 - 6 - (3 - piridyl) pyrazolo [3,4-d] triazin - 4 - One (36)La presente solicitud esta referida a compuestos heterociclicos de formula (I), en donde Het es un radical de formula como se indica. G1 es N, etc. A1 es hidrogeno, halogeno, etc. A2 es hidrogeno, halogeno, etc. R es hidrogeno, alquilo, etc. R1 es hidrogeno, alquilo, etc. R2 es hidrogeno o alquilo, Q es N o C-R3, R3 es hidrogeno, alquilo, etc. V es un radical oxigeno, azufre, etc. Estos compuestos son empleados para el control de plagas de animales. La solicitud tambien esta orientada a la preparacion de los mismos. Son compuestos preferidos: 5-Etil-2-(piridin-3-il)-6-(trifluorometil)-2,5-dihidro-4H-pirazolo[3,4-d]pirimidin-4-ona (32), 3-Isopropil-6-(3-piridyl)pirazolo[3,4-d]triazin-4-ona(36)