Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
BigQuery Data Transfer Service for Google Play を使ってみた / How to use BigQuery Data Transfer Service for Google Play
wiroha
December 13, 2018
Technology
1
650
BigQuery Data Transfer Service for Google Play を使ってみた / How to use BigQuery Data Transfer Service for Google Play
2018/12/13(木) shibuya.apk #30
https://shibuya-apk.connpass.com/event/109729/
での発表資料です
wiroha
December 13, 2018
Tweet
Share
More Decks by wiroha
See All by wiroha
DroidKaigi 2021 触って学ぶAccessibility
wiroha
3
930
Until I meet Go
wiroha
0
120
Until one woman becomes an engineer
wiroha
1
290
Firebase In-App Messagingを 導入してみた
wiroha
0
530
iOS, Androidアプリを譲渡した話 / Story about transferring iOS and Android application
wiroha
0
120
Other Decks in Technology
See All in Technology
#awsbasics [LT] サーバレスECにおける Step Functions の使い方
miu_crescent
0
830
Istioを活用したセキュアなマイクロサービスの実現/Secure Microservices with Istio
ido_kara_deru
3
380
VS Code Meetup #21 - もう一度知りたい基礎編 - ファイル操作、コーディングの基本編
74th
0
180
DeepDive into Modern Development with AWS
mokocm
1
330
Goで実装するブランドネットワークとの接続ポイント
pongzu
2
260
ログ集約基盤をCloudWatchからOpenSearchに変えてみた
yuhta28
0
130
セキュアなTerraformの使い方 ~ 機密情報をコードに含めず環境構築するにはどうしたらいいの?
harukasakihara
8
1.3k
Settlement simulation testing to ensure correct settlement processing
applepine1125
2
980
GCCP Creator @ COSCUP 2022
line_developers_tw
PRO
0
1.4k
AWS CLI でやってみる ~ AWS Hands-on for Beginners ECS ハンズオン ~
kentosuzuki
1
340
2022 COSCUP - GKE Backend Cluster 除雷分享
brentchang
0
120
DMMプラットフォーム ゼロから始めるKubernetes運用 課題と改善
pospome
0
390
Featured
See All Featured
The MySQL Ecosystem @ GitHub 2015
samlambert
239
11k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
226
15k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
14
3.8k
Building Applications with DynamoDB
mza
84
4.8k
GraphQLの誤解/rethinking-graphql
sonatard
31
6.8k
Gamification - CAS2011
davidbonilla
75
3.9k
Building Better People: How to give real-time feedback that sticks.
wjessup
344
17k
What the flash - Photography Introduction
edds
62
10k
The Art of Programming - Codeland 2020
erikaheidi
32
11k
Pencils Down: Stop Designing & Start Developing
hursman
113
9.8k
Raft: Consensus for Rubyists
vanstee
127
5.5k
Fontdeck: Realign not Redesign
paulrobertlloyd
73
4.1k
Transcript
BigQuery Data Transfer Service for Google Play を使ってみた 2018/12/13 @wiroha
自己紹介 • @wiroha • 株式会社メルカリ Androidエンジニア ◦ テクノロジーで街なかの ”移動” を変える「メルチャリ」の舞台裏
https://tech.mercari.com/entry/2018/12/09/000000 ◦ 今週書いた技術紹介記事です • DroidKaigiスタッフ
BigQuery Data Transfer Service for Google Play 知ってる人?使ってる人?
BigQuery Data Transfer Serviceとは • Google の SaaS アプリケーションから Google
BigQuery へ、データを定期的に自動 転送するサービス • 各最新データをBigQueryに簡単に集約でき、詳細な分析が容易になった • 2017年3月のCloud Nextで発表、11月に正式版リリース ◦ https://cloudplatform-jp.googleblog.com/2017/11/announcing-bigquery-data-transfer-service- general-availability.html • 初期は広告系の転送がメインで始まった ◦ AdWords ◦ DoubleClick Campaign Manager ◦ DoubleClick for Publishers ◦ YouTube Content ◦ Channel Owner Reports
for Google Play • 2018年7月頃から、Google Playも転送に対応しました ◦ 正式な発表が無い ◦ 一番古くに話題に出ているのが
このtweet • 各種レポートデータを転送可能 • 2018年12月現在ベータ版 • document ◦ https://cloud.google.com/bigquery/docs/ play-transfer
転送できるレポート • 対象:詳細レポート、集計レポート • これまでもgsutilコマンドを使えば、定期的に Google Cloud Strage上から取得するcronを作る ことはできた •
コードを1行も書かなくて良くなったのが メリット。メンテも不要なので楽。
設定画面 わかる名前をつける datasetをあらかじめ作 成しておいて選択 レポートのあるbucket, play console上で確認可 dataset内でユニークに するためのsuffix これだけ!
“Google Play”を選ぶ
転送された! • 転送後のテーブル・ビューの名前 ◦ https://cloud.google.com/bigquery/docs/play-tra nsformation 先ほどの転送設定内容
Queryを叩いてみる • SELECT * FROM `xxxxxx.google_playstore_imports.p_Installs_app_version_googleplay` • 実行結果 • 出た
少しだけ困ったところ • package nameで絞って転送が出来ない ◦ そのdeveloperアカウントのアプリの情報はすべて転送されてしまう ◦ queryで絞るのが手間 • 最新の1件の転送が必ず失敗する
◦ 恐らくタイミングの問題で、取得時間の調整などで直ると思う… ◦ 深く追ってないのですが、もし解決策知ってる人いたら教えてください
Thanks! 気になる点などあれば、懇親会で声かけてください!