Tag Archives: Announcements

Deeper Integration of Search Console in Google Analytics

Google Analytics helps brands optimize their websites and marketing efforts for all sources of traffic, and Search Console is where website owners manage how they appear in Google organic search results. Today, we are introducing the ability to display Search Console metrics alongside Google Analytics metrics, in the same reports, side by side - giving you a full view of how your site shows up and performs in organic search results.

For years, users of both Search Console and Google Analytics have been able to link the two properties (instructions) and see Search Console statistics in Google Analytics, in isolation. But to gain a fuller picture of your website’s performance in organic search, it’s beneficial to see how visitors reached your site and what they did once they got there.

With this update, you’ll be able to see your Search Console metrics and your Google Analytics metrics in the same reports, in parallel. By combining data from both sources at the landing page level, we’re able to show you a full range of Acquisition, Behavior and Conversion metrics for your organic search traffic. This feature out is rolling out over the coming few weeks, so not everyone will see it immediately.


New Search Console reports combine Search Console and Google Analytics metrics

New Insights

The new reports allow you to examine your organic search data end-to-end and discover unique and actionable insights. Your Acquisition metrics from Search Console, such as impressions and average position, are now available in relation to your Behavior and Conversion metrics from Google Analytics, like bounce rate and pages per session.

Below are some new capabilities resulting from this improved integration:
 • Find landing pages that are attracting many users through Google organic search (e.g., high impressions and high click through rate) but where users are not engaging with the website. In this case, you should consider improving your landing pages.

 • Find landing pages that have high site engagement but are not successfully attracting users from Google organic search  (e.g., have low click through rate). In this case, you might benefit from improving titles and descriptions shown in search.

 • Learn which queries are ranking well for each organic landing page.

 • Segment organic performance by device category (desktop, tablet, mobile) in the new Devices report.
 

New Landing Page report showing Search Console and Google Analytics metrics

 

Additional Information 

Each of these new reports will display how your organic search traffic performs. As data is joined at the landing page level, Landing Pages, Countries and Devices will show both Search Console and Google Analytics data, while the Queries report will only show Search Console data for individual queries. The same search queries will display in Google Analytics as you see in Search Console today.

As mentioned in our Search Console Help Center, some data may not be displayed, to protect user privacy. For example, Search Console may not track some infrequent queries, and will not display those that include personal or sensitive information.

Also, while the data is displayed in parallel, not all Google Analytics features are available for Search Console data - including segmentation. Any segment that is applied to the new combined reports will only apply to Google Analytics data. You may also see that clicks from Search Console may differ from total sessions in Google Analytics.

 To experience the new combined reports from Search Console and Google Analytics, make sure your properties are linked, and then navigate to the new section “Search Console”, which should appear under “Acquisition” in the left-hand navigation in Google Analytics.

Posted by Joan Arensman, Product Manager, and Daniel Waisberg, Analytics Advocate

Better insight into your customer interactions with Google Analytics

A few weeks ago, we highlighted how connecting site analytics data with digital marketing campaign data can help companies understand the full customer journey. A deep understanding of customers is essential to running a business today as customers have higher and higher expectations for personalized and relevant experiences from brands.

Site and app analytics data are key sources for developing customer understanding and segmentation as, for many companies, this is where customers interact with the brand most frequently. Analytics and Analytics 360 have existing capabilities to help our customers measure lifetime value and understand user engagement for groups of their customers, but often your data needs to go deeper to help analyze your most important customers. Today, we’d like to announce a brand new capability in user-centric analysis to help address this: User Explorer. With User Explorer, you can now analyze the actions that an anonymous individual has taken on your site or app. These insights can help improve the user experience when people interact with your business online.

 For example, you might want to understand how your top 10 customers interacted with your site or apps. With User Explorer you can get insights into visitors that spent the most with you over a given time frame and analyze each of their journeys on your site over that time period. This analysis surfaces individual interactions that can uncover new opportunities for optimizing their overall experience and path to conversion. In addition, User Explorer opens up new possibilities to help inform your marketing activities. For example, User Explorer can help you identify anonymous individual customers who have not converted recently and help them re-engage with your site using existing marketing channels.

Combine User Explorer with existing user-centric capabilities to help you go deeper and make your data actionable. With the high value users you've identified using the User Explorer, create a Google Analytics "Segment" so that you can apply this group of users across all your reports and understand how this group behaves across your site. Building an audience from these segments allows your business to remarket specifically to these customers. Using our Cohort Analysis report, will also help customers understand core user engagement metrics such as retention are performing for this same segment. When were they acquired and what percentage of them came back the next day? How many purchases does this group make day by day? In our Active User report you can see the number of users in this segment that were active in the last day, the last 7 days, and more to have a clear picture of the size of your customer base and its trend across time.

We hope this feature will help you gain the insight you need to build amazing experiences for your customers. Happy exploring!

Posted by Gene Chan, Google Analytics Team

Android Studio 2.1 supports Android N Developer Preview

Posted by Jamal Eason, Product Manager, Android

With the launch Android N Developer Preview, we wanted to give you an easy and comprehensive way to build, test and validate your apps on the latest release with Android Studio. Built on the speed and feature enhancements of Android Studio 2.0, the stable release of Android Studio 2.1 includes updates to the IDE wizards, build system and Android Emulator so that you can try out new features and APIs of the developer preview including the new Jack compiler and Java 8 language support. In addition to support for the N Developer Preview, Android Studio 2.1 also includes performance improvements to Instant Run which leads to faster edit and deploy build speeds. If you are developing and validating your app with the N Developer Preview or want faster Instant Run speeds, you should download or update on the stable release channel to Android Studio 2.1.

Android Studio 2.1 includes the following new features:

  • N Developer Preview Support: Android Studio 2.1 is the best IDE to test and validate your app with the N Developer Preview. Get the latest versions of the preview SDK, experiment with the new Java 8 support, and gain access to the only official Android Emulator able to run N Developer Preview Emulator System Images to help in your testing.
  • Instant Run: For those of you who enjoyed the fast edit, build and deploy cycle with Android Studio 2.0, Instant Run now can now update incremental changes to your app code significantly faster.

Deeper Dive into the New Features

N Developer Preview

On top of new features and APIs of the N Developer Preview, Android Studio 2.1 release includes support for the new Jack compiler and support for Java 8. With the Jack compiler, lambdas, method references, compile-time type annotations, intersection types and type inference are available on all versions of the Android platform. Default and static methods and repeatable annotations are available on Android N and higher. To use Java 8 language features when developing with the N Developer Preview, you need to use the Jack compiler. The New Project Wizard [File→ New→ Project] generates the correct configurations for projects targeting the N.

Getting started with development is as easy generating a new project or updating a few settings in your existing project. Once you are ready to test, you can create a fresh Android Virtual Device (AVD) and run your app on the N Developer Preview using the new Android Emulator.


N Developer Preview on the new Android Emulator

Instant Run & General Build Performance Improvements

Instant Run and general build speed are now faster with two new features: incremental Java compilation and in-process dex.

In previous versions of Android Studio, a single line of Java code change will cause all the Java sources in the module to be recompiled. Now in Android Studio 2.1, incremental Java compilation is enabled by default to reduce compilation time by compiling only what is needed.

We are also speeding up build times by using in-process dex, which converts class files to dex files within the Gradle daemon process. This avoids the costly processing operation of creating separate dex processes. To use this feature, you will need to increase the amount of memory available to the Gradle daemon to at least 2GB (1 GB is the default). This feature will help speed up both incremental and full builds.

We’d appreciate your feedback as we continue to improve Instant Run and general build performance. We are going to keep working on making build times even faster in coming releases. Click here to learn even more about the build changes.

What's Next

Update

If you are using a previous version of Android Studio, you can check for updates on the Stable channel from the navigation menu (Help → Check for Update [Windows/Linux] , Android Studio → Check for Updates [OS X]). If you need a new copy of Android Studio, you can download it here.

Test and Validate Apps with N Developer Preview

After you update to or download Android Studio 2.1 and you want to test and develop your apps with the N Developer Preview, create a fresh Android Virtual Device (AVD) for the new Android emulator, and check out these additional setup instructions.

We appreciate any feedback on things you like, issues or features you would like to see. Connect with us -- the Android Studio development team -- on our Google+ page or on Twitter.

The Google Play Awards coming to Google I/O

Posted by Purnima Kochikar, Director, Apps and Games Business Development, Google Play

Google Play has seen tremendous growth over the past year, reaching more than 1 billion Android users across 190 countries. As a way to recognize our incredible developer community and highlight some of the best apps and games, we’re kicking off our first-ever Google Play Awards.

The program will showcase five nominees across 10 award categories and feature them in a dedicated collection on Google Play. Nominees were selected by a panel of experts on the Google Play team based on criteria emphasizing app quality, innovation, and having a launch or major update in the last 12 months. The winners of each category will be announced at Google I/O in May.

The full list of categories and nominees are below:

Standout Startup

Apps from new developers that offer a unique experience while achieving strong install growth. And the nominees are...

Dubsmash
Hopper
Musical.ly
Robinhood
Vrse

Standout Indie

Games from indie developers that focus on artistic design, high quality and innovative gameplay. And the nominees are...

Alphabear
Alto’s Adventure
Fast like a Fox
Neko Atsume: Kitty Collector
Prune

Best Families App

Apps or games with family friendly design that encourage creativity and exploration. And the nominees are...

Card Wars - Adventure Time
LEGO Jurassic World™
My Very Hungry Caterpillar
Thinkrolls 2
Toca Nature

Best Use of Material Design

First-class implementation of material design concepts that deliver an immersive and innovative user experience. And the nominees are...

Bring!
Robinhood
The Fabulous
Todoist
Vevo

Best Use of Google Play Game Services

High quality games with several strong GPGS feature implementations. And the nominees are...

Sea Battle 2
Table Tennis Touch
Tapventures
TowerMadness 2
Zombie Highway 2

Early Adopter

Early adopter of a nascent technology or platform, providing a delightful user experience. And the nominees are...

Glide
Mechanic Escape
Minecraft: Story Mode
World Around Me
Zumper

Go Global

Apps or games with great localization and culturalization, or subject matter appeal, across multiple regions. And the nominees are...

Dragon Ball Z Dokkan Battle
Freeletics Bodyweight
Memrise
Musixmatch
Pokémon Shuffle Mobile

Most Innovative

Apps or games offering a highly engaging novelty experience or unique benefit. And the nominees are...

Fast like a Fox
NYT VR
SmartNews
The Fabulous
This War of Mine

Best App

A true representation of beautiful design, intuitive UX and high user appeal, quality and rating. And the nominees are...

BuzzFeed News
Colorfy
Houzz
TuneIn Radio
Yummly

Best Game

Games with strong mechanics, informative tutorial, broad appeal and tasteful design. And the nominees are...

Alphabear
Clash of Kings
Clash Royale
MARVEL Future Fight
Star Wars™: Galaxy of Heroes

Join us live at the ceremony on May 19th at 7:00 pm PDT on stage 7 at Google I/O or via the live stream. You can also track the conversation on Twitter and G+ using the hashtags #io16.

Redesigned Google Analytics mobile app now available for both Android and iOS

Never be more than a “tap” away from your data 


The world doesn’t stop moving when you’re not at your computer. We're making it easier to monitor and share your key Google Analytics data on the go with a new, updated Google Analytics mobile app.

You can now download the new and improved Google Analytics mobile app for Android and iOS. The app works on all modern phones and tablets, in 39 languages and in all countries currently where Google Analytics is available.

Here’s just a few of the highlights about the new app:
  • Easy access to a full overview of your Google Analytics data 
  • See what is happening now with real-time business data 
  •  Go deeper into your reports with segments 
  •  Customize your own mobile dashboard 
  •  Easily share your insights with others 

Digging deeper into the app 

The new Google Analytics mobile app simplifies Google Analytics reports into a small screens format that puts an incredible depth of data at your fingertips.



Want to track a specific key metric that's not there by default? You can now build or modify a report quickly and save it to your mobile dashboard.



Find something interesting? Share it with anyone via email, social, messaging or in any manner supported by your device.



Here's a quick walkthrough to show how the new Google Mobile analytics app looks in action:



Now you can keep up with what is happening with your sites and mobile apps anytime, anywhere. Download the Google Analytics mobile app today on Google Play (Android) or Apple iTunes (iOS).

Note: The app currently supports portrait (upright) orientations on tablets and phones. Landscape support is coming soon.

Join us as we announce the latest Ads and Analytics innovations on May 24th

Tune in live to the Google Performance Summit Keynote on Tuesday, May 24 at 9am PT / 12pm ET to hear the latest Ads and Analytics innovations.


We live in exciting times when technology seems to upend everything as we know, every few years. And nothing has changed consumer behavior and business innovation as much as the mobile phone. People are attached to their phones, tapping and swiping their way through places to go, stuff to buy, and things to do. This presents a tremendous opportunity for marketers to connect with customers in more meaningful, relevant ways. And Google is a key partner for advertisers, providing the media and tools to help you make those connections and measure the results.

To ensure we are building the right products for consumers and businesses all around the world, my team and I make it a priority to regularly visit our ads and analytics customers. Last year, we met with advertisers in India, Japan, China, the UK and Germany, and gained new insights from every country.

For example, in Europe, we learned that universal app campaigns are effective at growing installs across a broad range of app users. Now, advertisers want the ability to reach very specific audiences. In Asia, home to three of the five top smartphone markets, advertisers asked for more control and flexibility on mobile devices for both creatives and bidding. And in every country we visited, we saw customers working hard to integrate data from across their organizations and transform it into actionable insights. Marketers want better data to understand the customer journey across devices, contexts and channels.

We were all grateful for these insights and have been using them to build a whole new generation of Ads and Analytics products. We look forward to sharing many new innovations with you at the Google Performance Summit on Tuesday, May 24, 2016 at 9am PT / 12pm ET.

Register for the livestream here.

Until then, follow us on our +GoogleAds page for sneak previews of what’s to come.

Posted by Sridhar Ramaswamy Senior Vice President, Ads and Commerce

Spotlight: Smarter Marketing with Analytics 360, part of the Google Analytics 360 Suite

On the Google Analytics team, we believe a primary goal of analytics is to make your marketing smarter.  It should help you understand your customer’s journey, gain and share insights, and create an engaging experience for your audience.

But just as your organization can’t achieve these goals in a silo, neither can your website analytics data.  Your customer’s journey includes both their experience with your marketing campaigns as well as their experience on your sites and apps.  So you need complete data, connected from marketing through to site experience, to actually gain insight and deliver a great customer experience.  

Analytics 360, part of the Google Analytics 360 Suite, is proud to provide this type of end-to-end understanding with our existing AdWords integrations. Beginning today, we are now offering this same capability with the DoubleClick Digital Marketing platform.  In addition to our existing integration with DoubleClick Campaign Manager, you can now view user engagement information for users acquired through DoubleClick Bid Manager and DoubleClick Search campaigns directly within Analytics 360.  It’s super easy to connect your Analytics 360 account to DoubleClick Digital Marketing and there’s no implementation work needed (e.g. no site or campaign re-tagging).

With these new capabilities, marketers using Analytics 360 are better able to see the customer journey from when a customer was exposed to their marketing campaigns all the way through to that customer’s eventual purchase on their site (or lack thereof).  User engagement with your site can be analyzed for both users who viewed an ad (view-through) and for users who clicked on an ad (click-through). View-through information is especially important for display, video, and mobile because users often view these ads and then visit the website later rather than clicking directly on the ad.  

Companies like Panasonic are already using our integrations with marketing media to improve their return on investment (ROI) from digital marketing campaigns.  With the Analytics 360 ads integrations, Panasonic was able to aggregate all digital campaign data into one platform to gain insight about their customers.  They then shared these insights back to their media tools to better find engaged audiences and provide those audiences with the right experience at the right moment, driving an ROI increase of 30%

In light of these latest integrations with Google ad technologies, we wanted to take a moment to discuss the two capabilities we enable across all our ads integrations that help you achieve smarter marketing:  1) understanding the customer and their journey and 2) creating relevant experiences for users.


Understanding the customer and their journey

They saw and / or clicked on your ad and arrived on your site.  But who are they?  What happened next?  Did they bounce immediately?  Did they research specific products?  Did they sign up for your newsletter?  What were the users who interacted with your digital marketing doing on your site?  Ads integrations with Analytics 360 can help you answer these questions and more, for example:
  • You are launching a new product and start running display and search advertising campaigns to attract customers.  You find that one campaign has a low conversion rate and you’re considering deprecating it.  But you review your site analytics data for this campaign and find that some specific ad exchanges and certain keywords are driving many new users to your site.  And some of these exchanges and keywords are driving new users who are highly engaged — they view a lot of product detail pages and spend a lot of time on your site. So, instead of shutting down the campaign, you refine the targeting for the ads in this campaign to focus more on the ad exchanges and the keywords that drive engaged new users to your site.  Then, you create a remarketing campaign to bring these engaged new users back to your site for purchase.
  • One of your campaigns drives a lot of click and view-throughs, but has a low conversion rate.  Analysis in Analytics 360 reveals that most users bounce immediately, but a certain segment who click on or view that ad (e.g. women aged 18-35) have a really high conversion rate.  You refine the messaging and creative in your ads, adjust where these ads are served, and bid higher in order to find and attract more of this high-performing audience.
Creating relevant experiences for users
User behavior on your site can tell you a lot about them and what they’re interested in.  Shouldn’t you use that information to inform your marketing strategy? Some examples:
  • You run a shopping site and have users who spend a lot of time looking at an item or even put that item in their cart, but don’t end up purchasing.  At the end of the season, the clothes on your site go on sale.  You create remarketing campaigns to these users who showed interest but never purchased letting them know that the item they were interested in is now on sale.
  • You are a cable company and you’d like to offer your new online streaming HDTV service to existing customers who subscribe to your high speed Internet plan.  You create remarketing ads for customers who have the high speed plan, driving higher lifetime value for these customers.
These are just a few examples of how analytics data can blend with campaign data to create real value for both companies and for their customers. It's a win-win — customers get marketing that is truly relevant to them, and companies put their marketing dollars to work with the customers who are most likely to be interested.  

Visit the Google Analytics 360 Suite Help Center to learn more about our new integrations with DoubleClick Bid Manager and DoubleClick Search.  You can also learn about our existing integrations DoubleClick Campaign Manager and with AdWords.  Stay tuned for more updates from Analytics 360 as we continue to invest in new and exciting capabilities. Happy analyzing!

Introducing Google Tag Manager for Real World Tags

Google Tag Manager is great for easily deploying and organizing all your site and app tags. But what about the complex problem of tags in the real world? Libraries, dentist offices, and college universities are a big mess of file folders with complex tagging systems. (The Dewey Decimal System for example dates all the way back to 1876!) Street artists have to manually spray paint their tags, and retailers have to keep track of tags on their wares. Conservationists and marine biologists tag animals such as sharks in order to fully understand their behaviors. But how to wrangle your universe of real-world items is the question.
The Tag Manager team thought deeply about this issue and decided there had to be a better way to manage the broad spectrum of real world tags. Finding things like folders by numerical sorting in stacks of thousands is simply too difficult. What if one is out of place? That’s why today we’re excited to announce Google Tag Manager for real world tags!

Simply place the patented Google Tag Manager RFID tag on what you want to manage, such as the above LP, and we’ll do the rest.

Feature Overview 
Google Tag Manager for real world tags seeks to automagically inventory, categorize and help manage your real world tags no matter what variety they are. And by using the power of the cloud, the hard work will get done for you!

Inventory
Once placed on the desired item, Google Tag Manager for real world tags will create a record of that item in your Tag Manager dashboard. Now you have a record of this item from your mobile device or workstation, so you can manage it from anywhere in the world.

Automatic Categorization 
We’ll automatically determine what’s going on with your items and scan their contents in real-time. So whether you’re tagging a shark, or just tagging your lunch in the break room refrigerator, our tag management technology will discern what’s being tagged appropriately, and help you easily turn on the set of functions specific to your use case (for example, tracking down your missing leftovers). 

Edit & Create Rules 
You can create rules for your tags without having to even go back to your physical item. For example, are you a street artist? Simply stick one of our RFID stickers on the wall next to your tags, and change the color or style from anywhere in the world through our easy to use interface.

Speaking of sharks, are you a marine biologist? We've got you covered. No longer do you have to manually tag each animal you're tracking one by one. With our new fleet of Google Tag Manager Real World Drones, simply setup a trigger for the animals you're working to protect, and the drones will gently and humanely deploy the necessary tags to all relevant animals:

How to get started ... 
We’ll be releasing Google Tag Manager for real world tags in the coming weeks, and shipping 10,000 physical tags to each registered user of Google Tag Manager to get started. The first release will require you to manually update your tags, but of course you only need to re-tag your items once - after that, it’s smooth sailing.

Happy Tagging!

Posted by the Google Tag Manager Team .
...and yes, April Fools.

Registering OAuth clients for Google Sign-In

Posted by Isabella Chen, Software Engineer, and Laurence Moroney, Developer Advocate

Starting with Google Play services 8.3, we did a major revamp of the Google Sign-In APIs, supporting both client and server auth. Behind the scenes, these APIs use OAuth 2.0 tokens to ensure secure authentication and authorization. To maintain security, we provide tools in the Google Developers Console to register the clients using these tokens.

In this post, we’ll discuss the important task of registering OAuth clients for Google Sign-In, and the tools that we offer to make this as easy as possible.

Here are some scenarios that might apply to you:

  1. Start by creating a project in the Google Developers Console, which registers the client app on your behalf.
  2. If you have a backend server in your project, you’ll need an OAuth client ID for it, too.
  3. And don't forget to register OAuth clients for other test and release versions of your app, too!

In this post, we’ll cover some details on this process and address common pitfalls.

Getting Started - Create a Project in the Google Developers Console.

If you have not used Google Sign-In before, you can start integrating the API into your app by following the ‘Get a configuration file’ steps on this site. You’ll be taken to a setup wizard that will create an OAuth 2.0 client ID as shown in Figure 1.

Figure 1. Configuring your app

Once you’ve specified your app, you’ll be taken to a screen to choose and configure services such as Google Sign-In, Cloud Messaging or Google Analytics that you want your app to be able to use.

Choose Google Sign-In. In order to use it, you’ll need to get the SHA-1 of the signing certificate for your Android app. This can either be a debug or a release certificate, and for the purposes of this blog you’ll look at a debug one, but keep in mind that you’ll need to repeat this process for each package / certificate pair you end up using (described in the last section below).

You can get the debug SHA-1 using the keytool command like this:

keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android

Once you have your SHA-1, enter it as seen in Figure 2.

Figure 2. Enabling Google Sign-in

Now that your project is set up, you can get started with integrating the Sign-In API. But if you need to configure your project to work with a backend server or additional package name / keystores, keep reading the sections below.

Server Config - Ensure your server is registered within the same project.

If you have your own web or cloud server with data for your application, you’ll need OAuth credentials for your backend. Details on doing this can be found in the ID token and server auth code documentation.

Before using these flows, you’ll need to make sure you register your web server correctly in the Google Developers Console. Once there, you’ll be asked to select your project. See Figure 3.

Figure 3. Going directly to a project in the Google Developers Console.

Once you’ve selected your project, press the ‘Continue’ button, and you’ll go directly to the Credentials tab where all credential types are managed. Check the “OAuth 2.0 client IDs” section, and you will see the “Web client” and “Android client for com.my.package.name” that were created for you by the setup wizard. See Figure 4.

Figure 4. The Credentials Tab on the Developers Console - Web server OAuth client info

Take note of the Client ID for for your Web client, you’ll need it for both your app and server as illustrated below. (If you’ve created your project in the past and there’s no OAuth 2.0 client ID with Type “Web application”, then you will need to create one by selecting ‘New Credentials’ -> ‘OAuth client ID’.)

If you use an ID token flow for backend authentication, when you start developing your Android app, request an ID token in your GoogleSignInOptions, supplying the web client ID for your server:

GoogleSignInOptions gso =
    new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
        .requestIdToken(serverClientId)
  .requestEmail()
  .build();

And then on your server, set the same OAuth client ID for your web application to be the audience:

GoogleIdTokenVerifier verifier =
    new GoogleIdTokenVerifier.Builder(transport, jsonFactory)
        .setAudience(Arrays.asList(serverClientId))
        .setIssuer("https://accounts.google.com")
        .build();

Successful verification will allow you to authenticate and issue a session for this newly signed-in user.

Alternatively, if you are using the server auth code flow for backend access to Google APIs, request a server auth code in your GoogleSignInOptions on Android, again supplying the web client ID for your server:

GoogleSignInOptions gso =
    new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
        .requestScopes(new Scope(Scopes.DRIVE_APPFOLDER))
  .requestServerAuthCode(serverClientId)
  .requestEmail()
  .build();

And then on the server, both the OAuth client ID and the “Client secret” will be useful. The server SDK from Google can directly consume a downloaded JSON configuration file. You can click the download icon to download the JSON file (as shown in Figure 4) and use below code to construct GoogleClientSecrets:

GoogleClientSecrets clientSecrets =
    GoogleClientSecrets.load(
        JacksonFactory.getDefaultInstance(),
        new FileReader(PATH_TO_CLIENT_SECRET_FILE));

At which point you can access authenticated Google APIs on behalf of the signed-in user. Note that the “client secret” is really a secret that you should never reveal in your Android client.

Handling multiple environments - Registering other client IDs for your project.

Note that it can be common for apps to have different package names as well as different certificates (and thus SHA-1 keys) for various types of environment (such for different developers or test and release environments). Google uses your package name together with SHA-1 signing-certificate fingerprint to uniquely identify your Android application. It’s important to register every package name + SHA1 fingerprint pair in Google Developers Console.

For example, to register the release version of this package, you can do so by selecting ‘New Credentials’ -> ‘OAuth client ID’, shown in Figure 5 below, and then following the steps to add the package name and production keystore SHA-1.

Figure 5. The Credentials Tab on the Developers Console - create additional OAuth client ID

Now you are ready to handle the different environments where your app might be running and release to your users!

Hopefully, this has been helpful to you in understanding how to register for OAuth keys to keep your apps and servers secure. For more information, check out the Google Developers homepage for Identity.

Announcing the 2016 Android Experiments I/O Challenge!

Posted by Roman Nurik, Senior Interactive Designer, and Richard The, Google Creative Lab

Last summer we launched Android Experiments: a showcase of creative Android projects, and an open invitation for all developers to submit their own experiments to the gallery. So far we’ve seen some amazing work from the developer community - from live wallpaper, to watch faces, to interesting hacks of the IOIO board - and we want to see more.

Today we announce the Android Experiments I/O Challenge: a chance for your experiment (and you) to go to I/O 2016!

From now through April 13, you can enter by submitting your experiments to the gallery. The top three winners of the contest will receive a trip to this year’s Google I/O, and the five runner-ups will get the new Nexus 6P.

So what makes a good Android Experiment? It’s a project that utilizes the unique capabilities of the Android platform in an innovative way. Here are a few suggestions:

  • Creative uses of Android’s new or distinctive features
  • Projects that explore how we interact with our devices, in small and big ways
  • Unique visual aesthetics
  • Open source projects that inspire other developers
  • Surprise us - we want to see the amazing things you’re cooking up

All projects on Android Experiments are open source. If you’re not sure where to start take a look on the site gallery, dig in and get inspired.

We can’t wait to see how you’re combining code and creativity! Enter on androidexperiments.com/challenge today.