Since Jan 2012, Google has started highlighting search areas in pick color. See the details here: http://googlesystem.blogspot.in/2012/01/highlight-areas-in-google-maps.html
Does anyone know if this can be programmatically done using google maps API 3? I would want to show my cities in the map highlighted as shown in the link above.
I have already tried the Geocode API where I search for a city. That API only gives me the lat and long information. It does not help me in plotting the city boundaries.
No. It's not available in the API.
(It may be available in the future. Features of Google Maps do migrate into the API, but Google don't make announcements in advance and no-one has a crystal ball.)
You would need to find the city boundaries and draw the line yourself. Boundary data is almost certainly public-domain for the US. Other jurisdictions may not be so forthcoming.
Although a very old post my answer might help somebody out there as am landing on this post every time I query for bounding box:
Yes we can get the bounding box coordinates that google is using to highlight a region using Googles geocoding service. check for the response of the API call in the below sample from Google.
https://developers.google.com/maps/documentation/javascript/examples/geocoding-simple?refresh=1