Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Brave Ads general refactoring to improve project structure, performance and add more unit tests #12486

Closed
tmancey opened this issue Nov 3, 2020 · 1 comment · Fixed by brave/brave-core#7035

Comments

@tmancey
Copy link
Contributor

tmancey commented Nov 3, 2020

No description provided.

@tmancey tmancey added priority/P3 The next thing for us to work on. It'll ride the trains. QA/Yes release-notes/exclude feature/ads OS/Desktop labels Nov 3, 2020
@tmancey tmancey self-assigned this Nov 3, 2020
@tmancey tmancey changed the title Brave Ads general refactoring to reduce memory usage and improve project structure Brave Ads general refactoring to improve project structure, increase performance and add more unit tests Nov 3, 2020
@tmancey tmancey changed the title Brave Ads general refactoring to improve project structure, increase performance and add more unit tests Brave Ads general refactoring to improve project structure, performance and add more unit tests Nov 3, 2020
@tmancey tmancey added this to the 1.18.x - Nightly milestone Nov 3, 2020
@btlechowski
Copy link

btlechowski commented Dec 3, 2020

Verification passed on

Brave 1.18.66 Chromium: 87.0.4280.67 (Official Build) dev (64-bit)
Revision 0e5d92df40086cf0050c00f87b11da1b14580930-refs/branch-heads/4280@{#1441}
OS Windows 7 Service Pack 1 (Build 7601.24544)

Verified test plan from brave/brave-core#7035

Verified successfully triggered an ad

ad view

[16712:7768:1203/053010.491:VERBOSE1:ad_notification_serving.cc(95)] Ad notification delivered:
  uuid: 3fbe0c56-b5da-4fe6-b1de-3b9973edfabe
  creativeInstanceId: cd20cc5e-c125-44d0-82a3-75a6fee67704
  creativeSetId: 32439113-32d2-4b50-9497-405b7eedd1d5
  campaignId: dbd742cc-7bcf-47c8-aeed-5a8be10c7261
  category: untargeted
  title: travala
  body: travala
  targetUrl: https://www.travala.com/

ad view confirmation

[16712:7768:1203/053010.492:VERBOSE1:confirmations.cc(91)] Confirming view ad for creative instance id cd20cc5e-c125-44d0-82a3-75a6fee67704
[16712:7768:1203/053010.492:VERBOSE1:redeem_unblinded_token.cc(66)] Redeem token
[16712:7768:1203/053010.492:VERBOSE1:redeem_unblinded_token.cc(107)] CreateConfirmation
[16712:7768:1203/053010.492:VERBOSE2:redeem_unblinded_token.cc(108)] POST /v1/confirmation/{confirmation_id}/{credential}
[16712:7768:1203/053010.492:VERBOSE5:redeem_unblinded_token.cc(112)] URL Request:
  URL: https://ads-serve.bravesoftware.com/v1/confirmation/fb74ee01-8803-4e11-b32d-bd0461ab1e83/eyJwYXlsb2FkIjoie1wiYmxpbmRlZFBheW1lbnRUb2tlblwiOlwidGlHNXFYdzJ5eTVZUWxJQ2xTS29acE1rK05mWktsSDNPbEZNWm5CaENCWT1cIixcImJ1aWxkQ2hhbm5lbFwiOlwiZGV2XCIsXCJjcmVhdGl2ZUluc3RhbmNlSWRcIjpcImNkMjBjYzVlLWMxMjUtNDRkMC04MmEzLTc1YTZmZWU2NzcwNFwiLFwiZXhwZXJpbWVudFwiOnt9LFwicGF5bG9hZFwiOnt9LFwicGxhdGZvcm1cIjpcIndpbmRvd3NcIixcInR5cGVcIjpcInZpZXdcIn0iLCJzaWduYXR1cmUiOiJCMHM4aUV5LzZUVHQ3dmY2M2xRRmpmYnhoSlFncnNwSWxBRGpOZE1OaklOUDZiRjNQb3R6ZDdDN296YVVaOVJUMkJINTZncEdXeWl0RmJVVWl3MDFiZz09IiwidCI6IkNMeXd6QUNvaStNSUVFdXBUdmgwWHRCbmVrS29CeEsxM0FQVjJhditISWgrZjBiM0kvSGNDd2JGblQ3UFFsTmNVWFhBc2gvNmpjdXlISEZ1SWF4Z1RBPT0ifQ==
  Content: {"blindedPaymentToken":"tiG5qXw2yy5YQlIClSKoZpMk+NfZKlH3OlFMZnBhCBY=","buildChannel":"dev","creativeInstanceId":"cd20cc5e-c125-44d0-82a3-75a6fee67704","experiment":{},"payload":{},"platform":"windows","type":"view"}
  Content Type: application/json
  Method: BraveAdsUrlRequestMethod::POST
[16712:7768:1203/053010.492:VERBOSE1:refill_unblinded_tokens.cc(67)] No need to refill unblinded tokens as we already have 49 unblinded tokens which is above the minimum threshold of 20
[16712:7768:1203/053010.969:VERBOSE1:redeem_unblinded_token.cc(125)] OnCreateConfirmation
[16712:7768:1203/053010.969:VERBOSE6:redeem_unblinded_token.cc(127)] URL Response:
  URL: https://ads-serve.bravesoftware.com/v1/confirmation/fb74ee01-8803-4e11-b32d-bd0461ab1e83/eyJwYXlsb2FkIjoie1wiYmxpbmRlZFBheW1lbnRUb2tlblwiOlwidGlHNXFYdzJ5eTVZUWxJQ2xTS29acE1rK05mWktsSDNPbEZNWm5CaENCWT1cIixcImJ1aWxkQ2hhbm5lbFwiOlwiZGV2XCIsXCJjcmVhdGl2ZUluc3RhbmNlSWRcIjpcImNkMjBjYzVlLWMxMjUtNDRkMC04MmEzLTc1YTZmZWU2NzcwNFwiLFwiZXhwZXJpbWVudFwiOnt9LFwicGF5bG9hZFwiOnt9LFwicGxhdGZvcm1cIjpcIndpbmRvd3NcIixcInR5cGVcIjpcInZpZXdcIn0iLCJzaWduYXR1cmUiOiJCMHM4aUV5LzZUVHQ3dmY2M2xRRmpmYnhoSlFncnNwSWxBRGpOZE1OaklOUDZiRjNQb3R6ZDdDN296YVVaOVJUMkJINTZncEdXeWl0RmJVVWl3MDFiZz09IiwidCI6IkNMeXd6QUNvaStNSUVFdXBUdmgwWHRCbmVrS29CeEsxM0FQVjJhditISWgrZjBiM0kvSGNDd2JGblQ3UFFsTmNVWFhBc2gvNmpjdXlISEZ1SWF4Z1RBPT0ifQ==
  Response Status Code: 201
  Response: {"id":"fb74ee01-8803-4e11-b32d-bd0461ab1e83","payload":{},"createdAt":"2020-12-03T04:30:11.312Z","type":"view","modifiedAt":"2020-12-03T04:30:11.312Z","creativeInstanceId":"cd20cc5e-c125-44d0-82a3-75a6fee67704"}
[16712:7768:1203/053010.969:VERBOSE1:redeem_unblinded_token.cc(147)] FetchPaymentToken
[16712:7768:1203/053010.969:VERBOSE2:redeem_unblinded_token.cc(148)] GET /v1/confirmation/{confirmation_id}/paymentToken
[16712:7768:1203/053010.969:VERBOSE5:redeem_unblinded_token.cc(152)] URL Request:
  URL: https://ads-serve.bravesoftware.com/v1/confirmation/fb74ee01-8803-4e11-b32d-bd0461ab1e83/paymentToken
  Method: BraveAdsUrlRequestMethod::GET
[16712:7768:1203/053010.999:VERBOSE6:ad_notification_event_viewed.cc(44)] Successfully logged ad notification viewed event
[16712:7768:1203/053011.260:VERBOSE1:redeem_unblinded_token.cc(163)] OnFetchPaymentToken
[16712:7768:1203/053011.260:VERBOSE6:redeem_unblinded_token.cc(165)] URL Response:
  URL: https://ads-serve.bravesoftware.com/v1/confirmation/fb74ee01-8803-4e11-b32d-bd0461ab1e83/paymentToken
  Response Status Code: 200
  Response: {"id":"fb74ee01-8803-4e11-b32d-bd0461ab1e83","createdAt":"2020-12-03T04:30:11.312Z","type":"view","modifiedAt":"2020-12-03T04:30:11.345Z","creativeInstanceId":"cd20cc5e-c125-44d0-82a3-75a6fee67704","paymentToken":{"publicKey":"bPE1QE65mkIgytffeu7STOfly+x10BXCGuk5pVlOHQU=","batchProof":"rCKcS2RFBwkT9k9hSdosyKlDvNs6SkH+V7LapRggiANGEHARSGoF5pbNgUL3VPWX0BnpAFuvAAm3j8k98u+KCw==","signedTokens":["QovV9vJWOvPyEG163SgBFsjec/GFMsQATg2JUaXGyVA="]}}
[16712:7768:1203/053011.261:VERBOSE1:redeem_unblinded_token.cc(339)] Added 1 unblinded payment token with an estimated redemption value of 0.05 BAT, you now have 1 unblinded payment tokens
[16712:7768:1203/053011.262:VERBOSE1:ads_impl.cc(512)] Successfully redeemed unblinded token with confirmation id fb74ee01-8803-4e11-b32d-bd0461ab1e83, creative instance id cd20cc5e-c125-44d0-82a3-75a6fee67704 and view

ad click

[16712:7768:1203/053013.322:VERBOSE3:ad_notification_event_clicked.cc(36)] Clicked ad notification with uuid 3fbe0c56-b5da-4fe6-b1de-3b9973edfabe and creative instance id cd20cc5e-c125-44d0-82a3-75a6fee67704

ad click confirmation

[16712:7768:1203/053013.323:VERBOSE1:confirmations.cc(91)] Confirming click ad for creative instance id cd20cc5e-c125-44d0-82a3-75a6fee67704
[16712:7768:1203/053013.323:VERBOSE1:redeem_unblinded_token.cc(66)] Redeem token
[16712:7768:1203/053013.323:VERBOSE1:redeem_unblinded_token.cc(107)] CreateConfirmation
[16712:7768:1203/053013.323:VERBOSE2:redeem_unblinded_token.cc(108)] POST /v1/confirmation/{confirmation_id}/{credential}
[16712:7768:1203/053013.323:VERBOSE5:redeem_unblinded_token.cc(112)] URL Request:
  URL: https://ads-serve.bravesoftware.com/v1/confirmation/bdd20407-8d4e-4362-915d-2fdc6c0e9483/eyJwYXlsb2FkIjoie1wiYmxpbmRlZFBheW1lbnRUb2tlblwiOlwiTWhvVklFNGU4bnZnYTFvRklad1R4ODZJVTFBS2g3WE1lKzVrRGd1ci8ybz1cIixcImJ1aWxkQ2hhbm5lbFwiOlwiZGV2XCIsXCJjcmVhdGl2ZUluc3RhbmNlSWRcIjpcImNkMjBjYzVlLWMxMjUtNDRkMC04MmEzLTc1YTZmZWU2NzcwNFwiLFwiZXhwZXJpbWVudFwiOnt9LFwicGF5bG9hZFwiOnt9LFwicGxhdGZvcm1cIjpcIndpbmRvd3NcIixcInR5cGVcIjpcImNsaWNrXCJ9Iiwic2lnbmF0dXJlIjoiNS9PbGs2b2xyakJkZHhDYitiRG9WejZJcFZSaEZKdXFObGcrNzd3MXpxMjRSdyt3QWVFd1Fac2tLMXcyc0NBbWRNNjlPQ1lYQTlHKytyNG9lQmkyc2c9PSIsInQiOiI1L0NhZWJOQW0xMnZ1Y1YrMVc4WFJtZnZGd1dCRzRzc3JHUm5VS0oxUEh4VEEraUpmQi9XQWl5cWJQclNscE5oYnBEYXBFQUJ3MnVOSHFZRDRlL1hKUT09In0=
  Content: {"blindedPaymentToken":"MhoVIE4e8nvga1oFIZwTx86IU1AKh7XMe+5kDgur/2o=","buildChannel":"dev","creativeInstanceId":"cd20cc5e-c125-44d0-82a3-75a6fee67704","experiment":{},"payload":{},"platform":"windows","type":"click"}
  Content Type: application/json
  Method: BraveAdsUrlRequestMethod::POST
[16712:7768:1203/053013.323:VERBOSE1:refill_unblinded_tokens.cc(67)] No need to refill unblinded tokens as we already have 48 unblinded tokens which is above the minimum threshold of 20
[16712:7768:1203/053013.328:VERBOSE1:ad_notification.cc(31)] Failed to trigger ad notification event for uuid 3fbe0c56-b5da-4fe6-b1de-3b9973edfabe
[16712:7768:1203/053013.648:VERBOSE1:ad_notification_event_clicked.cc(50)] Successfully logged ad notification clicked event
[16712:7768:1203/053013.650:VERBOSE1:redeem_unblinded_token.cc(125)] OnCreateConfirmation
[16712:7768:1203/053013.650:VERBOSE6:redeem_unblinded_token.cc(127)] URL Response:
  URL: https://ads-serve.bravesoftware.com/v1/confirmation/bdd20407-8d4e-4362-915d-2fdc6c0e9483/eyJwYXlsb2FkIjoie1wiYmxpbmRlZFBheW1lbnRUb2tlblwiOlwiTWhvVklFNGU4bnZnYTFvRklad1R4ODZJVTFBS2g3WE1lKzVrRGd1ci8ybz1cIixcImJ1aWxkQ2hhbm5lbFwiOlwiZGV2XCIsXCJjcmVhdGl2ZUluc3RhbmNlSWRcIjpcImNkMjBjYzVlLWMxMjUtNDRkMC04MmEzLTc1YTZmZWU2NzcwNFwiLFwiZXhwZXJpbWVudFwiOnt9LFwicGF5bG9hZFwiOnt9LFwicGxhdGZvcm1cIjpcIndpbmRvd3NcIixcInR5cGVcIjpcImNsaWNrXCJ9Iiwic2lnbmF0dXJlIjoiNS9PbGs2b2xyakJkZHhDYitiRG9WejZJcFZSaEZKdXFObGcrNzd3MXpxMjRSdyt3QWVFd1Fac2tLMXcyc0NBbWRNNjlPQ1lYQTlHKytyNG9lQmkyc2c9PSIsInQiOiI1L0NhZWJOQW0xMnZ1Y1YrMVc4WFJtZnZGd1dCRzRzc3JHUm5VS0oxUEh4VEEraUpmQi9XQWl5cWJQclNscE5oYnBEYXBFQUJ3MnVOSHFZRDRlL1hKUT09In0=
  Response Status Code: 201
  Response: {"id":"bdd20407-8d4e-4362-915d-2fdc6c0e9483","payload":{},"createdAt":"2020-12-03T04:30:13.988Z","type":"click","modifiedAt":"2020-12-03T04:30:13.988Z","creativeInstanceId":"cd20cc5e-c125-44d0-82a3-75a6fee67704"}
[16712:7768:1203/053013.651:VERBOSE1:redeem_unblinded_token.cc(147)] FetchPaymentToken
[16712:7768:1203/053013.651:VERBOSE2:redeem_unblinded_token.cc(148)] GET /v1/confirmation/{confirmation_id}/paymentToken
[16712:7768:1203/053013.651:VERBOSE5:redeem_unblinded_token.cc(152)] URL Request:
  URL: https://ads-serve.bravesoftware.com/v1/confirmation/bdd20407-8d4e-4362-915d-2fdc6c0e9483/paymentToken
  Method: BraveAdsUrlRequestMethod::GET
[16712:7768:1203/053013.930:VERBOSE1:redeem_unblinded_token.cc(163)] OnFetchPaymentToken
[16712:7768:1203/053013.930:VERBOSE6:redeem_unblinded_token.cc(165)] URL Response:
  URL: https://ads-serve.bravesoftware.com/v1/confirmation/bdd20407-8d4e-4362-915d-2fdc6c0e9483/paymentToken
  Response Status Code: 200
  Response: {"id":"bdd20407-8d4e-4362-915d-2fdc6c0e9483","createdAt":"2020-12-03T04:30:13.988Z","type":"click","modifiedAt":"2020-12-03T04:30:14.023Z","creativeInstanceId":"cd20cc5e-c125-44d0-82a3-75a6fee67704","paymentToken":{"publicKey":"lLO5tErGoTK0askrALab6pKGAnBHqELSyw/evqZRwH8=","batchProof":"KeYabQhdwP/w6xTQOgfcbB0oa2VqhpXS3CEn+UOKbQcyTY0FEjRfLn3GYHNBsKtyfWctGkbE8Pgdj/qouRmEAw==","signedTokens":["1sndnpIZvDyuFizIFWSCHo0Q177ZEsvVSrz78p4/x0s="]}}
[16712:7768:1203/053013.932:VERBOSE1:redeem_unblinded_token.cc(339)] Added 1 unblinded payment token with an estimated redemption value of 0 BAT, you now have 2 unblinded payment tokens
[16712:7768:1203/053013.933:VERBOSE1:ads_impl.cc(512)] Successfully redeemed unblinded token with confirmation id bdd20407-8d4e-4362-915d-2fdc6c0e9483, creative instance id cd20cc5e-c125-44d0-82a3-75a6fee67704 and click

ad landed

[16712:7768:1203/053013.792:VERBOSE1:ad_transfer.cc(54)] Visited URL matches the last clicked ad
[16712:7768:1203/053013.793:VERBOSE1:ad_transfer.cc(101)] Transfer ad for https://www.travala.com/ in 0 hours, 0 minutes, 10 seconds at 5:30 AM
[16712:7768:1203/053013.793:VERBOSE1:conversions.cc(124)] Checking URL for conversions
[16712:7768:1203/053023.793:VERBOSE1:ad_transfer.cc(118)] Transferred ad for https://www.travala.com/

ad landed confirmation

[16712:7768:1203/053023.793:VERBOSE1:confirmations.cc(91)] Confirming landed ad for creative instance id cd20cc5e-c125-44d0-82a3-75a6fee67704
[16712:7768:1203/053023.793:VERBOSE1:redeem_unblinded_token.cc(66)] Redeem token
[16712:7768:1203/053023.794:VERBOSE1:redeem_unblinded_token.cc(107)] CreateConfirmation
[16712:7768:1203/053023.794:VERBOSE2:redeem_unblinded_token.cc(108)] POST /v1/confirmation/{confirmation_id}/{credential}
[16712:7768:1203/053023.794:VERBOSE5:redeem_unblinded_token.cc(112)] URL Request:
  URL: https://ads-serve.bravesoftware.com/v1/confirmation/ed8ea41b-8c05-4e62-a93e-f99f68afa88c/eyJwYXlsb2FkIjoie1wiYmxpbmRlZFBheW1lbnRUb2tlblwiOlwieml5WnBMSnlQMVZrVEF4TmgzMDdjRWlWYmcvL2hVUDQzNzZDdldGTm5VOD1cIixcImJ1aWxkQ2hhbm5lbFwiOlwiZGV2XCIsXCJjcmVhdGl2ZUluc3RhbmNlSWRcIjpcImNkMjBjYzVlLWMxMjUtNDRkMC04MmEzLTc1YTZmZWU2NzcwNFwiLFwiZXhwZXJpbWVudFwiOnt9LFwicGF5bG9hZFwiOnt9LFwicGxhdGZvcm1cIjpcIndpbmRvd3NcIixcInR5cGVcIjpcImxhbmRlZFwifSIsInNpZ25hdHVyZSI6ImVXNUc4UHBaUHZ3L0w1a2l3OFFCUjk1MW1sZnFBNmRobitmc2RObzE3ZFFXdXA4NExOZGVycUo3Z1RvNDNQaDlyNW1iVWhYaXhseE54WHpxMnFBWmlRPT0iLCJ0IjoiZ3NCaVVrZyt5VU9JNkFFT0Q3Y1BpdzZpV2lLbEVHY2ZtZTVyL09rTmY1NStJZzh5ZlBsaHVJditkZnpzcFY3NURDZ1N4TDNTK0hoSmdHV2NJZFpvWVE9PSJ9
  Content: {"blindedPaymentToken":"ziyZpLJyP1VkTAxNh307cEiVbg//hUP4376CvWFNnU8=","buildChannel":"dev","creativeInstanceId":"cd20cc5e-c125-44d0-82a3-75a6fee67704","experiment":{},"payload":{},"platform":"windows","type":"landed"}
  Content Type: application/json
  Method: BraveAdsUrlRequestMethod::POST
[16712:7768:1203/053023.794:VERBOSE1:refill_unblinded_tokens.cc(67)] No need to refill unblinded tokens as we already have 47 unblinded tokens which is above the minimum threshold of 20
[16712:7768:1203/053023.923:VERBOSE6:ad_transfer.cc(128)] Successfully logged transferred ad event
[16712:7768:1203/053024.189:VERBOSE1:redeem_unblinded_token.cc(125)] OnCreateConfirmation
[16712:7768:1203/053024.189:VERBOSE6:redeem_unblinded_token.cc(127)] URL Response:
  URL: https://ads-serve.bravesoftware.com/v1/confirmation/ed8ea41b-8c05-4e62-a93e-f99f68afa88c/eyJwYXlsb2FkIjoie1wiYmxpbmRlZFBheW1lbnRUb2tlblwiOlwieml5WnBMSnlQMVZrVEF4TmgzMDdjRWlWYmcvL2hVUDQzNzZDdldGTm5VOD1cIixcImJ1aWxkQ2hhbm5lbFwiOlwiZGV2XCIsXCJjcmVhdGl2ZUluc3RhbmNlSWRcIjpcImNkMjBjYzVlLWMxMjUtNDRkMC04MmEzLTc1YTZmZWU2NzcwNFwiLFwiZXhwZXJpbWVudFwiOnt9LFwicGF5bG9hZFwiOnt9LFwicGxhdGZvcm1cIjpcIndpbmRvd3NcIixcInR5cGVcIjpcImxhbmRlZFwifSIsInNpZ25hdHVyZSI6ImVXNUc4UHBaUHZ3L0w1a2l3OFFCUjk1MW1sZnFBNmRobitmc2RObzE3ZFFXdXA4NExOZGVycUo3Z1RvNDNQaDlyNW1iVWhYaXhseE54WHpxMnFBWmlRPT0iLCJ0IjoiZ3NCaVVrZyt5VU9JNkFFT0Q3Y1BpdzZpV2lLbEVHY2ZtZTVyL09rTmY1NStJZzh5ZlBsaHVJditkZnpzcFY3NURDZ1N4TDNTK0hoSmdHV2NJZFpvWVE9PSJ9
  Response Status Code: 201
  Response: {"id":"ed8ea41b-8c05-4e62-a93e-f99f68afa88c","payload":{},"createdAt":"2020-12-03T04:30:24.442Z","type":"landed","modifiedAt":"2020-12-03T04:30:24.442Z","creativeInstanceId":"cd20cc5e-c125-44d0-82a3-75a6fee67704"}
[16712:7768:1203/053024.189:VERBOSE1:redeem_unblinded_token.cc(147)] FetchPaymentToken
[16712:7768:1203/053024.189:VERBOSE2:redeem_unblinded_token.cc(148)] GET /v1/confirmation/{confirmation_id}/paymentToken
[16712:7768:1203/053024.189:VERBOSE5:redeem_unblinded_token.cc(152)] URL Request:
  URL: https://ads-serve.bravesoftware.com/v1/confirmation/ed8ea41b-8c05-4e62-a93e-f99f68afa88c/paymentToken
  Method: BraveAdsUrlRequestMethod::GET
[16712:7768:1203/053024.195:VERBOSE1:conversions.cc(214)] No conversions found for visited URL
[16712:7768:1203/053024.465:VERBOSE1:redeem_unblinded_token.cc(163)] OnFetchPaymentToken
[16712:7768:1203/053024.465:VERBOSE6:redeem_unblinded_token.cc(165)] URL Response:
  URL: https://ads-serve.bravesoftware.com/v1/confirmation/ed8ea41b-8c05-4e62-a93e-f99f68afa88c/paymentToken
  Response Status Code: 200
  Response: {"id":"ed8ea41b-8c05-4e62-a93e-f99f68afa88c","createdAt":"2020-12-03T04:30:24.442Z","type":"landed","modifiedAt":"2020-12-03T04:30:24.474Z","creativeInstanceId":"cd20cc5e-c125-44d0-82a3-75a6fee67704","paymentToken":{"publicKey":"lLO5tErGoTK0askrALab6pKGAnBHqELSyw/evqZRwH8=","batchProof":"Hf+P6iRdACNjDtSW+bjPuyNAmIwwrTWgQ0NpEHdtHAUgdlzsubJtMM7qI/XQbcGslI2Y+XiRmFPgW2HXrlpSAQ==","signedTokens":["Wg1Aas9jd2GiKrWKqMbfsSp6fUfUmI+SqPszLYVG3ng="]}}
[16712:7768:1203/053024.467:VERBOSE1:redeem_unblinded_token.cc(339)] Added 1 unblinded payment token with an estimated redemption value of 0 BAT, you now have 3 unblinded payment tokens
[16712:7768:1203/053024.467:VERBOSE1:ads_impl.cc(512)] Successfully redeemed unblinded token with confirmation id ed8ea41b-8c05-4e62-a93e-f99f68afa88c, creative instance id cd20cc5e-c125-44d0-82a3-75a6fee67704 and landed

ad conversion

[16712:7768:1203/053126.216:VERBOSE1:conversions.cc(223)] Conversion for creative set id 32439113-32d2-4b50-9497-405b7eedd1d5 and ad_notification
[16712:7768:1203/053126.217:VERBOSE1:conversions.cc(379)] Convert creative instance id cd20cc5e-c125-44d0-82a3-75a6fee67704 and creative set id 32439113-32d2-4b50-9497-405b7eedd1d5 in 0 hours, 4 minutes, 18 seconds at 5:35 AM
[11428:3112:1203/055409.389:VERBOSE1:conversions.cc(336)] Successfully converted ad with creative instance id cd20cc5e-c125-44d0-82a3-75a6fee67704 and creative set id 32439113-32d2-4b50-9497-405b7eedd1d5 in 0 hours, -18 minutes, -25 seconds at 5:35 AM

ad conversion confirmation

[11428:3112:1203/055409.389:VERBOSE1:confirmations.cc(91)] Confirming conversion ad for creative instance id cd20cc5e-c125-44d0-82a3-75a6fee67704
[11428:3112:1203/055409.389:VERBOSE1:redeem_unblinded_token.cc(66)] Redeem token
[11428:3112:1203/055409.390:VERBOSE1:redeem_unblinded_token.cc(107)] CreateConfirmation
[11428:3112:1203/055409.390:VERBOSE2:redeem_unblinded_token.cc(108)] POST /v1/confirmation/{confirmation_id}/{credential}
[11428:3112:1203/055409.390:VERBOSE5:redeem_unblinded_token.cc(112)] URL Request:
  URL: https://ads-serve.bravesoftware.com/v1/confirmation/07580553-2737-4f21-950f-1d03c5608ff1/eyJwYXlsb2FkIjoie1wiYmxpbmRlZFBheW1lbnRUb2tlblwiOlwiSUMrUzFJcmgxdi9PK3FIQXl0UERsdzZ3eFJ4SFpvb1NtNXZsMVhKUnQyOD1cIixcImJ1aWxkQ2hhbm5lbFwiOlwiZGV2XCIsXCJjcmVhdGl2ZUluc3RhbmNlSWRcIjpcImNkMjBjYzVlLWMxMjUtNDRkMC04MmEzLTc1YTZmZWU2NzcwNFwiLFwiZXhwZXJpbWVudFwiOnt9LFwicGF5bG9hZFwiOnt9LFwicGxhdGZvcm1cIjpcIndpbmRvd3NcIixcInR5cGVcIjpcImNvbnZlcnNpb25cIn0iLCJzaWduYXR1cmUiOiIzL1F5eC9QUGM2bGRadU1TTS83bzJDMU9lWWEydEhtTDJadTNWWExDSzhsWnlmZjB2RW5tMW1TYnorRXNtSWN3a3IwL2JpaU1XMDc5OUh3MnQzcjRkZz09IiwidCI6IkdtdjR3dmtkejFhZE1ubnBrN0x0cmxCcjFxbkhSaTQvdFpWenk1UldjNG5RdXVHU29uSXhoQjJJTWhEYThiRFhnUlB1YmNZb2Y1Y1hka2ZRbGZBS0l3PT0ifQ==
  Content: {"blindedPaymentToken":"IC+S1Irh1v/O+qHAytPDlw6wxRxHZooSm5vl1XJRt28=","buildChannel":"dev","creativeInstanceId":"cd20cc5e-c125-44d0-82a3-75a6fee67704","experiment":{},"payload":{},"platform":"windows","type":"conversion"}
  Content Type: application/json
  Method: BraveAdsUrlRequestMethod::POST
[11428:3112:1203/055409.390:VERBOSE1:refill_unblinded_tokens.cc(67)] No need to refill unblinded tokens as we already have 46 unblinded tokens which is above the minimum threshold of 20
[11428:3112:1203/055409.390:VERBOSE1:conversions.cc(107)] Conversions queue is empty
[11428:3112:1203/055410.325:VERBOSE1:redeem_unblinded_token.cc(125)] OnCreateConfirmation
[11428:3112:1203/055410.325:VERBOSE6:redeem_unblinded_token.cc(127)] URL Response:
  URL: https://ads-serve.bravesoftware.com/v1/confirmation/07580553-2737-4f21-950f-1d03c5608ff1/eyJwYXlsb2FkIjoie1wiYmxpbmRlZFBheW1lbnRUb2tlblwiOlwiSUMrUzFJcmgxdi9PK3FIQXl0UERsdzZ3eFJ4SFpvb1NtNXZsMVhKUnQyOD1cIixcImJ1aWxkQ2hhbm5lbFwiOlwiZGV2XCIsXCJjcmVhdGl2ZUluc3RhbmNlSWRcIjpcImNkMjBjYzVlLWMxMjUtNDRkMC04MmEzLTc1YTZmZWU2NzcwNFwiLFwiZXhwZXJpbWVudFwiOnt9LFwicGF5bG9hZFwiOnt9LFwicGxhdGZvcm1cIjpcIndpbmRvd3NcIixcInR5cGVcIjpcImNvbnZlcnNpb25cIn0iLCJzaWduYXR1cmUiOiIzL1F5eC9QUGM2bGRadU1TTS83bzJDMU9lWWEydEhtTDJadTNWWExDSzhsWnlmZjB2RW5tMW1TYnorRXNtSWN3a3IwL2JpaU1XMDc5OUh3MnQzcjRkZz09IiwidCI6IkdtdjR3dmtkejFhZE1ubnBrN0x0cmxCcjFxbkhSaTQvdFpWenk1UldjNG5RdXVHU29uSXhoQjJJTWhEYThiRFhnUlB1YmNZb2Y1Y1hka2ZRbGZBS0l3PT0ifQ==
  Response Status Code: 201
  Response: {"id":"07580553-2737-4f21-950f-1d03c5608ff1","payload":{},"createdAt":"2020-12-03T04:54:10.690Z","type":"conversion","modifiedAt":"2020-12-03T04:54:10.690Z","creativeInstanceId":"cd20cc5e-c125-44d0-82a3-75a6fee67704"}
[11428:3112:1203/055410.325:VERBOSE1:redeem_unblinded_token.cc(147)] FetchPaymentToken
[11428:3112:1203/055410.325:VERBOSE2:redeem_unblinded_token.cc(148)] GET /v1/confirmation/{confirmation_id}/paymentToken
[11428:3112:1203/055410.325:VERBOSE5:redeem_unblinded_token.cc(152)] URL Request:
  URL: https://ads-serve.bravesoftware.com/v1/confirmation/07580553-2737-4f21-950f-1d03c5608ff1/paymentToken
  Method: BraveAdsUrlRequestMethod::GET
[11428:3112:1203/055410.616:VERBOSE1:redeem_unblinded_token.cc(163)] OnFetchPaymentToken
[11428:3112:1203/055410.616:VERBOSE6:redeem_unblinded_token.cc(165)] URL Response:
  URL: https://ads-serve.bravesoftware.com/v1/confirmation/07580553-2737-4f21-950f-1d03c5608ff1/paymentToken
  Response Status Code: 200
  Response: {"id":"07580553-2737-4f21-950f-1d03c5608ff1","createdAt":"2020-12-03T04:54:10.690Z","type":"conversion","modifiedAt":"2020-12-03T04:54:10.723Z","creativeInstanceId":"cd20cc5e-c125-44d0-82a3-75a6fee67704","paymentToken":{"publicKey":"lLO5tErGoTK0askrALab6pKGAnBHqELSyw/evqZRwH8=","batchProof":"RnE5nVsyjICWkESMD9j83l5IaOTJf6GmtP8P+Dt5dgUP8JJB1xa4r8DaK2X0KxseYAERXziN8blOvP3cmpI9Bg==","signedTokens":["GIT44DfLw/ACo5P6hYGzG2D4kyVvnUE2oytpaioVmX4="]}}
[11428:3112:1203/055410.617:VERBOSE1:redeem_unblinded_token.cc(339)] Added 1 unblinded payment token with an estimated redemption value of 0 BAT, you now have 1 unblinded payment tokens
[11428:3112:1203/055410.618:VERBOSE1:ads_impl.cc(512)] Successfully redeemed unblinded token with confirmation id 07580553-2737-4f21-950f-1d03c5608ff1, creative instance id cd20cc5e-c125-44d0-82a3-75a6fee67704 and conversion

redeem unblinded payment tokens

[11428:3112:1203/055336.028:VERBOSE1:redeem_unblinded_payment_tokens.cc(82)] RedeemUnblindedPaymentTokens
[11428:3112:1203/055336.028:VERBOSE2:redeem_unblinded_payment_tokens.cc(90)] PUT /v1/confirmation/payment/{payment_id}
[11428:3112:1203/055336.028:VERBOSE5:redeem_unblinded_payment_tokens.cc(99)] URL Request:
  URL: https://ads-serve.bravesoftware.com/v1/confirmation/payment/fe87688e-b173-4921-a1a6-1baf0610fb11
  Content: {"payload":"{\"paymentId\":\"fe87688e-b173-4921-a1a6-1baf0610fb11\"}","paymentCredentials":[{"credential":{"signature":"NdRGbwDIttxLEAzhsNQp/JxyGclY4rR3/2Muo6t2FNOmUmIejsq6X1OMrM+GNESwuAFFCPbXZtMxZ2UjzcyS4A==","t":"/lSBOVgtSg8mhHat/zwB9sVm33Zg4BmkQ9tysaFD9fTBR0vyeYgcCg3+ximAIu2zZeoCpllxlqKyoMUIP9jn7Q=="},"publicKey":"bPE1QE65mkIgytffeu7STOfly+x10BXCGuk5pVlOHQU="},{"credential":{"signature":"2xjkAr4SRpMX/uRhJAWMWXnGiOK9g5vmCRpyK2l7EQOn5eZVZONVdS6aC+JK785fQ7cPcxJSP0w5C3A10e7PZw==","t":"FM4uLIVsnJqvlbdOEOI5xh0+g+7dioNlQsXmuwCtinM7PI080Ee9pq83F5mwqY98ixR4OMfS79k9s4jmufZyFg=="},"publicKey":"lLO5tErGoTK0askrALab6pKGAnBHqELSyw/evqZRwH8="},{"credential":{"signature":"baH6eht4KdyQxqCzn7xghv3YLr0tWjcdKKw+EGjZzw1JaXahuLIS+zV96liyeiVE5YujmDDnFWCfVNOaoKkx0Q==","t":"BWOCns9cckxNM+W+Jrw0/Mtj4C8xiSu7udbGCLuQhLQx9aIeG2gXIOmrg5Dd4A2WS6TbEcPl+ON2mOBvvUlnsw=="},"publicKey":"lLO5tErGoTK0askrALab6pKGAnBHqELSyw/evqZRwH8="}]}
  Content Type: application/json
  Method: BraveAdsUrlRequestMethod::PUT
[11428:3112:1203/055336.778:VERBOSE1:redeem_unblinded_payment_tokens.cc(108)] OnRedeemUnblindedPaymentTokens
[11428:3112:1203/055336.778:VERBOSE6:redeem_unblinded_payment_tokens.cc(110)] URL Response:
  URL: https://ads-serve.bravesoftware.com/v1/confirmation/payment/fe87688e-b173-4921-a1a6-1baf0610fb11
  Response Status Code: 200
  Response: {"status":"ok"}
[11428:3112:1203/055336.780:VERBOSE1:ads_impl.cc(524)] Successfully redeemed unblinded payment tokens

reconcile ad rewards

[11428:3112:1203/055336.780:VERBOSE1:ad_rewards.cc(163)] Reconcile ad rewards
[11428:3112:1203/055336.780:VERBOSE1:ad_rewards.cc(171)] GetPayments
[11428:3112:1203/055336.780:VERBOSE2:ad_rewards.cc(172)] GET /v1/confirmation/payment/{payment_id}
[11428:3112:1203/055336.783:VERBOSE5:ad_rewards.cc(176)] URL Request:
  URL: https://ads-serve.bravesoftware.com/v1/confirmation/payment/fe87688e-b173-4921-a1a6-1baf0610fb11
  Method: BraveAdsUrlRequestMethod::GET
[11428:3112:1203/055337.516:VERBOSE1:ad_rewards.cc(185)] OnGetPayments
[11428:3112:1203/055337.516:VERBOSE6:ad_rewards.cc(187)] URL Response:
  URL: https://ads-serve.bravesoftware.com/v1/confirmation/payment/fe87688e-b173-4921-a1a6-1baf0610fb11
  Response Status Code: 200
  Response: [{"month":"2020-12","transactionCount":"1","balance":"0.05"}]
[11428:3112:1203/055338.183:VERBOSE1:ad_rewards.cc(257)] Successfully reconciled ad rewards

Verified able to claim ad grant
image

dismissed ad

[12372:3080:1203/084558.055:VERBOSE6:ad_notification_event_dismissed.cc(47)] Successfully logged ad notification dismissed event
[12372:3080:1203/084558.251:VERBOSE1:redeem_unblinded_token.cc(163)] OnFetchPaymentToken
[12372:3080:1203/084558.252:VERBOSE6:redeem_unblinded_token.cc(165)] URL Response:
  URL: https://ads-serve.brave.com/v1/confirmation/4f57f3df-4e69-4fcb-b3e5-8257504a0e45/paymentToken
  Response Status Code: 200
  Response: {"id":"4f57f3df-4e69-4fcb-b3e5-8257504a0e45","createdAt":"2020-12-03T07:45:58.495Z","type":"dismiss","modifiedAt":"2020-12-03T07:45:58.516Z","creativeInstanceId":"fe9a43b8-b435-4483-846d-c7dfb6ab7396","paymentToken":{"publicKey":"uor3AzFj4OmdCxwetsYD1TxPXZSw40t3j/VOCUyC7Rs=","batchProof":"hy/HH9nFkPW5liSO3MxizcbtzJcPh5kzPMItfChJIQxiaMk9RtFr5/2fvlNc2ZrvrcXizUZzV7wfPNanAxVQAQ==","signedTokens":["4MMDOPx6Y6X6oaqHE5Gn5ldx2JuY6W+zaUlG2hqmG14="]}}
[12372:3080:1203/084558.253:VERBOSE1:redeem_unblinded_token.cc(339)] Added 1 unblinded payment token with an estimated redemption value of 0 BAT, you now have 3 unblinded payment tokens
[12372:3080:1203/084558.253:VERBOSE1:ads_impl.cc(512)] Successfully redeemed unblinded token with confirmation id 4f57f3df-4e69-4fcb-b3e5-8257504a0e45, creative instance id fe9a43b8-b435-4483-846d-c7dfb6ab7396 and dismiss

upvote ad

[12372:3080:1203/084727.369:VERBOSE1:confirmations.cc(91)] Confirming upvote ad for creative instance id fe9a43b8-b435-4483-846d-c7dfb6ab7396
[12372:3080:1203/084728.007:VERBOSE1:ads_impl.cc(512)] Successfully redeemed unblinded token with confirmation id 61cd1cf1-e0d8-412b-a916-aa9bb1c4de2c, creative instance id fe9a43b8-b435-4483-846d-c7dfb6ab7396 and upvote

downvote ad

[12372:3080:1203/084856.083:VERBOSE1:confirmations.cc(91)] Confirming downvote ad for creative instance id fe9a43b8-b435-4483-846d-c7dfb6ab7396
[12372:3080:1203/084856.696:VERBOSE1:redeem_unblinded_token.cc(339)] Added 1 unblinded payment token with an estimated redemption value of 0 BAT, you now have 5 unblinded payment tokens
[12372:3080:1203/084856.697:VERBOSE1:ads_impl.cc(512)] Successfully redeemed unblinded token with confirmation id 4afca499-b89b-4083-8193-4dc023cf4fae, creative instance id fe9a43b8-b435-4483-846d-c7dfb6ab7396 and downvote

flag ad

[12372:3080:1203/085110.654:VERBOSE1:confirmations.cc(91)] Confirming flag ad for creative instance id fe9a43b8-b435-4483-846d-c7dfb6ab7396
[12372:3080:1203/085111.135:VERBOSE1:redeem_unblinded_token.cc(339)] Added 1 unblinded payment token with an estimated redemption value of 0 BAT, you now have 6 unblinded payment tokens
[12372:3080:1203/085111.136:VERBOSE1:ads_impl.cc(512)] Successfully redeemed unblinded token with confirmation id 0ff2b7a4-f01e-4653-9294-a115ba255827, creative instance id fe9a43b8-b435-4483-846d-c7dfb6ab7396 and flag

Verified getstate works

[11428:3112:1203/054957.565:VERBOSE5:subdivision_targeting.cc(178)] URL Request:
  URL: https://ads-serve.bravesoftware.com/v5/getstate
  Method: BraveAdsUrlRequestMethod::GET
[11428:3112:1203/054957.599:VERBOSE6:subdivision_targeting.cc(187)] URL Response:
  URL: https://ads-serve.bravesoftware.com/v5/getstate
  Response Status Code: 200
  Response: {"country":"PL", "region":"02"}

Verified Estimated pending rewards and Ads received this month
image

Verified ad is shown in ads history
image

Verified purchase intent is extracted for funnel pages

[11428:3112:1203/061313.708:VERBOSE1:purchase_intent_classifier.cc(101)] Extracting purchase intent signal from visited URL
[11428:3112:1203/061313.708:VERBOSE1:purchase_intent_classifier.cc(109)] Extracted purchase intent signal from visited URL

Verified the purchase intent segment is added after threshold is reached
Note: AC001 is the purchase intent segment

[11428:3112:1203/062337.697:VERBOSE1:ad_notification_serving.cc(159)] Serve ad for categories:
[11428:3112:1203/062337.697:VERBOSE1:ad_notification_serving.cc(161)]   other-other
[11428:3112:1203/062337.697:VERBOSE1:ad_notification_serving.cc(161)]   personal finance-personal finance
[11428:3112:1203/062337.698:VERBOSE1:ad_notification_serving.cc(161)]   business-business
[11428:3112:1203/062337.698:VERBOSE1:ad_notification_serving.cc(161)]   AC001
[11428:3112:1203/062337.698:VERBOSE1:ad_notification_serving.cc(176)] No eligible ads found for categories
[11428:3112:1203/062337.698:VERBOSE1:ad_notification_serving.cc(192)] Serve ad for parent categories:
[11428:3112:1203/062337.698:VERBOSE1:ad_notification_serving.cc(194)]   other
[11428:3112:1203/062337.698:VERBOSE1:ad_notification_serving.cc(194)]   personal finance
[11428:3112:1203/062337.698:VERBOSE1:ad_notification_serving.cc(194)]   business
[11428:3112:1203/062337.698:VERBOSE1:ad_notification_serving.cc(194)]   AC001

Verified purchase intent is extracted for keywords

[11428:3112:1203/064202.275:VERBOSE1:purchase_intent_classifier.cc(101)] Extracting purchase intent signal from visited URL
[11428:3112:1203/064202.284:VERBOSE1:purchase_intent_classifier.cc(109)] Extracted purchase intent signal from visited URL

Verified the purchase intent segment is added after threshold is reached
Note: Home Items - Mattresses is the purchase intent segment

[11428:3112:1203/064818.131:VERBOSE1:ad_notification_serving.cc(159)] Serve ad for categories:
[11428:3112:1203/064818.131:VERBOSE1:ad_notification_serving.cc(161)]   other-other
[11428:3112:1203/064818.131:VERBOSE1:ad_notification_serving.cc(161)]   personal finance-personal finance
[11428:3112:1203/064818.131:VERBOSE1:ad_notification_serving.cc(161)]   business-business
[11428:3112:1203/064818.131:VERBOSE1:ad_notification_serving.cc(161)]   Home Items - Mattresses
[11428:3112:1203/064818.131:VERBOSE1:ad_notification_serving.cc(161)]   AC001
[11428:3112:1203/064818.132:VERBOSE1:ad_notification_serving.cc(176)] No eligible ads found for categories
[11428:3112:1203/064818.132:VERBOSE1:ad_notification_serving.cc(192)] Serve ad for parent categories:
[11428:3112:1203/064818.132:VERBOSE1:ad_notification_serving.cc(194)]   other
[11428:3112:1203/064818.132:VERBOSE1:ad_notification_serving.cc(194)]   personal finance
[11428:3112:1203/064818.132:VERBOSE1:ad_notification_serving.cc(194)]   business
[11428:3112:1203/064818.132:VERBOSE1:ad_notification_serving.cc(194)]   Home Items
[11428:3112:1203/064818.132:VERBOSE1:ad_notification_serving.cc(194)]   AC001

Viewed NTP ad

[3897:3897:1203/071516.189:VERBOSE3:new_tab_page_ad_event_viewed.cc(78)] Viewed new tab page ad with uuid 5baeec18-5248-4cbe-83f2-fa776bcbe68e and creative instance id 6b563b94-c7d2-4dd8-8e63-8920671e7a99
[3897:3897:1203/071516.189:VERBOSE1:confirmations.cc(91)] Confirming view ad for creative instance id 6b563b94-c7d2-4dd8-8e63-8920671e7a99

Clicked NTP ad

[3897:3897:1203/072639.782:VERBOSE1:ads_impl.cc(512)] Successfully redeemed unblinded token with confirmation id 3c9bdda0-776a-4390-9d70-ee6c7ace56fa, creative instance id 6b563b94-c7d2-4dd8-8e63-8920671e7a99 and click

Landed NTP ad

[3897:3897:1203/072655.339:VERBOSE1:ads_impl.cc(512)] Successfully redeemed unblinded token with confirmation id 7acd7908-0097-456d-8c44-bb5da1803171, creative instance id 6b563b94-c7d2-4dd8-8e63-8920671e7a99 and landed

Verified Estimated pending rewards and Ads received this month for NTP ad
image

Verified NTP ad is shown in ads history
image

Verified that ads history is limited to 7 days.
Last 7 days:
image
Last 8 days:
image


Verification passed on

Brave 1.18.70 Chromium: 87.0.4280.101 (Official Build) (64-bit)
Revision 9407c80213cda69c2b7abcb4fa8e3f74488f4956-refs/branch-heads/4280@{#1807}
OS Ubuntu 18.04 LTS

Verified test plan from brave/brave-core#7035

Verified successfully triggered an ad

ad view

[17196:17196:1210/092451.211821:VERBOSE1:ad_notification_serving.cc(95)] Ad notification delivered:
  uuid: 6a3ddcfc-d99a-4420-8e25-5a5f48437c6d
  creativeInstanceId: 3052b175-356d-43ec-bd94-d8d67af2c03b
  creativeSetId: 32439113-32d2-4b50-9497-405b7eedd1d5
  campaignId: dbd742cc-7bcf-47c8-aeed-5a8be10c7261
  category: untargeted
  title: HOOCH
  body: Secret hotel rates up to 70% off. Join HOOCH today and travel more.
  targetUrl: https://travala.com/
[17196:17196:1210/092451.229683:VERBOSE3:ad_notification_event_viewed.cc(34)] Viewed ad notification with uuid 6a3ddcfc-d99a-4420-8e25-5a5f48437c6d and creative instance id 3052b175-356d-43ec-bd94-d8d67af2c03b
[17196:17196:1210/092451.230723:VERBOSE1:confirmations.cc(91)] Confirming view ad for creative instance id 3052b175-356d-43ec-bd94-d8d67af2c03b
[17196:17196:1210/092451.230808:VERBOSE1:redeem_unblinded_token.cc(66)] Redeem token
[17196:17196:1210/092451.230957:VERBOSE1:redeem_unblinded_token.cc(107)] CreateConfirmation
[17196:17196:1210/092451.231027:VERBOSE2:redeem_unblinded_token.cc(108)] POST /v1/confirmation/{confirmation_id}/{credential}
[17196:17196:1210/092451.231075:VERBOSE5:redeem_unblinded_token.cc(112)] URL Request:
  URL: https://ads-serve.bravesoftware.com/v1/confirmation/c6817902-b677-4b65-8ece-0921086d86c9/eyJwYXlsb2FkIjoie1wiYmxpbmRlZFBheW1lbnRUb2tlblwiOlwiU2lnMW9XUzRSRW5jbXlwWitOMHQvT1hBMHFia2xqTlN6R3JadWl3d2JRYz1cIixcImJ1aWxkQ2hhbm5lbFwiOlwicmVsZWFzZVwiLFwiY291bnRyeUNvZGVcIjpcIlBMXCIsXCJjcmVhdGl2ZUluc3RhbmNlSWRcIjpcIjMwNTJiMTc1LTM1NmQtNDNlYy1iZDk0LWQ4ZDY3YWYyYzAzYlwiLFwiZXhwZXJpbWVudFwiOnt9LFwicGF5bG9hZFwiOnt9LFwicGxhdGZvcm1cIjpcImxpbnV4XCIsXCJ0eXBlXCI6XCJ2aWV3XCJ9Iiwic2lnbmF0dXJlIjoiK3NHdTNJazRJcEpFTmNmeW1KVUtrTTVpZzZLOGtuODg1WnZvQ0d0QTZaeGNlM2dnYjdYUysrMWF1ZnhBcWg1Tk42U3hoY3kyM1pyajE2RENUWHY1VXc9PSIsInQiOiIxcHRIS1laMG81djBUSHBkYWIxUWZVVFRRUlpRSWhaKzloUXVrUTdvN0RlS29La0ozZEJERjJ4TllWZWxvSFk3bWl0R3ZDcmNtQzlUV29JR29BdWhCUT09In0=
  Content: {"blindedPaymentToken":"Sig1oWS4REncmypZ+N0t/OXA0qbkljNSzGrZuiwwbQc=","buildChannel":"release","countryCode":"PL","creativeInstanceId":"3052b175-356d-43ec-bd94-d8d67af2c03b","experiment":{},"payload":{},"platform":"linux","type":"view"}
  Content Type: application/json
  Method: BraveAdsUrlRequestMethod::POST
[17196:17196:1210/092451.236344:VERBOSE1:refill_unblinded_tokens.cc(67)] No need to refill unblinded tokens as we already have 49 unblinded tokens which is above the minimum threshold of 20
[17196:17196:1210/092451.238134:VERBOSE6:ad_notification_event_viewed.cc(44)] Successfully logged ad notification viewed event
[17196:17196:1210/092452.460794:VERBOSE1:redeem_unblinded_token.cc(125)] OnCreateConfirmation
[17196:17196:1210/092452.460843:VERBOSE6:redeem_unblinded_token.cc(127)] URL Response:
  URL: https://ads-serve.bravesoftware.com/v1/confirmation/c6817902-b677-4b65-8ece-0921086d86c9/eyJwYXlsb2FkIjoie1wiYmxpbmRlZFBheW1lbnRUb2tlblwiOlwiU2lnMW9XUzRSRW5jbXlwWitOMHQvT1hBMHFia2xqTlN6R3JadWl3d2JRYz1cIixcImJ1aWxkQ2hhbm5lbFwiOlwicmVsZWFzZVwiLFwiY291bnRyeUNvZGVcIjpcIlBMXCIsXCJjcmVhdGl2ZUluc3RhbmNlSWRcIjpcIjMwNTJiMTc1LTM1NmQtNDNlYy1iZDk0LWQ4ZDY3YWYyYzAzYlwiLFwiZXhwZXJpbWVudFwiOnt9LFwicGF5bG9hZFwiOnt9LFwicGxhdGZvcm1cIjpcImxpbnV4XCIsXCJ0eXBlXCI6XCJ2aWV3XCJ9Iiwic2lnbmF0dXJlIjoiK3NHdTNJazRJcEpFTmNmeW1KVUtrTTVpZzZLOGtuODg1WnZvQ0d0QTZaeGNlM2dnYjdYUysrMWF1ZnhBcWg1Tk42U3hoY3kyM1pyajE2RENUWHY1VXc9PSIsInQiOiIxcHRIS1laMG81djBUSHBkYWIxUWZVVFRRUlpRSWhaKzloUXVrUTdvN0RlS29La0ozZEJERjJ4TllWZWxvSFk3bWl0R3ZDcmNtQzlUV29JR29BdWhCUT09In0=
  Response Status Code: 201
  Response: {"id":"c6817902-b677-4b65-8ece-0921086d86c9","payload":{},"createdAt":"2020-12-10T08:24:54.292Z","type":"view","modifiedAt":"2020-12-10T08:24:54.292Z","creativeInstanceId":"3052b175-356d-43ec-bd94-d8d67af2c03b"}
[17196:17196:1210/092452.460888:VERBOSE1:redeem_unblinded_token.cc(147)] FetchPaymentToken
[17196:17196:1210/092452.460916:VERBOSE2:redeem_unblinded_token.cc(148)] GET /v1/confirmation/{confirmation_id}/paymentToken
[17196:17196:1210/092452.460934:VERBOSE5:redeem_unblinded_token.cc(152)] URL Request:
  URL: https://ads-serve.bravesoftware.com/v1/confirmation/c6817902-b677-4b65-8ece-0921086d86c9/paymentToken
  Method: BraveAdsUrlRequestMethod::GET
[17196:17196:1210/092453.072894:VERBOSE1:redeem_unblinded_token.cc(163)] OnFetchPaymentToken
[17196:17196:1210/092453.073491:VERBOSE6:redeem_unblinded_token.cc(165)] URL Response:
  URL: https://ads-serve.bravesoftware.com/v1/confirmation/c6817902-b677-4b65-8ece-0921086d86c9/paymentToken
  Response Status Code: 200
  Response: {"id":"c6817902-b677-4b65-8ece-0921086d86c9","createdAt":"2020-12-10T08:24:54.292Z","type":"view","modifiedAt":"2020-12-10T08:24:54.331Z","creativeInstanceId":"3052b175-356d-43ec-bd94-d8d67af2c03b","paymentToken":{"publicKey":"bPE1QE65mkIgytffeu7STOfly+x10BXCGuk5pVlOHQU=","batchProof":"bj1FvblX6iZjTmyww819ms6wwEvHlAizt4ytSJp9KAoHE2XiJryEZdzGU83JHTAJ9/DSEdkSoUqVOg3cpFM5Ag==","signedTokens":["Opd06lPAC5GETck2xOQn17C4cI6dCcfObnytFD7e3Bg="]}}
[17196:17196:1210/092453.075319:VERBOSE1:redeem_unblinded_token.cc(339)] Added 1 unblinded payment token with an estimated redemption value of 0.05 BAT, you now have 1 unblinded payment tokens
[17196:17196:1210/092453.075599:VERBOSE1:ads_impl.cc(512)] Successfully redeemed unblinded token with confirmation id c6817902-b677-4b65-8ece-0921086d86c9, creative instance id 3052b175-356d-43ec-bd94-d8d67af2c03b and view

ad click

[17196:17196:1210/092453.633403:VERBOSE3:ad_notification_event_clicked.cc(36)] Clicked ad notification with uuid 6a3ddcfc-d99a-4420-8e25-5a5f48437c6d and creative instance id 3052b175-356d-43ec-bd94-d8d67af2c03b
[17196:17196:1210/092453.633854:VERBOSE1:confirmations.cc(91)] Confirming click ad for creative instance id 3052b175-356d-43ec-bd94-d8d67af2c03b
[17196:17196:1210/092453.634045:VERBOSE1:redeem_unblinded_token.cc(66)] Redeem token
[17196:17196:1210/092453.642968:VERBOSE1:redeem_unblinded_token.cc(107)] CreateConfirmation
[17196:17196:1210/092453.643027:VERBOSE2:redeem_unblinded_token.cc(108)] POST /v1/confirmation/{confirmation_id}/{credential}
[17196:17196:1210/092453.643205:VERBOSE5:redeem_unblinded_token.cc(112)] URL Request:
  URL: https://ads-serve.bravesoftware.com/v1/confirmation/a9384c44-eedb-4560-8453-ab886adb2fd7/eyJwYXlsb2FkIjoie1wiYmxpbmRlZFBheW1lbnRUb2tlblwiOlwiOEJ1UG45UUpkZ0QycTVvc1lTYzJza3RQRE5VdE1mS1VheXlIbEpzcEFSTT1cIixcImJ1aWxkQ2hhbm5lbFwiOlwicmVsZWFzZVwiLFwiY291bnRyeUNvZGVcIjpcIlBMXCIsXCJjcmVhdGl2ZUluc3RhbmNlSWRcIjpcIjMwNTJiMTc1LTM1NmQtNDNlYy1iZDk0LWQ4ZDY3YWYyYzAzYlwiLFwiZXhwZXJpbWVudFwiOnt9LFwicGF5bG9hZFwiOnt9LFwicGxhdGZvcm1cIjpcImxpbnV4XCIsXCJ0eXBlXCI6XCJjbGlja1wifSIsInNpZ25hdHVyZSI6IkNIYXdFU0gzdzVsSTJmWEVmeFlyN0FCNXhGbStDOUZmMCtLWFpORVJpMldRYkxJZk0wT0Z2ZG9tV1ZMOG1aS0o5R1F3R3ZYVjNVanB2S1h5cmNFMVB3PT0iLCJ0IjoiK3hNUnN5Q21tMEhVdktjVVFFNnZTcmVLcUJWZU5mMFZZRWJ3OWRUZEpKUnZkaDN1YmhaWDhtN0RheUFWYmVyc05BMGNYa3dIRjBSTzV2RlFyQUNmU2c9PSJ9
  Content: {"blindedPaymentToken":"8BuPn9QJdgD2q5osYSc2sktPDNUtMfKUayyHlJspARM=","buildChannel":"release","countryCode":"PL","creativeInstanceId":"3052b175-356d-43ec-bd94-d8d67af2c03b","experiment":{},"payload":{},"platform":"linux","type":"click"}
  Content Type: application/json
  Method: BraveAdsUrlRequestMethod::POST
[17196:17196:1210/092453.652591:VERBOSE1:refill_unblinded_tokens.cc(67)] No need to refill unblinded tokens as we already have 48 unblinded tokens which is above the minimum threshold of 20
[17196:17196:1210/092453.652683:VERBOSE1:ad_notification.cc(31)] Failed to trigger ad notification event for uuid 6a3ddcfc-d99a-4420-8e25-5a5f48437c6d
[17196:17196:1210/092453.684233:VERBOSE1:ads_impl.cc(187)] Browser window did become active
[17196:17196:1210/092453.695466:VERBOSE1:ads_impl.cc(187)] Browser window did become active
[17196:17196:1210/092453.696443:ERROR:CONSOLE(1)] "[Shields]: Can't request shields panel data. Error: No tab url specified", source: chrome-extension://mnojpmjdmbbfmejpflffifhffcmidifd/out/brave_extension_background.bundle.js (1)
[17196:17196:1210/092453.701378:VERBOSE1:ad_notification_event_clicked.cc(50)] Successfully logged ad notification clicked event
[17196:17196:1210/092453.702034:ERROR:CONSOLE(1)] "[Shields]: Can't request shields panel data. Error: No tab url specified", source: chrome-extension://mnojpmjdmbbfmejpflffifhffcmidifd/out/brave_extension_background.bundle.js (1)
[17196:17196:1210/092453.722159:ERROR:CONSOLE(1)] "[Shields]: Can't request shields panel data. Error: No tab url specified", source: chrome-extension://mnojpmjdmbbfmejpflffifhffcmidifd/out/brave_extension_background.bundle.js (1)
[17196:17196:1210/092454.783807:VERBOSE1:redeem_unblinded_token.cc(125)] OnCreateConfirmation
[17196:17196:1210/092454.783861:VERBOSE6:redeem_unblinded_token.cc(127)] URL Response:
  URL: https://ads-serve.bravesoftware.com/v1/confirmation/a9384c44-eedb-4560-8453-ab886adb2fd7/eyJwYXlsb2FkIjoie1wiYmxpbmRlZFBheW1lbnRUb2tlblwiOlwiOEJ1UG45UUpkZ0QycTVvc1lTYzJza3RQRE5VdE1mS1VheXlIbEpzcEFSTT1cIixcImJ1aWxkQ2hhbm5lbFwiOlwicmVsZWFzZVwiLFwiY291bnRyeUNvZGVcIjpcIlBMXCIsXCJjcmVhdGl2ZUluc3RhbmNlSWRcIjpcIjMwNTJiMTc1LTM1NmQtNDNlYy1iZDk0LWQ4ZDY3YWYyYzAzYlwiLFwiZXhwZXJpbWVudFwiOnt9LFwicGF5bG9hZFwiOnt9LFwicGxhdGZvcm1cIjpcImxpbnV4XCIsXCJ0eXBlXCI6XCJjbGlja1wifSIsInNpZ25hdHVyZSI6IkNIYXdFU0gzdzVsSTJmWEVmeFlyN0FCNXhGbStDOUZmMCtLWFpORVJpMldRYkxJZk0wT0Z2ZG9tV1ZMOG1aS0o5R1F3R3ZYVjNVanB2S1h5cmNFMVB3PT0iLCJ0IjoiK3hNUnN5Q21tMEhVdktjVVFFNnZTcmVLcUJWZU5mMFZZRWJ3OWRUZEpKUnZkaDN1YmhaWDhtN0RheUFWYmVyc05BMGNYa3dIRjBSTzV2RlFyQUNmU2c9PSJ9
  Response Status Code: 201
  Response: {"id":"a9384c44-eedb-4560-8453-ab886adb2fd7","payload":{},"createdAt":"2020-12-10T08:24:56.595Z","type":"click","modifiedAt":"2020-12-10T08:24:56.595Z","creativeInstanceId":"3052b175-356d-43ec-bd94-d8d67af2c03b"}
[17196:17196:1210/092454.783932:VERBOSE1:redeem_unblinded_token.cc(147)] FetchPaymentToken
[17196:17196:1210/092454.783971:VERBOSE2:redeem_unblinded_token.cc(148)] GET /v1/confirmation/{confirmation_id}/paymentToken
[17196:17196:1210/092454.783991:VERBOSE5:redeem_unblinded_token.cc(152)] URL Request:
  URL: https://ads-serve.bravesoftware.com/v1/confirmation/a9384c44-eedb-4560-8453-ab886adb2fd7/paymentToken
  Method: BraveAdsUrlRequestMethod::GET
[17196:17196:1210/092455.347512:VERBOSE1:publisher.cc(515)] Publisher list is empty
[17196:17196:1210/092455.382260:VERBOSE1:redeem_unblinded_token.cc(163)] OnFetchPaymentToken
[17196:17196:1210/092455.388139:VERBOSE6:redeem_unblinded_token.cc(165)] URL Response:
  URL: https://ads-serve.bravesoftware.com/v1/confirmation/a9384c44-eedb-4560-8453-ab886adb2fd7/paymentToken
  Response Status Code: 200
  Response: {"id":"a9384c44-eedb-4560-8453-ab886adb2fd7","createdAt":"2020-12-10T08:24:56.595Z","type":"click","modifiedAt":"2020-12-10T08:24:56.633Z","creativeInstanceId":"3052b175-356d-43ec-bd94-d8d67af2c03b","paymentToken":{"publicKey":"lLO5tErGoTK0askrALab6pKGAnBHqELSyw/evqZRwH8=","batchProof":"F6DINSjfzwktygWrQ0/IpcWX23U+qMpp89LH3Fp8gAtuaAfvtIiE+6vI9IbbK++8PeaYqr7JJjktVrkTit1TCQ==","signedTokens":["DHA7Ia/VpwDmpt5PzY+Ao7D0uzkfABH7+nchIheeK10="]}}
[17196:17196:1210/092455.388722:VERBOSE1:redeem_unblinded_token.cc(339)] Added 1 unblinded payment token with an estimated redemption value of 0 BAT, you now have 2 unblinded payment tokens
[17196:17196:1210/092455.389802:VERBOSE1:ads_impl.cc(512)] Successfully redeemed unblinded token with confirmation id a9384c44-eedb-4560-8453-ab886adb2fd7, creative instance id 3052b175-356d-43ec-bd94-d8d67af2c03b and click

ad landed

[17196:17196:1210/092505.302952:VERBOSE1:ad_transfer.cc(54)] Visited URL matches the last clicked ad
[17196:17196:1210/092505.303017:VERBOSE1:ad_transfer.cc(101)] Transfer ad for https://www.travala.com/ in 0 godzin, 0 minut i 10 sekund at 09:25
[17196:17196:1210/092515.304195:VERBOSE1:ad_transfer.cc(118)] Transferred ad for https://www.travala.com/
[17196:17196:1210/092515.304347:VERBOSE1:confirmations.cc(91)] Confirming landed ad for creative instance id 3052b175-356d-43ec-bd94-d8d67af2c03b
[17196:17196:1210/092515.304378:VERBOSE1:redeem_unblinded_token.cc(66)] Redeem token
[17196:17196:1210/092515.304475:VERBOSE1:redeem_unblinded_token.cc(107)] CreateConfirmation
[17196:17196:1210/092515.304503:VERBOSE2:redeem_unblinded_token.cc(108)] POST /v1/confirmation/{confirmation_id}/{credential}
[17196:17196:1210/092515.304568:VERBOSE5:redeem_unblinded_token.cc(112)] URL Request:
  URL: https://ads-serve.bravesoftware.com/v1/confirmation/7efc161f-9282-4afd-a329-eebe5fb4e9be/eyJwYXlsb2FkIjoie1wiYmxpbmRlZFBheW1lbnRUb2tlblwiOlwiT283NFdZczJQdHhDeFNzL3BRYWJaWkFjUVBXZm1kd3RaQ0NCVlM2NzIxcz1cIixcImJ1aWxkQ2hhbm5lbFwiOlwicmVsZWFzZVwiLFwiY291bnRyeUNvZGVcIjpcIlBMXCIsXCJjcmVhdGl2ZUluc3RhbmNlSWRcIjpcIjMwNTJiMTc1LTM1NmQtNDNlYy1iZDk0LWQ4ZDY3YWYyYzAzYlwiLFwiZXhwZXJpbWVudFwiOnt9LFwicGF5bG9hZFwiOnt9LFwicGxhdGZvcm1cIjpcImxpbnV4XCIsXCJ0eXBlXCI6XCJsYW5kZWRcIn0iLCJzaWduYXR1cmUiOiIxeXFKdWxCT1duNkhWWjZTSTE5UXFwYmZvWmpqajdWN0p2Q250VjlBSmRwbGUySnd6ZnBrYWVGUEdiNGtIZllBWjZMV3JjYi9xMVFGajNLcW1zVVRUdz09IiwidCI6Im5oWHNMZHdvbWh1SVJHYTA0a0VJdzVBTmR2eUZJSitHRWZaSExDOHZBUk1KNmlncnljRWI4WW0wSmFPc1hCRXBrUkgxdUdaMTN4MzI5MHR1MzhJV2ZBPT0ifQ==
  Content: {"blindedPaymentToken":"Oo74WYs2PtxCxSs/pQabZZAcQPWfmdwtZCCBVS6721s=","buildChannel":"release","countryCode":"PL","creativeInstanceId":"3052b175-356d-43ec-bd94-d8d67af2c03b","experiment":{},"payload":{},"platform":"linux","type":"landed"}
  Content Type: application/json
  Method: BraveAdsUrlRequestMethod::POST
[17196:17196:1210/092515.304889:VERBOSE1:refill_unblinded_tokens.cc(67)] No need to refill unblinded tokens as we already have 47 unblinded tokens which is above the minimum threshold of 20
[17196:17196:1210/092515.315310:VERBOSE6:ad_transfer.cc(128)] Successfully logged transferred ad event
[17196:17196:1210/092516.451364:VERBOSE1:redeem_unblinded_token.cc(125)] OnCreateConfirmation
[17196:17196:1210/092516.451403:VERBOSE6:redeem_unblinded_token.cc(127)] URL Response:
  URL: https://ads-serve.bravesoftware.com/v1/confirmation/7efc161f-9282-4afd-a329-eebe5fb4e9be/eyJwYXlsb2FkIjoie1wiYmxpbmRlZFBheW1lbnRUb2tlblwiOlwiT283NFdZczJQdHhDeFNzL3BRYWJaWkFjUVBXZm1kd3RaQ0NCVlM2NzIxcz1cIixcImJ1aWxkQ2hhbm5lbFwiOlwicmVsZWFzZVwiLFwiY291bnRyeUNvZGVcIjpcIlBMXCIsXCJjcmVhdGl2ZUluc3RhbmNlSWRcIjpcIjMwNTJiMTc1LTM1NmQtNDNlYy1iZDk0LWQ4ZDY3YWYyYzAzYlwiLFwiZXhwZXJpbWVudFwiOnt9LFwicGF5bG9hZFwiOnt9LFwicGxhdGZvcm1cIjpcImxpbnV4XCIsXCJ0eXBlXCI6XCJsYW5kZWRcIn0iLCJzaWduYXR1cmUiOiIxeXFKdWxCT1duNkhWWjZTSTE5UXFwYmZvWmpqajdWN0p2Q250VjlBSmRwbGUySnd6ZnBrYWVGUEdiNGtIZllBWjZMV3JjYi9xMVFGajNLcW1zVVRUdz09IiwidCI6Im5oWHNMZHdvbWh1SVJHYTA0a0VJdzVBTmR2eUZJSitHRWZaSExDOHZBUk1KNmlncnljRWI4WW0wSmFPc1hCRXBrUkgxdUdaMTN4MzI5MHR1MzhJV2ZBPT0ifQ==
  Response Status Code: 201
  Response: {"id":"7efc161f-9282-4afd-a329-eebe5fb4e9be","payload":{},"createdAt":"2020-12-10T08:25:18.295Z","type":"landed","modifiedAt":"2020-12-10T08:25:18.295Z","creativeInstanceId":"3052b175-356d-43ec-bd94-d8d67af2c03b"}
[17196:17196:1210/092516.451450:VERBOSE1:redeem_unblinded_token.cc(147)] FetchPaymentToken
[17196:17196:1210/092516.451478:VERBOSE2:redeem_unblinded_token.cc(148)] GET /v1/confirmation/{confirmation_id}/paymentToken
[17196:17196:1210/092516.451497:VERBOSE5:redeem_unblinded_token.cc(152)] URL Request:
  URL: https://ads-serve.bravesoftware.com/v1/confirmation/7efc161f-9282-4afd-a329-eebe5fb4e9be/paymentToken
  Method: BraveAdsUrlRequestMethod::GET
[17196:17196:1210/092517.034109:VERBOSE1:redeem_unblinded_token.cc(163)] OnFetchPaymentToken
[17196:17196:1210/092517.034143:VERBOSE6:redeem_unblinded_token.cc(165)] URL Response:
  URL: https://ads-serve.bravesoftware.com/v1/confirmation/7efc161f-9282-4afd-a329-eebe5fb4e9be/paymentToken
  Response Status Code: 200
  Response: {"id":"7efc161f-9282-4afd-a329-eebe5fb4e9be","createdAt":"2020-12-10T08:25:18.295Z","type":"landed","modifiedAt":"2020-12-10T08:25:18.326Z","creativeInstanceId":"3052b175-356d-43ec-bd94-d8d67af2c03b","paymentToken":{"publicKey":"lLO5tErGoTK0askrALab6pKGAnBHqELSyw/evqZRwH8=","batchProof":"8j/FBq0DwQ+byu5uiZoQXkMOmup0WVV8gI3Ap22prA9DTZUOapFJU8NR/NYOdTugbhhOkKZHSgmkLVIVl7OSCA==","signedTokens":["CrZs4Y3u5yW2cijSgkzWQhHgB8ywcuHEG4o4L2EYc08="]}}
[17196:17196:1210/092517.035736:VERBOSE1:redeem_unblinded_token.cc(339)] Added 1 unblinded payment token with an estimated redemption value of 0 BAT, you now have 3 unblinded payment tokens
[17196:17196:1210/092517.036644:VERBOSE1:ads_impl.cc(512)] Successfully redeemed unblinded token with confirmation id 7efc161f-9282-4afd-a329-eebe5fb4e9be, creative instance id 3052b175-356d-43ec-bd94-d8d67af2c03b and landed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
2 participants