Tag Archives: Best Practices

Actions On Google Best Practices Video Series

Posted by Ido Green (@greenido), Developer Advocate

We recently launched a new YouTube video series focused on teaching developers best practices for the Actions on Google platform.

Apps for the Google Assistant are the gateway for users to engage with your services through Google Home, Android phones, iPhones, and in the future, through every experience where the Google Assistant is available.

The goal of the video series is to show you how to use the Google Assistant platform in the best way. You will learn more from Ido Green, Developer Advocate at Google, who will touch on topics like:

Tune in to learn how to build, or improve your apps for the Google Assistant so your users can benefit from more meaningful, interactive experiences.

And if you'd like to keep the conversation going, please join our developer community at: https://g.co/actionsdev or @actionsongoogle

See you!

Announcing Architecture Components 1.0 Stable

Posted by Lukas Bergstrom, Product Manager, Android Developer Frameworks Team

Android runs on billions of devices, from high-end phones to airplane seatbacks. The Android OS manages resources aggressively to perform well on this huge range of devices, and sometimes that can make building robust apps complicated. To make it easier, we launched a preview of Architecture Components at Google I/O to provide guidance on app architecture, with libraries for common tasks like lifecycle management and data persistence. Together, these foundational components make it possible to write modular apps with less boilerplate code, so developers can focus on innovating instead of reinventing the wheel - and we hope to keep building on this foundation in the future.

Today we're happy to announce that the Room and Lifecycle Architecture Components libraries have reached 1.0 stable. These APIs are ready for production apps and libraries, and are our recommendation for developers looking for help with app architecture and local storage (although they're only recommended, not required.) Lifecycles are now also integrated with the Support Library, so you can use them with standard classes like AppCompatActivity.

Although we're declaring them stable today, the beta components are already used in apps that together, have billions of installs. Top developers, like Zappos, have been able to spend more time on what's important thanks to Architecture Components:

Prior to the release of Android Architecture Components we had our own ViewModel implementation. We used Loaders and Dependency Injection to persist our ViewModel through config changes. We recently switched to the Architecture Components ViewModel implementation and all that boilerplate went away. We found that we were able to spend more time on design, business logic and testing, and less on writing boilerplate or worrying about Android lifecycle issues.

We've also started to use LiveData which hooks directly into the Activity lifecycle. We use it to retrieve and display network data and no longer have to concern ourselves with ​network call subscription management. - David Henry, Android Software Engineer, Zappos

Architecture Components provide a simple, flexible and practical approach that frees developers from some common problems so they can focus on building great experiences. This is based on core building blocks tied together by guidance on app architecture.

Lifecycles

Every Android developer has to deal with the operating system starting, stopping and destroying their Activities. That means managing the state of components - such as observables used to update UI - as you move through the lifecycle. Lifecycles enables the creation of lifecycle-aware components that manage their own lifecycles, reducing the possibility of leaks or crashes. The Lifecycle library is the foundation for other Architecture Components like LiveData.

LiveData

LiveData is a lifecycle-aware observable that holds data and provides updates. Your UI code subscribes to changes and provides LiveData a reference to its Lifecycle. Because LiveData is lifecycle-aware, it provides updates when its Lifecycle is started or resumed, but stops providing updates when the LifecycleOwner is destroyed. LiveData is a simple way to build reactive UIs that are safer and more performant.

ViewModel

ViewModel separates ownership of view data and logic from lifecycle-bound entities like Activities and Fragments. A ViewModel is retained until its associated Activity or Fragment is disposed of forever - that means view data survives events like a Fragment being recreated due to rotation. ViewModels not only eliminate common lifecycle issues, they help build UIs that are more modular and easier to test.

Room

Nearly all apps need to store data locally. While Android has bundled SQLite with the platform since version 1, using it directly can be painful. Room is a simple object-mapping layer that provides the full power of SQlite with less boilerplate. Features like compile-time query verification and built-in migration make it easier to build a robust persistence layer, while integration with LiveData lets Room provide database-backed, lifecycle-aware observables. Room blends of simplicity, power and robustness for managing local storage, and we hope you give it a try.

Guide to App Architecture and more

Last but not least, we created a Guide to App Architecture that provides core principles applicable to all developers, and specific guidance on using Architecture Components together. Because we've heard from you that clear and consistent guidance is important, today we're updating developer documentation to point to Architecture Components where appropriate. We also have a rich set of videos, codelabs and sample apps available at the Architecture Components site, with more to come.

Watch this space

Although the first set of Architecture Components is now stable, we know there's more work to do. Over the last few months, we've listened to your feedback and made improvements. We also recently launched a new Architecture Component, PagedList, to alpha, in response to your feedback that handling large datasets with RecyclerView is too difficult. This is just the beginning - we have more major components under development that we're looking to announce in the upcoming months.

Our hope with Architecture Components is to free developers to focus on providing unique new experiences for mobile devices. We're glad we can finally announce them as stable for production use. We'd like to thank the community, which has given such great feedback along the way, and we look forward to continuing the discussion in the comments of this post. Finally, for those of you who've been waiting for this stable launch, get started today.

Get the updated Playbook app for news and tips to help you grow your business on Google Play

Posted by Dom Elliott, Developer Marketing, Google Play

Get the latest Playbook app for developers to learn about features, best practices, and strategies to succeed on Google Play. Discover insights from Google to help you develop and launch your app, engage and grow your audience, and earn more revenue. With localized content, the Playbook app for developers is available in 14 languages (English, Bahasa Indonesia, Deutsch, español (Latinoamérica), le français, português do Brasil, ภาษาไทย, tiếng Việt, Türk, русский язы́к, 한국어, 中文 (简体), 中文 (繁體), and 日本語).

Thank you to all the beta testers who provided valuable feedback (keep it coming!). With the latest update, we have simplified the user experience, improved content discovery, and automated notifications for different types of content (which are customizable) to help you stay up to date, among other improvements. You can also add tags to the home screen based on your interests to easily see posts and videos that are relevant to you.

To get started, install the updated Playbook app for developers and then:

  • Follow the onboarding and sign in with your Google account.
  • Read the latest posts on the home screen and add tags from the settings screen which match your interests..
  • Explore in-depth best practices written by Google in our guide, and see the top articles for grouped by your objectives: develop, launch, engage, grow, and earn.
  • Discover the latest posts and videos from Google and experts across the industry and filter by interest tags.
  • Save content so you can view posts and videos on your home screen and access relevant content more quickly.
How useful did you find this blogpost?

Across the U.S., businesses are using the web to grow


When their 10-year-old daughter asked if she could raise alpacas on the family ranch, Jim and Kelley Hobart figured, “Why not?” They welcomed the animals onto their land and soon thereafter discovered the many benefits of alpaca wool. It was soft, durable, warm and eco-friendly—it had to be shared with the rest of the world. To the delight of their daughter and alpaca lovers everywhere, the Hobarts launched Alpaca Direct in 2005, producing quality yarns and apparel made from the unique fiber.



Jim and Kelley never imagined that a curious request from their youngest daughter would transform into a full-fledged business, or that a small storefront in Hayden, ID, would become a popular travel destination for knitting enthusiasts worldwide. Yet today Alpaca Direct is at the heart of a vibrant and global knitting community. With the help of the web, they’ve brought the warmth of alpaca wool to more than 100,000 customers across 30 countries. As Kelley says, “With Google tools, we can do that, and [customers] can be part of our community.”


In 2016, Google’s search and advertising tools helped provide $222 billion of economic activity for 1.5 million businesses, website publishers, and nonprofits across the U.S. Our 2016 Economic Impact Report explores that economic impact state-by-state and the local businesses that are helping to drive it.   



While working on a small leather goods line in New York City, Tanya Menendez and Matthew Burnett realized how difficult it was to find local manufacturers. In an effort to democratize that access, the two started Maker’s Row, an online marketplace that helps small businesses find American factories to make their products. They use AdWords to both establish factory partnerships and find new customers, and YouTube to, as Tanya describes, “put a face behind the products that are made in the United States.” In five years, the company has helped 120,000 small businesses source and create products in 11,000 American factories.






After serving as a U.S. Marine for six years, Nick Baucom founded a company, Two Marines Moving, in Alexandria, Virginia. His goal was to keep his fellow veterans gainfully employed, while giving local residents a moving option they could trust. Today, Two Marines Moving employs more than 100 veterans. They use Search and AdWords not only to find customers,  but also to recruit employees. Nick has opened a second location in Florida and hopes to create job opportunities for 500 veterans in the next five years, vowing that “veterans will always have a home here.”





Across the U.S., businesses large and small are using the web to find their customers, grow, and make an impact. We’re proud to be part of their stories.


Posted by Claire Mudd, Director, Americas Small Business Marketing

Academy for Ads: On-The-Go Training for Google’s Ad Products

Becoming a digital advertising expert takes time, and it’s important to get off to a good start. Only 50 percent of marketers say they’re confident in their knowledge of digital advertising,1 despite the wide range of educational materials available – sometimes “more” isn’t the same as “better.” You’ve told us that you want quick, bite-sized training in more interactive formats. And we heard you.

We’re pleased to announce Academy for Ads, a new digital training platform designed to help you learn how to use Google’s ad products in a mobile-first world. We built Academy for Ads to promote learning on-the-go, whether you’re on a laptop, a desktop, or a mobile device.

Grow your Google product know-how
Guided by input from our team of product experts, Academy for Ads courses cover the topics that matter most to Google advertisers – from AdWords basics and the essentials of campaign management to bid strategies, reporting, optimization, and more ways to successfully advertise with Google.



Learning paths, Assessments, and Achievements
We’ve organized the courses into “Learning paths” that you can walk through at your own pace. At the end of each path, take an Assessment and earn an Achievement to show that you know your stuff. Earning an Achievement for AdWords helps prepare you to take the AdWords Certification exam in Google Partners, or try deeper education offerings such as AdWords Academy.


A few example Learning paths:
  • Digital concepts: Learn the essentials of online ads, including third-party ad-serving, programmatic buying, remarketing, and more.
  • Get started with AdWords: Learn the basics of AdWords and prepare for the AdWords Certification exam offered by Google Partners.
  • Get started with AdWords Display: Learn how you can show ads to your online audience via the Google Display Network.
  • Get started with DoubleClick Bid Manager*: Learn your way around Bid Manager, what it offers and how you can use it to manage your online marketing campaigns.
*Only accessible to DoubleClick Bid Manager clients

Academy for Ads also offers training for DoubleClick clients, with Learning paths covering Bid Manager and Ad Exchange – and more to come.

Get started
If you already use Google Partners, you can sign in through the Partners portal at g.co/learnwithpartners — or, you can go directly to g.co/AcademyforAds to sign up and start sampling courses and Learning paths. We’re constantly adding more content, so if you like what you learn, keep coming back for more.



1. 6 Fundamentals to Managing Digital Marketing in 2015, TFM Insights (January 2015)

Academy for Ads: On-The-Go Training for Google’s Ad Products

Becoming a digital advertising expert takes time, and it’s important to get off to a good start. Only 50 percent of marketers say they’re confident in their knowledge of digital advertising,1 despite the wide range of educational materials available – sometimes “more” isn’t the same as “better.” You’ve told us that you want quick, bite-sized training in more interactive formats. And we heard you.

We’re pleased to announce Academy for Ads, a new digital training platform designed to help you learn how to use Google’s ad products in a mobile-first world. We built Academy for Ads to promote learning on-the-go, whether you’re on a laptop, a desktop, or a mobile device.

Grow your Google product know-how
Guided by input from our team of product experts, Academy for Ads courses cover the topics that matter most to Google advertisers – from AdWords basics and the essentials of campaign management to bid strategies, reporting, optimization, and more ways to successfully advertise with Google.



Learning paths, Assessments, and Achievements
We’ve organized the courses into “Learning paths” that you can walk through at your own pace. At the end of each path, take an Assessment and earn an Achievement to show that you know your stuff. Earning an Achievement for AdWords helps prepare you to take the AdWords Certification exam in Google Partners, or try deeper education offerings such as AdWords Academy.


A few example Learning paths:
  • Digital concepts: Learn the essentials of online ads, including third-party ad-serving, programmatic buying, remarketing, and more.
  • Get started with AdWords: Learn the basics of AdWords and prepare for the AdWords Certification exam offered by Google Partners.
  • Get started with AdWords Display: Learn how you can show ads to your online audience via the Google Display Network.
Academy for Ads also offers training for DoubleClick clients, with Learning paths covering Bid Manager and Ad Exchange – and more to come.

Get started
If you already use Google Partners, you can sign in through the Partners portal at g.co/learnwithpartners — or, you can go directly to g.co/AcademyforAds to sign up and start sampling courses and Learning paths. We’re constantly adding more content, so if you like what you learn, keep coming back for more.



1. 6 Fundamentals to Managing Digital Marketing in 2015, TFM Insights (January 2015)

Tailor your ads with dynamic remarketing – Google Best Practices


If you think people make purchase decisions quickly, think again. Today’s consumers visit websites at least 6 times, on average, in the purchase process.1 And for those who abandon a shopping cart, 75% say they intend on returning to a company’s website to make a purchase.2

We’ve created a new best practices guide, Tailor Your Ads with Dynamic Remarketing, to help advertisers win those crucial “ready-to-buy” moments with dynamic remarketing and relevant ads. As business data feeds are crucial to dynamic remarketing campaigns, this guide focuses on how to create and optimize your feeds. It covers topics such as:
  • Setting up high-quality business data feeds 
  • Providing complete product data 
  • Keeping your business data feed fresh 
  • Activating dynamic remarketing ads 
Check out these dynamic remarketing best practices to drive more relevant ads and improved performance.

Want to stay on top of even more Best Practices? Sign up to receive our monthly newsletter.



1. Source: Google/Nielsen Study: Mobile Path to Purchase: Five Key Findings, November 2013 
2. Source: BI Intelligence Study: Shopping Cart Abandonment Report, March 2015.

Source: Inside AdWords