There are different ways of looking at this. One is from the standpoint of statistical thermodynamics, and the other is from the standpoint of classical thermodynamics. From the standpoint of classical thermodynamics, if G0 is the free energy of formation of a substance in a standard state p0, T0, and G is the free energy of the substance at the same temperature and pressure p, then
[tex]G(p,T_0)=G_0+\int_{p_0}^pVdp[/tex]
This comes directly from the thermodynamic relationship
dG=-SdT+VdP
If the gas is an ideal gas,
[tex]G(p,T_0)=G_0+RT_0\ln{\frac{p}{p_0}}[/tex]
If the pressure is expressed in atmospheres, and, if the reference state is p0= 1atm, then
[tex]G(p,T_0)=G_0+RT_0\ln p[/tex]
If you are dealing with a mixture of ideal gases, such that G in the above equation is the partial molar free energy (aka the chemical potential), then the pressure in the above equation is the partial pressure of a species.
In obtaining the equation for the equilibrium constant in terms of the molar free energies of formation of the reactants and products, you add the free energies stoichiometrically. But at equalibrium, the overall change in the free energy is zero. So this leaves you with the equation:
[tex]RT_0\ln K_p=-\Delta G_0[/tex]
From all this you can see that an integration step was indeed involved in obtaining the final equation for an ideal gas (at least in the classical development). Incidentally, in your equation, you left out a minus sign in front of the change in standard free energy for the reaction.