Code Monkey home page Code Monkey logo

adobeanalyticsapiforgas's Introduction

AdobeAnalytics API Controller for Google Apps Script

(日本語は下に書いておきました)

====

This is Adobe Analytics API Controller utility script for Google Apps Script.

Description

This code include some function and runs on Google Apps Script.

Demo

Sorry, I can't prepare demo. but, this is very easy to use. So, please download code and have fun!

Requirement

  • Google Account
  • Adobe Analytics Account(Company)
    • please enable "use API service" roll your Adobe Analytics Account.
  • Adobe Developer Connection Account & create application.
    • if you don't have please create account or application, please see below.
    • please get secretkey & username.

Adobe Developer Connection

Please regist Adobe Developer account & create application

if you can't find organizations, your adobe ID don't added marketing cloud organizations. Please contact account administrator and request Adobe marketing cloud invitation.

Usage

Install

  1. copy "AdobeAnalyticsAPI.gs" code from this github.
  2. please go to Google Apps Script editor and paste it.
  3. set some script property. please set below more detail.
property name value
spreadsheet_path spreadsheet file path.(create new spreadsheet file and copy URL)
Analytics_api_secretkey your application (in Adobe Developer Connection) secret key.
Analytics_api_username your application (in Adobe Developer Connection) user name.
Analytics_reportsuite_id Report Suite ID you want to get the data.
  1. customized myFunction() (please write code that you want to run here.)
  2. run "myFuntion()"

Feature

this code support below funtion.

saveSDR()

get eVar,prop,events data from ReportSuite and save current spreadsheet.

saveEvarsList()

get eVar data from ReportSuite and save current spreadsheet.

savePropsList()

get props data from ReportSuite and save current spreadsheet.

saveEventsList()

get events data from ReportSuite and save current spreadsheet.

saveSegmentsList()

get segments data from your account and save current spreadsheet.

saveSegments()

update segments data from "segments" spreadsheet.

  • if you want create segments from spreadsheet, please fill in below parameter.
    • Name(required)
    • Description(option)
    • reportsuiteID(required)
    • definition(required)
    • tags(option)
    • favorite(option)

ID is not needed. if you run this function, ID is automatic grant from Adobe Analytics.

  • if you want update segments from spreadsheet, you must keep "ID" column.

Licence

MIT

Author

manji6

=== このコードはAdobe AnalyticsのAPIを操作するGoogle Apps Scriptです。

Description

このコードにはGoogle Apps Script上で動くように幾つかの関数が準備されております。

Demo

ごめんなさい、Demo環境は用意出来ていません。 でも使い方は簡単なので、ダウンロードして使ってみてください。

Requirement

  • Google Account(Google Driveが使える)
  • Adobe Analytics Account(Company)
    • 自分のアカウントがAPIサービスを利用できるようになっていること
  • Adobe Developer Connection Account & create application.
    • もしAdobe Developer Connectionのアカウントやアプリケーションを作る場合は、下のリンクを確認してください。
    • アカウントとアプリケーションを作成したら、シークレットキーとユーザーIDをメモしておいてください。

Adobe Developer Connection

Adobe Developer Accountの作成とApplicationの登録をしてください。

  • Create an application
    • 実行する対象となる組織を選択してください。
    • Scopeに "Reportsuite" と "Report" を追加してください。

もし組織が見当たらない場合、あなたのAdobe IDはまだ該当のMarketing Cloud 組織に登録されていない可能性があります。 自社のAdobe Markting Cloud 管理者に連絡し、自分のメールアドレスを招待してもらってください。

Usage

Install

  1. このgithub上にある "AdobeAnalyticsAPI.gs" code をコピーしてください。
  2. Google Apps Script editor に移動し、コピーしたコードを貼り付けてください。
  3. 幾つかのスクリプトプロパティを設定する必要があります。下の内容を参考に設定してください。
property name value
spreadsheet_path 保存するスプレッドシートのパス(新規スプレッドシートを作成してURLをコピー&貼り付け)
Analytics_api_secretkey Adobe Developer's connectionで作った Application の secret key.
Analytics_api_username Adobe Developer's connectionで作った Application の ユーザ名.
Analytics_reportsuite_id データ取得元のレポートスイートID
  1. myFuntion()の中身を実行したい内容に応じてカスタマイズしてください。(下に関数リストを書きました)
  2. myFunction()を実行してください。

Feature

このコードは以下の関数がサポートされております。

saveSDR()

eVar,prop,events データをレポートスイートから取り出してスプレッドシートに保存します。

saveEvarsList()

eVar データをレポートスイートから取り出してスプレッドシートに保存します。

savePropsList()

props データをレポートスイートから取り出してスプレッドシートに保存します。

saveEventsList()

events データをレポートスイートから取り出してスプレッドシートに保存します。

saveSegmentsList()

セグメントデータを自分のアカウントから取り出してスプレッドシートに保存します。

saveSegments()

スプレッドシート上の"segments"シートに記載されている情報を元にセグメントの更新・追加を行います。

  • もしセグメントを新規作成したい場合、当該シートの新規行に対して以下の値を設定してください。
    • Name(required)
    • Description(option)
    • reportsuiteID(required)
    • definition(required)
    • tags(option)
    • favorite(option)

新規作成時にIDは不要です。この関数を実行後、自動的にAdobe AnalyticsがIDを採番します。

  • もしセグメントを アップデート したい場合は必ずIDを含めておいてください。

Licence

MIT

Author

manji6

adobeanalyticsapiforgas's People

Contributors

manji6 avatar

Watchers

James Cloos avatar Subhramanyu Mishra avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.