Your SlideShare is downloading. ×
Google APPs and APIs
Upcoming SlideShare
Loading in...5

Thanks for flagging this SlideShare!

Oops! An error has occurred.

Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Google APPs and APIs


Published on

Google APPs and Google APIs

Google APPs and Google APIs

1 Like
  • Be the first to comment

No Downloads
Total Views
On Slideshare
From Embeds
Number of Embeds
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

No notes for slide


  • 1. Google APIs
    Mohammed Farrag
    Shibin Al-Kawm GTUG Admin
  • 2. What is API ?!
    About Google API.
    Start Using Google API.
    Google API in different languages.
    Manage your business using Google API.
    How Google builds API ?!
    Future of Google API.
    Google API Code Explorer.
    Google API Periodic Table.
    Google Competitions.
    Be Googler !!
  • 3. Google API
  • 4. Allows search over Google’s entire index of billions of web pages.
    Enabling developers to give customers more information with the interactivity consumers and business users expect.
    Uses SOAP - Simple Object Access Protocol
    – used for information exchange (esp. http).
    Google APIs
  • 5. • But:
    – Limit of 1,000 queries per day (without special arrangement).
    – Limit of 10 results per query (top 10)
    • Can be overcome somewhat through query refinement).
  • 6. • Register
    • Agree to terms and conditions
    • Get key
    – A 32 byte code
    – Needed for each query submission
    – E-mailed to you
    • Download API
    Getting Started
  • 7. Google Java API
    • API for Java is an executable jar
    • Set appropriate classpath
    • Some sample code:

    GoogleSearchgoogs = new GoogleSearch();
    googs.setQueryString(“TREC 2005 papers");
    GoogleSearchResultgoogResults = googs.doSearch();
    max = googResults.getEstimatedTotalResultsCount();
    GoogleSearchResultElementmyresults[] = googResults.getResultElements();
    String a_URL = (String) myresults[1].getURL();
    Google Java API
  • 8. So How do I Query Google?
    #!/usr/local/bin/perl –w
    use SOAP::Lite;
    # Configuration
    $key = "Your Key Goes Here";
    # Initialize with local SOAP::Lite file
    $service = SOAP::Lite
    -> service('file:GoogleSearch.wsdl');
    $query= “duluth”;
  • 9. Search Contd…
    $result = $service
    -> doGoogleSearch(
    $key, # key
    $query, # search query
    0, # start results
    10, # max results
    "false", # filter: boolean
    "", # restrict (string)
    "false", # safeSearch: boolean
    "", # lr
    "", # ie
    "" # oe
  • 10. Limit is 1,000 queries
    – Catch GoogleSearchFault, or,
    – Local counter to track
    – In any case, put thread to sleep for 24 hrs.
    • Google server may get overloaded
    – In error processing, capture
    “Please try again in 30 seconds”
    – Put in 30 second sleep, and retry query
    Programming Notes
  • 11. getEstimatedTotalResultsCount
    max = googResults.getestimatedTotalresultsCount();
    – max could be more than 10
    – max is an estimate; could be wrong
    • Search only over main index (no GoogleScholar, Froogle, etc..).
  • 12. Geo-Google
  • 13. The world is 3D!
    Users implicitly understand 3D from... the real world!
    Very effective in communicating geospatial information.
    Google Geo APIs
  • 14. Google Maps
  • 15.
  • 16. A Year In Maps API Time
    Wikipedia and Panoramio API Layers
    Find IP-based location through API
    Maps API for Flash AIR Support
    17 new areas covered by StreetView API
    Monetize your mashup with Googlebar (Local Search)
    Mashups work in iPhone browser
    Earth API Launches
    Walking Directions Added to API
    Enable API sites to easily replicate
    Reverse Geocoding API
    Launched SSL support in Maps API Premier
    Maps API for Flash Launches
    MapMaker tiles in API
    Maps API exits beta
    Static Maps API Support Satellite Tiles
    MarkerClusterer Launches
  • 17. A Year in Maps API Time: More Security Location
    August 2008: Launched SSL for Maps API Premier
    <Insert great example of totally secure site here that wants us to broadcast their site to everyone>
  • 18. A Year in Maps API Time: More Layers
    September 2008: Launched GLayer for Wikipedia and Panoramio
  • 19. 19
    A Year In Maps API Time: More Imagery/Data
    September 2008: Static Maps API Supports Satellite, Hybrid, and Terrain AND Geoeye-1 Launches
  • 20. A Year in Maps API Time: More Geocoding
    October 2008: Launched reverse geocoding in the API
  • 21. A Year in Maps API Time: More Flash
    November 2008: Launched AIR Support in Maps API for Flash
  • 22. A Year in Maps API Time: More Data (MapMaker)
    December 2008: Launched MapMaker tiles in the API
    Lahore, Pakistan in Google Maps(circa Where 2.0 2008)
    Lahore, Pakistan in Google Maps(circa Where 2.0 2009)
  • 23. A Year in Maps API Time: More Platforms
    January 2009: Existing mashups work in iPhone browser
    • Static Maps API (All Platforms)
    • 24. JavaScript Maps API (iPhone)
    • 25. MapView for Android applications
    • 26. Apple Announces Launch of iPhone SDK 3.0 with MapKit
  • 27. Example
  • 28.
    Google-Maps-API Developer Forum:
    Maps API blog:
    Mike William’s tutorials:
    Google Maps Resources
  • 29. Google Earth API
  • 30.
  • 31. 1. Search panel - Use this to find places and directions and manage search results. Google Earth EC may display additional tabs here.
    2. Overview map - Use this for an additional perspective of the Earth.
    3. Hide/Show sidebar - Click this to conceal or the display the side bar (Search, Places and Layers
    4. Placemark - Click this to add a placemark for a location.
    5. Polygon - Click this to add a polygon.
    6. Path - Click this to add a path (line or lines).
    7. Image Overlay - Click this to add an image overlay on the Earth.
  • 32. 8. Measure - Click this to measure a distance or area size.
    9. Email - Click this to email a view or image.
    10. Print - Click this to print the current view of the Earth.
    11. Show in Google Maps - Click this to show the current view in Google Maps in your web browser
    12. Navigation controls - Use these to tilt, zoom and move around your viewpoint (see below).
    13. Layers panel - Use this to display points of interest.
    14. Places panel - Use this to locate, save, organize and revisit placemarks.
  • 33. 15. 3D Viewer - View the globe and its terrain in this window.
    16. Status bar - View coordinate, elevation and imagery streaming status here.
  • 34. View an image of your home, school or any place on Earth - Click Fly To. Enter the location in the
    Go on a tour of the world
    Get driving directions from one place to another and fly (follow) the route - See Getting Directions
    View other cool locations and features created by other Google Earth users - In the Layers panel.
    Go Through Streets, See live show.
    What I can do with Google Earth ?!
  • 35. Watch This !!
    What about streets ?!
  • 36. Google geo products aim to utilize the effectiveness of 3D
    The world is 3D!
  • 37. Building Maker - create 3D
    SketchUp - refine 3D
    3D warehouse - store 3D
    Earth - present 3D
    Google API for 3D
  • 38. Building Maker
    3D warehouse
    Geo 3D Pipeline
  • 39. Google AJAX Search API
  • 40. function OnLoad() {
    var sc = new GSearchControl();
    sc.addSearcher(new GlocalSearch());
    sc.addSearcher(new GwebSearch());
    sc.addSearcher(new GvideoSearch());
    sc.addSearcher(new GblogSearch());
    sc.execute(“Seattle Mariners”);
    <body onload=“OnLoad()”>
    <div id=“searchContainer”/>
    “Hello World”
  • 41. Architecture Block Diagram
  • 42. Example
  • 43. Google Wave
  • 44. Wave is collaboration on:
    documents, processes, meetings
    learning, research, projects
    photo albums, party planning, community groups, hobbies
    What is Google Wave?
  • 45. Wave is communication that streamlines your collaboration.
    Wave is live and real-time.
    Simply, It’s Facebook + MediaFire + Yahoo Messenger + Elearning.
  • 46. What is rich content?
    Any external content added to a wave.
    photos, music, video
    documents, diagrams, charts, tables
    custom file types: text, xml, csv
  • 47. With rich content, users want to ...
    import it
    view it
    play it
    share it
    edit it
    convert it
    export it
    publish it
    synchronize it
    and more...
  • 48. Google Analytics Web Interface
  • 49. Google Analytics Web Interface
  • 50.
  • 51.
  • 52.
  • 53.
  • 54. AdWords API
    AdSense API
    Google Checkout Fast, secure checkout across the Web
    YouTube API
    Google Translate API
    And many more !!
    Other Google APIs
  • 55. Users can write programs and applications to perform functions in each of these five areas:
    Account management – change user preferences such as email address, password and more at the account level.
    Campaign management – manage bids, update creative and other campaign operations
    Reporting – generate reports to integrate directly into local databases
    Traffic estimation – receive traffic estimates for individual keywords
    Keyword generation – generate keywords from a base keyword or a web page
    AdWords API
  • 56.
  • 57. REST == Representational State Transfer
    Client and servers transferring resource representations
    Good for cached and layered systems (like the web)
    In HTTP, this means verbs acting on resource URIs
    How Google Builds API ?!
  • 58. SOAP is language independent
  • 59. WSDL
    Web Services Description Language
    The standard format for describing a web service.
    Expressed in XML, a WSDL definition describes how to access a web service and what operations it will perform.
    This is the most important file (only) to use the API with Perl.
  • 60. SOAP – Simple Object Access Protocol
    SOAP stands for Simple Object Access Protocol
    SOAP is a communication protocol
    SOAP is for communication between applications
    SOAP is a format for sending messages
    SOAP is designed to communicate via Internet
    SOAP is platform independent
    SOAP is based on XML
    SOAP will be developed as a W3C standard
  • 61. Future of Google API
  • 62.
  • 63. Tool to test your API without the need to download it.
    It does not include all the APIs but Google is working on it.
    Can be accessed from
    Google API Explorer
  • 64.
  • 65. Google API Periodic Table
  • 66.
  • 67. Now.. Google may earn more money from me -except Google business APIs- What About earning money from Google ?!
    Google offers many competition for developers to earn money.
    Google supports Open Source Project Development.
  • 68. 1. Google Code Jam
    2. Google Summer of Code.
    3. Google Internships.
    Google Competitions
  • 69. Be closer to Google more than ever !!
    Google Technology User Groups.
    Google Ambassador
    Contact Googlers through the conferences
    (e.g. G-Egypt)