Slide 1

Slide 1 text

App Indexing API shaunkawano

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

http://search-codelabs.appspot.com/codelabs/app-indexing#1

Slide 4

Slide 4 text

App Indexing API

Slide 5

Slide 5 text

App Indexing API

Slide 6

Slide 6 text

• Part of Google Play Services App Indexing API

Slide 7

Slide 7 text

• Part of Google Play Services • Publishing deep links from App App Indexing API

Slide 8

Slide 8 text

• Part of Google Play Services • Publishing deep links from App • Easy to implement App Indexing API

Slide 9

Slide 9 text

• Part of Google Play Services • Publishing deep links from App • Easy to implement App Indexing API

Slide 10

Slide 10 text

Getting Started

Slide 11

Slide 11 text

AndroidManifest & Build.grade Getting Started

Slide 12

Slide 12 text

AndroidManifest / build.grade ... // build.gradle compile ‘com.google.android.gms:play-services-appindexing:8.3.0' https://developers.google.com/app-indexing/android/publish?hl=en

Slide 13

Slide 13 text

Activities Call API on

Slide 14

Slide 14 text

Activity#onCreate() private GoogleApiClient mClient; @Override protected void onCreate(Bundle savedInstanceState) { ... mClient = new GoogleApiClient.Builder(this).addApi(AppIndex.API).build(); ... } https://developers.google.com/app-indexing/android/publish?hl=en

Slide 15

Slide 15 text

Activity#onStart() @Override public void onStart() { super.onStart(); mClient.connect(); String title = "App Indexing API Title"; Action viewAction = Action.newAction(Action.TYPE_VIEW, title, WEB_URL, APP_URI); AppIndex.AppIndexApi.start(mClient, viewAction); ... } https://developers.google.com/app-indexing/android/publish?hl=en

Slide 16

Slide 16 text

Activity#onStop() @Override public void onStop() { ... String title = "App Indexing API Title"; Action viewAction = Action.newAction(Action.TYPE_VIEW, title, WEB_URL, APP_URI); AppIndex.AppIndexApi.end(mClient, viewAction); mClient.disconnect(); ... super.onStop(); } https://developers.google.com/app-indexing/android/publish?hl=en

Slide 17

Slide 17 text

Fragments Call API on

Slide 18

Slide 18 text

Fragments “Typically, you'll set this up within the onStart() and onStop() methods of your app, but it's not strictly necessary, such as when sending fragments or other scrolling-type UIs.” https://developers.google.com/app-indexing/android/publish?hl=en

Slide 19

Slide 19 text

Fragments “Typically, you'll set this up within the onStart() and onStop() methods of your app, but it's not strictly necessary, such as when sending fragments or other scrolling-type UIs.” https://developers.google.com/app-indexing/android/publish?hl=en

Slide 20

Slide 20 text

Tips

Slide 21

Slide 21 text

Tips

Slide 22

Slide 22 text

Tips • Make sure you pass NON-NULL values

Slide 23

Slide 23 text

Tips • Make sure you pass NON-NULL values • Make sure you call mClient.connect();

Slide 24

Slide 24 text

Activity#onStart() @Override public void onStart() { super.onStart(); mClient.connect(); String title = "App Indexing API Title"; Action viewAction = Action.newAction(Action.TYPE_VIEW, title, WEB_URL, APP_URI); AppIndex.AppIndexApi.start(mClient, viewAction); ... } https://developers.google.com/app-indexing/android/publish?hl=en

Slide 25

Slide 25 text

Tips • Make sure you pass NON-NULL values • Make sure you call mClient.connect();

Slide 26

Slide 26 text

Tips • Make sure you pass NON-NULL values • Make sure you call mClient.connect(); • Make sure you implement it! (if applicable)

Slide 27

Slide 27 text

http://searchengineland.com/google-adds-additional-ranking-boost-for-using-app-indexing-api-232018

Slide 28

Slide 28 text

http://searchengineland.com/google-adds-additional-ranking-boost-for-using-app-indexing-api-232018

Slide 29

Slide 29 text

http://searchengineland.com/google-adds-additional-ranking-boost-for-using-app-indexing-api-232018

Slide 30

Slide 30 text

http://searchengineland.com/google-adds-additional-ranking-boost-for-using-app-indexing-api-232018

Slide 31

Slide 31 text

Notion of 
 “Non-Zero”

Slide 32

Slide 32 text

App Indexing API shaunkawano

Slide 33

Slide 33 text

App Indexing API shaunkawano fin.