Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

protected_audience_api_sample

以下の流れを実装したprotected-audience-apiのサンプル

  1. InterestGroupへの参加
  2. auctionの実行(runAdAuction,generateBid)
  3. 広告配信
  4. レポーティング(reportWin, reportEvent)

setup

  1. 次のオプションつけてchromeの再起動(attestetion checkの無効化)--disable-features=EnforcePrivacySandboxAttestations
  2. privacy sandbox apiの有効化 chrome://flags/#privacy-sandbox-ads-apis
  3. https://localhost:4430*に対する自己証明書登録
    • https://localhost:44301/advertiser/index.html safariでアクセスし以下に従って登録(MasOS)
      • 今回の場合は証明書の名前は root@buildkitsandbox
      • ref : https://qiita.com/colomney/items/887f9ea7b68a3b427060
      • error : Worklet error: Failed to load https://... error = net::ERR_CERT_AUTHORITY_INVALID.
      • 証明書をinstallした後に信頼する必要があることに注意
        • 再起動などでこれがリセットされる可能性がある.

startup

  1. docker-compose up -d --build
    • re-build with no cache
    • docker-compose build --no-cache
    • docker-compose up -d
  2. cd kvsapi
  3. ./mvnw clean package
  4. docker cp target/dsp_kvs_api.war paapi-container:/kvsapi/
  5. docker exec -it paapi-container bash
  6. java -jar /kvsapi/dsp_kvs_api.war --server.port=8081
  7. https://localhost:44300/home/index.html chromeでrootページにアクセス
  8. https://localhost:44301/advertiser/index.html interestGroupに参加
  9. https://localhost:44302/publisher/index.html 広告が表示されれば成功

hosts

  • ROOT : localhost:44300 -> localhost:8080
  • Advertiser : localhost:44301 -> localhost:8080
  • Publisher : localhost:44302 -> localhost:8080
  • DSP : localhost:44303 -> localhost:8081
  • SSP : localhost:44304 -> localhost:8080

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages