Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

Usage

URL

Return restaurants in Los Angeles

http://api.citygridmedia.com/ads/custom/v2/where?what=restaurant&where=los%20angeles,CA&publisher=test

Return restaurants for postal code 90069

http://api.citygridmedia.com/ads/custom/v2/where?what=restaurant&where=90069&publisher=test

Return restaurants for a user at IP address 4.74.197.0

http://api.citygridmedia.com/ads/custom/v2/where?what=restaurant&client_ip=4.74.197.0&publisher=test

Return up to 5 spas near zip code 90069

http://api.citygridmedia.com/ads/custom/v2/where?where=90069&what=spa&publisher=test&max=5

Return up to 10 bars in Detroit. Note that 10 is the default maximum

http://api.citygridmedia.com/ads/custom/v2/where?where=Detroit,MI&what=bar&publisher=test

Return up to 10 bakeries for whatever region the user with IP 23.110.26.29 resides

http://api.citygridmedia.com/ads/custom/v2/where?what=bakery&client_ip=23.110.26.29&publisher=test

Return up to 10 pet businesses in Reno, telling CityGrid you would like this request logged under the placement identifier "magazine“magazine."

http://api.citygridmedia.com/ads/custom/v2/where?where=reno,nv&what=pet&placement=magazine&publisher=test

Return up to 10 bars near zip code 90004, including an XML schema location with the results

http://api.citygridmedia.com/ads/custom/v2/where?where=90004&what=bar&publisher=test&schema=true

...