Quantcast
Channel: Node.jsタグが付けられた新着記事 - Qiita
Viewing all articles
Browse latest Browse all 8920

Twitter広告APIを利用してキャンペーンを作ってみる その4~Tiwtter広告APIのAPI申請編~

$
0
0

経緯

私が所属している会社では待ラノという小説投稿サイトを運営しています。
待ラノではオススメ小説のランキング上位5作を定期的にTwitterの公式アカウントで紹介しています。
紹介された小説をTwitter広告のキャンペーンを利用してプロモーションをしようってなりました。

そもそもTwitter広告のキャンペーンって何?

Twitter広告のキャンペーンですが、簡単いうと1日にかける予算や期間内にかける総予算を指定して、Twitterに広告を出す機能です。

Twitter広告APIでキャンペーンを作る理由

1つのキャンペーンで複数のツイートをプロモーションする場合、1日にかける予算を一気に消化されてしまいます。
しかもどのツイートにどれだけ予算が消化されているかがわかりません。
そのため、1つのツイートに1キャンペーンを紐付けることで消化される予算の見える化を行うことになりました。

ただ手動でTwitterの広告コンソールから、1ツイートに1キャンペーンを毎回作ることになると結構手間です。
というわけで、Twitter広告APIを利用して動的にキャンペーンを作成することになりました。

Twitter広告APIでキャンペーンを作成するためには

以下の手順が必要です。

  1. Tiwtterアカウントを作成する(省略)
  2. Tiwtterアカウントにメールアドレスと電話番号を設定する(省略)
  3. TiwtterAPIの利用申請をする
  4. TiwtterAPIのAPIキーとトークンを取得する
  5. TiwtterAPIを利用してツイートをする
  6. Tiwtter広告APIの利用申請をする ←イマココ
  7. Tiwtter広告APIでを利用してツイートを使ったキャンペーンを作る

今回は6の【Tiwtter広告APIの利用申請をする】について説明していきます。
本稿は、その1その2が完了している前提で記載されております。

1.Twitter広告APIガイドのページ(英語)にアクセス

まずはTwitterにログインした状態で、Twitter広告APIガイドへアクセスします。
注:日本語のTwitter広告APIガイドは存在しておりますが、申請フォームがバグっているせいでチェックボックス等が正しく押せない状態になっておりますので、こちらの記事同様に英語ページで申請を行ってください。

2.「Apply for Ads API Access」ボタンをクリックします。

スクリーンショット 2020-09-18 14.44.11.png

3.英語で申請フォームに回答していきます。

まずは「基本情報」です。

以下の項目を入力していきます。

  • Company(企業名)」
  • Country(国)」
  • State/Province(都道府県)」
  • City(市)」

スクリーンショット 2020-09-18 14.52.34.png


Company Handle(Twitterの企業アカウントID)」
スクリーンショット 2020-09-18 14.58.57.png


App ID(アプリID)」
スクリーンショット 2020-09-18 14.59.08.png

その2で作成したアプリのIDを取得します。
developer.twitter.com/en/apps/のリンクをクリックしてください。
そうすると開発ポータルに遷移するので、対象のアプリの「設定(歯車)」ボタンをクリックしてください。
スクリーンショット 2020-09-18 15.04.49.png

「アプリID」が表示されますので、先程の入力フォームに記載してください。
スクリーンショット 2020-09-18 15.05.09.png


I acknowledge that the provided app will be capped at 5 tokens for the Developer phase.(指定されたアプリは開発者フェーズについてトークンが5つまでに制限されることに同意します。)」

こちらのラジオボタンをチェックしてください。
スクリーンショット 2020-09-18 14.59.25.png


次に「代表連絡先」です。
以下の項目を入力していきます。

  • First Name(名)」
  • Last Name(姓)」
  • Title(役職)」
  • Job Function(職務)」
  • Job Level(職務レベル)」
  • Email(メールアドレス)」
  • Phone(電話番号)」

スクリーンショット 2020-09-18 15.28.30.png


次に「Twitter広告APIの利用目的」です。

Of the following, which best describes your business?(次のうち、御社の事業について最もよく当てはまる説明はどれですか?)」
スクリーンショット 2020-09-18 15.35.23.png

Of the following, which best describes your business?(次のうち、御社の事業について最もよく当てはまる説明はどれですか?)」
スクリーンショット 2020-09-18 15.35.30.png

...tell us about your business(御社のビジネスについて教えてください)」
スクリーンショット 2020-09-18 15.35.44.png

...what do you plan to build on the Ads API?(広告APIに何を構築する予定ですか?)」
スクリーンショット 2020-09-18 15.35.52.png

...describe your unique differentiators in the Ad Tech ecosystem(広告テクノロジー市場での御社の差別化要素について説明してください)」
スクリーンショット 2020-09-18 15.36.01.png

Do you have API partnerships on any other platforms?(Twitter以外のプラットフォームでAPIパートナーシップを組んでいますか?)」
スクリーンショット 2020-09-18 15.36.10.png


次に「顧客情報」です。

Where are your customers based? Please indicate your top market(顧客基盤はどこにありますか?御社の最大市場を教えてください)」
スクリーンショット 2020-09-18 15.51.20.png

Which industries are most common among your customers?(どの業界の顧客が最も多いですか?)」
スクリーンショット 2020-09-18 15.51.28.png

Tell us more about your strategic customers/advertisers(御社の戦略顧客/広告主について詳しく教えてください)」
スクリーンショット 2020-09-18 15.51.36.png


次に「商品情報」です。

Of the following campaign objectives, where is your offering strongest?(次のキャンペーン目的のうち、御社の商品が最も優れている部分はどこにありますか?)」
スクリーンショット 2020-09-18 15.57.06.png

How is your product distributed?(商品の流通方法を教えてください)」
スクリーンショット 2020-09-18 15.57.14.png

List the languages that your product supports(商品がサポートする言語を列挙してください)」
スクリーンショット 2020-09-18 15.57.25.png

Does your product currently use or plan to utilize any other Twitter APIs?(御社の製品にほかのTwitterAPIを現在使用していますか?または、今後、利用する予定がありますか?)」
スクリーンショット 2020-09-18 15.57.37.png

Do you license data from Twitter's Data APIs?(TwitterのデータAPIから取得したデータをライセンスの対象にしますか?)」
スクリーンショット 2020-09-18 15.57.46.png


次に「Twitter広告API制約」です。

スクリーンショット 2020-09-18 16.06.15.png

以下の項目はラジオボタンにチェックしてください。

  • Yes, I agree to the terms of the Twitter Ads Products and Services Agreement.(はい、Twitter広告商品およびサービス契約書の条件に同意します。)」
  • I acknowledge that by agreeing to this Twitter Ads Products and Services Agreement, I agree to the Twitter Privacy Policy, Terms of Service, Developer Agreement and Policy, Trademark and Brand Guidelines, and applicable Twitter Master Services Agreement.(このTwitter広告商品およびサービス契約書に同意することにより、Twitterプライバシーポリシー、利用規約、開発者契約およびポリシー、商標およびブランドガイドライン、および適用対象となるTwitterマスターサービス契約に同意することに同意いたします。)」
  • I further acknowledge that by agreeing to this Twitter Ads Products and Services Agreement, I agree to the Twitter Ads policies, including those for Conversion Tracking and Tailored Audiences, and Twitter's Data Processing Addendum.(さらに、このTwitter広告商品およびサービス契約書に同意することにより、Twitter広告ポリシー(コンバージョントラッキングおよびテイラードオーディエンスのポリシー、Twitterのデータ処理補遺を含む)に同意することに同意いたします。)」

以下はどちらを選んでも問題ありません。
選択後は、「Submit」ボタンをクリックします。

  • By clicking on Yes below, you agree to receive various marketing communications (like tech updates, version notifications, events) via email from Twitter. You may unsubscribe at any time.(以下で [はい] をクリックすると、Twitterからさまざまなマーケティング関連のメール(技術更新、バージョンの通知、イベントなど)を受信することに同意するものとします。購読登録はいつでも解除できます。)」 スクリーンショット 2020-09-18 16.14.20.png

4.Twitterからの申請の承認メールが届きます。

以下のようなメールが届いたら承認が完了です。
スクリーンショット 2020-09-18 16.21.23.png


■「Twitter広告APIを利用してキャンペーンを作ってみる 」シリーズ

  1. その1~TwitterAPI申請編~
  2. その2~TiwtterAPIのAPIキーとトークンの取得編~
  3. その3~TwitterAPIでツイート編~
  4. その4~Tiwtter広告APIのAPI申請編~ ←イマココ
  5. その5~Twitter広告APIでキャンペーン作成編~

Viewing all articles
Browse latest Browse all 8920

Trending Articles