Google APIs Client Library for JavaScript Alpha; AdMob iOS SDK v5.0.5; DFP API v201111 Released

Google released the Google APIs Client Library for JavaScript in Alpha to provide infrastructure and tools to make it easier for developers to use Google APIs."This compact and efficient client library provides access to all the Google APIs that are listed in the APIs Explorer," blogged Brendan O'Brien. Adding he said the client library is […]

Google APIs Client Library for JavaScriptGoogle released the Google APIs Client Library for JavaScript in Alpha to provide infrastructure and tools to make it easier for developers to use Google APIs.

"This compact and efficient client library provides access to all the Google APIs that are listed in the APIs Explorer," blogged Brendan O'Brien. Adding he said the client library is also flexible, supporting multiple browser environments including Chrome 8+, Firefox 3.5+, Internet Explorer 8+, Safari 4+, and Opera 11+. In addition, the JavaScript client library supports OAuth 2.0 authorization methods."

"While you can use the current library to start writing code, you should use caution when writing production code as library code changes may break your application. Beta will follow soon."

Here is an example:

You can load the client library using the following script tag:

<script src="https://apis.google.com/js/client.js?onload="CALLBACK""></script>

Loading an API and making a request is as easy as executing::

gapi.client.load('API_NAME', 'API_VERSION', CALLBACK);

// Returns a request object which can then be executed.
// METHOD_NAME is only available once CALLBACK runs.

var request = gapi.client.METHOD_NAME(PARAMETERS_OBJECT); 
request.execute(callback);

To try this yourself, sign up in the Google APIs console or refer to the documentation on acquiring and using a developer key in the Google+ API.

To get started, visit the JavaScript Client Library documentation page.

You can use the APIs Explorer to check all the methods available for an API, as well as the parameters for each method. For instance, use the above syntax with the plus.activities.search method of the Google+ API to query activities.

In other Google news, Google Ads developers blog today released AdMob iOS SDK v5.0.5, that added support for additional Rich Media interstitial ad formats for the iPhone and iPad.

"This update will be forward-compatible with all future interstitial formats. Be sure to get this update if your app relies on interstitial ads because after March 1, 2012, interstitial ads will not be supported on older versions of the SDK," revealed Ads developer team.

In addition to improved support for interstitial ads, this release contains two other noteworthy improvements.

"First, we've increased the accuracy of impression tracking for interstitial ads. Secondly, you'll now receive the error message didFailToReceiveWithError: if you make any additional requests (after the initial request) from a single GADInterstitial object," the team stated.

You can download AdMob iOS SDK v5.0.5 here.

Discover AdWords v201109 - CreateAccountService:

Google has also, introduced today the v201111 version of the DoubleClick for Publishers API.

"v201111 includes some highly-requested features such as full support for mobile ad serving, new creative types including templates, video player environment targeting, reporting updates, and suggested ad units," revealed DFP API Team.

A full list of features can be found on the release notes page.

This week, Google Ads developers team had also released an addition to the v201109 version of the API: "account creation." "The CreateAccountService creates AdWords accounts without login emails (corresponding to the new optional-login feature available in the AdWords UI)," blogged AdWords API Team.

  • "The new accounts will be automatically linked to the MCC account used to make the request.
  • Google accounts (and therefore login emails) are not created by this service; as a consequence, these newly created client accounts are only accessible via your MCC account.
  • Unlike v13 Account objects, these Account objects do not contain any address information.
  • The descriptiveName value is not included in the SOAP response, so make sure to record it elsewhere or retrieve it later using the ServicedAccountService.
  • It's not possible to specify billing information using this service.
  • You can pass more than one operation to the service and create multiple accounts with a single call," stated AdWords API team.