If you are talking about AdSense - You add the code to your pages and Google's bots looks at the content and then tries to serve appropriate advertising to match it. So yes, in a way, it is automatic.
Are we talking Adwords or Adsense? There seems to be some confusion here. Are you trying to place Adwords ads on Google.com or are you trying to put Adsense ads on your website or blog?