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

Refactor Brave ads command line arguments to use the --rewards command line arguments #17526

Closed
tmancey opened this issue Aug 17, 2021 · 9 comments · Fixed by brave/brave-core#13521

Comments

@tmancey
Copy link
Contributor

tmancey commented Aug 17, 2021

Brave ads command line arguments:

brave_ads_testing
brave_ads_production
brave_ads_staging
brave_ads_debug

i.e.

--rewards=staging=false (for production)
--rewards=staging=true (for staging)
--rewards=debug=true

@tmancey tmancey added dev-concern feature/ads OS/Android Fixes related to Android browser functionality OS/Desktop labels Aug 17, 2021
@tmancey tmancey added priority/P4 Planned work. We expect to get to it "soon". QA/Yes release-notes/exclude labels May 28, 2022
@tmancey tmancey self-assigned this May 28, 2022
@tmancey tmancey added this to the 1.41.x - Nightly milestone May 31, 2022
@stephendonner stephendonner added the QA/In-Progress Indicates that QA is currently in progress for that particular issue label Jun 23, 2022
@LaurenWags LaurenWags added QA/Blocked and removed QA/In-Progress Indicates that QA is currently in progress for that particular issue labels Jun 23, 2022
@LaurenWags
Copy link
Member

Need to obtain expectations for the --rewards=debug=true arg (for both Rewards and Ads) before this is checked properly. cc @brave/qa-team

@tmancey
Copy link
Contributor Author

tmancey commented Jun 23, 2022

@LaurenWags

Ads

  • Reduces next payment token redemption (cash-out) from ~1 day to ~25 minutes
  • Fetches catalog after ~15 minutes instead of ping defined in the v9/catalog endpoint
  • Conversions are submitted to server after ~10 minutes instead of ~1 day
  • v1/GetState endpoint is fetched every ~5 minutes instead of every ~1 day

I do not see any uses for ledger. cc @emerick

@LaurenWags
Copy link
Member

cc @zenparsing @szilardszaloki @Miyayes in case any of you know something the --rewards=debug=true flag affects within Rewards

@zenparsing
Copy link

@LaurenWags it appears that that flag is not used in the context of Rewards.

@LaurenWags LaurenWags added QA/In-Progress Indicates that QA is currently in progress for that particular issue and removed QA/Blocked labels Jun 27, 2022
@LaurenWags
Copy link
Member

LaurenWags commented Jun 27, 2022

Verified with

Brave | 1.41.80 Chromium: 103.0.5060.53 (Official Build) beta (x86_64)
-- | --
Revision | a1711811edd74ff1cf2150f36ffa3b0dae40b17f-refs/branch-heads/5060@{#853}
OS | macOS Version 12.4 (Build 21F79)

Verified flags listed in #17526 (comment).

--rewards=staging=true - PASSED

Confirmed when using --rewards=staging=true cmd line flag, the following calls were made to staging domains:

Parameters

[ REQUEST ]
> URL: https://api.rewards.bravesoftware.com/v1/parameters
> Method: GET

Issuers

[56160:259:0627/134455.728549:VERBOSE1:issuers.cc(66)] FetchIssuers
[56160:259:0627/134455.728607:VERBOSE2:issuers.cc(67)] GET /v1/issuers/
[56160:259:0627/134455.728632:VERBOSE6:issuers.cc(71)] URL Request:
  URL: https://static.ads.bravesoftware.com/v1/issuers/
  Method: kGet

Subdivision

[56160:259:0627/134455.730774:VERBOSE1:subdivision_targeting.cc(187)] FetchSubdivisionTargeting
[56160:259:0627/134455.730798:VERBOSE2:subdivision_targeting.cc(188)] GET /v1/getstate
[56160:259:0627/134455.730819:VERBOSE6:subdivision_targeting.cc(192)] URL Request:
  URL: https://geo.ads.bravesoftware.com/v1/getstate
  Method: kGet

Catalog

[56160:259:0627/134455.730961:VERBOSE1:catalog.cc(70)] Catalog
[56160:259:0627/134455.730985:VERBOSE2:catalog.cc(71)] GET /v9/catalog
[56160:259:0627/134455.731005:VERBOSE6:catalog.cc(77)] URL Request:
  URL: https://static.ads.bravesoftware.com/v9/catalog
  Method: kGet

Grants

[ REQUEST ]
> URL: https://grant.rewards.bravesoftware.com/v1/promotions?migrate=true&paymentId=4f570e3b-6beb-4613-ac52-47e3fd1089c8&platform=osx
> Method: GET

Create Confirmation

[56160:259:0627/135650.500667:VERBOSE1:redeem_unblinded_token.cc(50)] Redeem unblinded token
[56160:259:0627/135650.500976:VERBOSE1:redeem_unblinded_token.cc(71)] CreateConfirmation
[56160:259:0627/135650.501019:VERBOSE2:redeem_unblinded_token.cc(72)] POST /v2/confirmation/{confirmation_id}/{credential}
[56160:259:0627/135650.501047:VERBOSE6:redeem_unblinded_token.cc(76)] URL Request:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/760b542a-4af4-42........

Fetch Payment Token

[56160:259:0627/135650.921190:VERBOSE1:redeem_unblinded_token.cc(121)] FetchPaymentToken
[56160:259:0627/135650.921248:VERBOSE2:redeem_unblinded_token.cc(122)] GET /v2/confirmation/{confirmation_id}/paymentToken
[56160:259:0627/135650.921286:VERBOSE6:redeem_unblinded_token.cc(126)] URL Request:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/760b542a-4af4-4220-95c0-aa34af8a6ecd/paymentToken
  Method: kGet

Publisher Prefix List

[ REQUEST ]
> URL: https://rewards-stg.bravesoftware.com/publishers/prefix-list
> Method: GET

Get Signed Tokens

[58887:259:0627/164749.501087:VERBOSE1:refill_unblinded_tokens.cc(174)] GetSignedTokens
[58887:259:0627/164749.501238:VERBOSE2:refill_unblinded_tokens.cc(175)] GET /v2/confirmation/token/{payment_id}?nonce={nonce}
[58887:259:0627/164749.501303:VERBOSE6:refill_unblinded_tokens.cc(179)] URL Request:
  URL: https://mywallet.ads.bravesoftware.com/v2/confirmation/token/915fdd5a-27ac-4c0f-ad39-f4c17b24942c?nonce=ac487bfa-81c8-41fb-9807-0e331e0b757d
  Method: kGet
--rewards=staging=false - PASSED

Confirmed when using --rewards=staging=false cmd line flag, the following calls were made to production domains:

Parameters

[ REQUEST ]
> URL: https://api.rewards.brave.com/v1/parameters
> Method: GET

Issuers

[58550:259:0627/164052.937437:VERBOSE1:issuers.cc(66)] FetchIssuers
[58550:259:0627/164052.937490:VERBOSE2:issuers.cc(67)] GET /v1/issuers/
[58550:259:0627/164052.937520:VERBOSE6:issuers.cc(71)] URL Request:
  URL: https://static.ads.brave.com/v1/issuers/
  Method: kGet

Subdivision

[58550:259:0627/164052.940982:VERBOSE1:subdivision_targeting.cc(187)] FetchSubdivisionTargeting
[58550:259:0627/164052.941008:VERBOSE2:subdivision_targeting.cc(188)] GET /v1/getstate
[58550:259:0627/164052.941031:VERBOSE6:subdivision_targeting.cc(192)] URL Request:
  URL: https://geo.ads.brave.com/v1/getstate
  Method: kGet

Catalog

[58550:259:0627/164052.941176:VERBOSE1:catalog.cc(70)] Catalog
[58550:259:0627/164052.941203:VERBOSE2:catalog.cc(71)] GET /v9/catalog
[58550:259:0627/164052.941225:VERBOSE6:catalog.cc(77)] URL Request:
  URL: https://static.ads.brave.com/v9/catalog
  Method: kGet

Grants

[ REQUEST ]
> URL: https://grant.rewards.brave.com/v1/promotions?migrate=true&platform=osx
> Method: GET

Publisher Prefix List

[58550:259:0627/164047.426560:VERBOSE5:ledger_impl.cc(114)] 
[ REQUEST ]
> URL: https://rewards.brave.com/publishers/prefix-list
> Method: GET

Get Signed Tokens

[58550:259:0627/164056.831466:VERBOSE1:refill_unblinded_tokens.cc(174)] GetSignedTokens
[58550:259:0627/164056.831625:VERBOSE2:refill_unblinded_tokens.cc(175)] GET /v2/confirmation/token/{payment_id}?nonce={nonce}
[58550:259:0627/164056.831694:VERBOSE6:refill_unblinded_tokens.cc(179)] URL Request:
  URL: https://mywallet.ads.brave.com/v2/confirmation/token/f4cac19b-5c28-4235-aaa4-7b377baa269c?nonce=c2a0d0a9-2a7b-4e09-96fc-186a66f41d9a
  Method: kGet

Create Confirmation

[58550:259:0627/164629.564879:VERBOSE1:redeem_unblinded_token.cc(71)] CreateConfirmation
[58550:259:0627/164629.564926:VERBOSE2:redeem_unblinded_token.cc(72)] POST /v2/confirmation/{confirmation_id}/{credential}
[58550:259:0627/164629.564956:VERBOSE6:redeem_unblinded_token.cc(76)] URL Request:
  URL: https://anonymous.ads.brave.com/v2/confirmation/7d0c152c-f52d-46b8-8756-1c711fb19120/eyJwYXlsb2.....

Fetch Payment Token

[58550:259:0627/164629.682475:VERBOSE1:redeem_unblinded_token.cc(121)] FetchPaymentToken
[58550:259:0627/164629.682513:VERBOSE2:redeem_unblinded_token.cc(122)] GET /v2/confirmation/{confirmation_id}/paymentToken
[58550:259:0627/164629.682548:VERBOSE6:redeem_unblinded_token.cc(126)] URL Request:
  URL: https://anonymous.ads.brave.com/v2/confirmation/7d0c152c-f52d-46b8-8756-1c711fb19120/paymentToken
  Method: kGet
--rewards=debug=true - PASSED

Verified items listed in #17526 (comment). Note all times listed are approximate due to +/- jitter.

  • Confirmed next payment token redemption (cash-out) reduced to ~25 minutes
[59237:259:0627/165721.354973:VERBOSE1:redeem_unblinded_payment_tokens.cc(70)] Redeem unblinded payment tokens in 0 hours, 35 minutes, 43 seconds at 17:33:04.353
[59237:259:0627/173304.433526:VERBOSE1:redeem_unblinded_payment_tokens.cc(78)] RedeemUnblindedPaymentTokens
[59237:259:0627/173304.433692:VERBOSE2:redeem_unblinded_payment_tokens.cc(89)] PUT /v2/confirmation/payment/{payment_id}
[59237:259:0627/173304.433776:VERBOSE6:redeem_unblinded_payment_tokens.cc(104)] URL Request:
  URL: https://mywallet.ads.bravesoftware.com/v2/confirmation/payment/111adee7-92cf-44ff-af7c-781e65fe12dc
  Content: {"odyssey":"host","payload":"{\"paymentId\":\"111adee7-92cf-44ff-af7c-781e65fe12dc\"}","paymentCredentials":[{"confirmationType":"view","credential":{"signature":"Dcetq0bBd6dpw3LjOXgwukeyVFpc5ZnoVaFElKa/FO1P4PvtUuNOUNZDVb6kUOSPLJxYBQJDzTLVbQUzJoinTA==","t":"TfNxUyI0fGc4gcR1cSLan58r0Sy3xHzFfWZqJMEmtZmqF77Bq2XrYvtsJSHwobgky19AenKgNINGXM7rUeFzEA=="},"publicKey":"/ErFCyyTs6tQ+VCve8GsGcNZ4dZhYKIBisLZIbR+kR4="},{"confirmationType":"view","credential":{"signature":"omKXt8RImBhnpquFlH56opikrn1XW33IYXiMxnvxH0zwy5+t4Fz7pnuvSlDpXqOlsgFtZ1XALyILu/5Zc5s80A==","t":"v2wF4XRvKCSmUb1DZPz7pr/BFoJ2drHblF/qoEK9I/7swW4LPBX/oGg2G8ZvA5wgTQcp5VkJInrfmwd+o6JHAg=="},"publicKey":"/ErFCyyTs6tQ+VCve8GsGcNZ4dZhYKIBisLZIbR+kR4="},{"confirmationType":"dismiss","credential":{"signature":"rwQAasYvc7NLhWGMYJi7TgojxaIiHMC5rSgygO/hLWxNMtMHxp42o4d5v19Jgnt4FQg0nMAPGipTsGCuBmm6PQ==","t":"v8d3bhGg4uAmcebs/djUWOrhQqeWzMzOMez4PdGrMphvzAoShQ8NeKG8txaNSjvUjCw/QKKVrodac+FcVFfKlQ=="},"publicKey":"hPG3j7g7Vb6y635dinW8AVX5Izkh22hXfLXzPpnRRw8="},{"confirmationType":"view","credential":{"signature":"WsvOBTmXYrzAJxUrazbjvpSFPh3kln2f0N98EE3iaF2KY9meuoP41GvbvEo89KgkrAPpvixWz70GmQMZNrCcFQ==","t":"CIGroVdrZ84vvqxbFKQZrKmk1+vRkJ+gwyUNdDORk1prwKnmKvopJNyVJXHpuKA3Y7yI4SpTkaP9A7Ug5fuwVQ=="},"publicKey":"/ErFCyyTs6tQ+VCve8GsGcNZ4dZhYKIBisLZIbR+kR4="},{"confirmationType":"conversion","credential":{"signature":"gANopIW+hceBuG7oXeTm3RFHkdc4urpf4iLawr51QiODIXogHvtjLctvQz78XoO5CBtKe0iWKePPNunUbOZbPg==","t":"Zz0ifgGfOcmIdV5yFzAnpF0lXoih08wnPSBBbQ9ztIOFoBQesiCbVkRPrggFZhpOkR60nJoyyCT6pfCsQBARuw=="},"publicKey":"hPG3j7g7Vb6y635dinW8AVX5Izkh22hXfLXzPpnRRw8="}],"platform":"macos","totals":[{"ad_format":"ad_notification","conversion":"1","dismiss":"1","view":"2"},{"ad_format":"inline_content_ad","view":"1"}]}
  Content Type: application/json
  Method: kPut
[59237:259:0627/173304.433878:VERBOSE7:redeem_unblinded_payment_tokens.cc(105)]   Headers:
accept: application/json
[59237:259:0627/173304.845598:VERBOSE1:redeem_unblinded_payment_tokens.cc(117)] OnRedeemUnblindedPaymentTokens
[59237:259:0627/173304.845734:VERBOSE6:redeem_unblinded_payment_tokens.cc(119)] URL Response:
  URL: https://mywallet.ads.bravesoftware.com/v2/confirmation/payment/111adee7-92cf-44ff-af7c-781e65fe12dc
  Response Status Code: 200
  Response: {"message":"Ok","status":200}
[59237:259:0627/173304.845803:VERBOSE7:redeem_unblinded_payment_tokens.cc(120)]   Headers:
[59237:259:0627/173304.845877:VERBOSE9:confirmation_state_manager.cc(125)] Saving confirmations state
[59237:259:0627/173304.846444:VERBOSE1:account.cc(278)] Successfully redeemed unblinded payment tokens
[59237:259:0627/173304.847692:VERBOSE1:redeem_unblinded_payment_tokens.cc(70)] Redeem unblinded payment tokens in 0 hours, 19 minutes, 12 seconds at 17:52:16.846
  • Confirmed catalog fetched after ~15 minutes instead of ping defined in the v9/catalog endpoint
[59237:259:0627/165623.501597:VERBOSE1:catalog.cc(150)] Fetch catalog in 0 hours, 7 minutes, 12 seconds at 17:03:35.500
[59237:259:0627/170337.557267:VERBOSE1:catalog.cc(150)] Fetch catalog in 0 hours, 0 minutes, 33 seconds at 17:04:10.556
[59237:259:0627/170410.583727:VERBOSE1:catalog.cc(150)] Fetch catalog in 0 hours, 8 minutes, 28 seconds at 17:12:38.582
  • Confirmed conversions are submitted to server after ~10 minutes instead of ~1 day
[59237:259:0627/170947.433022:VERBOSE1:conversions.cc(341)] Conversion for ad_notification with campaign id 8fb041ed-e2da-4463-be1f-2b3d39666f6f, creative set id ea287f01-eec5-4a7d-ae08-e7e1814e9301, creative instance id e9f5984f-5c18-4a9f-8096-425af4252f16 and advertiser id 93130af3-2def-4ecb-b836-b3772e73b3c9
[59237:259:0627/170947.433097:VERBOSE1:conversions.cc(328)] There was a conversion match
[59237:259:0627/170947.434027:VERBOSE6:conversions.cc(391)] Successfully logged conversion event
[59237:259:0627/170947.434857:VERBOSE3:conversions.cc(415)] Successfully appended conversion to queue
[59237:259:0627/170947.435637:VERBOSE1:conversions.cc(558)] Convert ad_notification with campaign id 8fb041ed-e2da-4463-be1f-2b3d39666f6f, creative set id ea287f01-eec5-4a7d-ae08-e7e1814e9301, creative instance id e9f5984f-5c18-4a9f-8096-425af4252f16 and advertiser id 93130af3-2def-4ecb-b836-b3772e73b3c9 in 0 hours, 12 minutes, 7 seconds at 17:21:54.432
[59237:259:0627/172154.459560:VERBOSE1:conversions.cc(473)] Successfully converted ad_notification with campaign id 8fb041ed-e2da-4463-be1f-2b3d39666f6f, creative set id ea287f01-eec5-4a7d-ae08-e7e1814e9301, creative instance id e9f5984f-5c18-4a9f-8096-425af4252f16 and advertiser id 93130af3-2def-4ecb-b836-b3772e73b3c9 on Monday, June 27, 2022 at 5:21:54 PM
[59237:259:0627/172154.462505:VERBOSE3:ads_impl.cc(804)] Successfully processed deposit for ad_notification with creative instance id e9f5984f-5c18-4a9f-8096-425af4252f16 and conversion valued at 0
[59237:259:0627/172154.462690:VERBOSE1:confirmations.cc(61)] Confirming conversion for ad_notification with transaction id 9569c2bb-caff-41f1-aa28-5ab296da1d06 and creative instance id e9f5984f-5c18-4a9f-8096-425af4252f16
[59237:259:0627/172154.462801:VERBOSE1:conversions.cc(241)] Conversion queue is empty
[59237:259:0627/172154.464386:VERBOSE9:confirmation_state_manager.cc(125)] Saving confirmations state
[59237:259:0627/172154.465134:VERBOSE1:redeem_unblinded_token.cc(50)] Redeem unblinded token
[59237:259:0627/172154.465806:VERBOSE1:redeem_unblinded_token.cc(71)] CreateConfirmation
[59237:259:0627/172154.465878:VERBOSE2:redeem_unblinded_token.cc(72)] POST /v2/confirmation/{confirmation_id}/{credential}
[59237:259:0627/172154.465922:VERBOSE6:redeem_unblinded_token.cc(76)] URL Request:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/9f772b44-8fa7-42b5-8cb3-0539c8dc379b/eyJwYXlsb2FkIjoie1wiYmxpbmRlZFBheW1lbnRUb2tlbnNcIjpbXCJLSWZCOE82NENiUmEvYVlRK3QxRTZ5eEVMWjNhQVRDZ0xRWlhuUnUxT3hnPVwiXSxcImJ1aWxkQ2hhbm5lbFwiOlwiYmV0YVwiLFwiY2F0YWxvZ1wiOlt7XCJpZFwiOlwiZGIxZDVjZWFmZWE5N2U4NjEzZGY4NjI5OGUzZTYyNTJhOTBkY2MwMFwifV0sXCJjcmVhdGVkQXRUaW1lc3RhbXBcIjpcIjE2MDEtMDEtMDFUMDE6MDA6MDAuMDAwWlwiLFwiY3JlYXRpdmVJbnN0YW5jZUlkXCI6XCJlOWY1OTg0Zi01YzE4LTRhOWYtODA5Ni00MjVhZjQyNTJmMTZcIixcIm9keXNzZXlcIjpcImhvc3RcIixcInBheWxvYWRcIjp7fSxcInBsYXRmb3JtXCI6XCJtYWNvc1wiLFwicHVibGljS2V5XCI6XCJtcC83OWU2WmFtZ3gzdzJOd1B6ZlY5V0puY0dZNDJweFIwRGpUL1JhZ0dJPVwiLFwic3R1ZGllc1wiOltdLFwic3lzdGVtVGltZXN0YW1wXCI6XCIyMDIyLTA2LTI3VDIxOjAwOjAwLjAwMFpcIixcInR5cGVcIjpcImNvbnZlcnNpb25cIixcInZlcnNpb25OdW1iZXJcIjpcIjEwMy4wLjUwNjAuNTNcIn0iLCJzaWduYXR1cmUiOiJJL2JINGdOdStqamxUZnd3dVB5RnJCZXFXRHM4MXBpR3ZBRlRadVUxdDdIN3dMbWVKbU40WmtwOUZJN3NyWXdVRUF4TVNFeUY4U0VoNEpKdDZxelY3QT09IiwidCI6IlpGRVNCcFd2SzA5UDZPL2FiOGFQa1BXTzh0eUk5YTFRMk1Ga0RyTCt3SmNaeVR2VEZKS1M2WldqYTM5WGpPdDlhN0p2MkJOMGNkUGFMQlJMeXpsS25RPT0ifQ==
  Content: {"blindedPaymentTokens":["KIfB8O64CbRa/aYQ+t1E6yxELZ3aATCgLQZXnRu1Oxg="],"buildChannel":"beta","catalog":[{"id":"db1d5ceafea97e8613df86298e3e6252a90dcc00"}],"createdAtTimestamp":"1601-01-01T01:00:00.000Z","creativeInstanceId":"e9f5984f-5c18-4a9f-8096-425af4252f16","odyssey":"host","payload":{},"platform":"macos","publicKey":"mp/79e6Zamgx3w2NwPzfV9WJncGY42pxR0DjT/RagGI=","studies":[],"systemTimestamp":"2022-06-27T21:00:00.000Z","type":"conversion","versionNumber":"103.0.5060.53"}
  Content Type: application/json
  Method: kPost
[59237:259:0627/172154.466025:VERBOSE7:redeem_unblinded_token.cc(77)]   Headers:
accept: application/json
[59237:259:0627/172154.487095:VERBOSE9:confirmation_state_manager.cc(138)] Successfully saved confirmations state
[59237:259:0627/172155.130277:VERBOSE1:redeem_unblinded_token.cc(87)] OnCreateConfirmation
[59237:259:0627/172155.130409:VERBOSE6:redeem_unblinded_token.cc(89)] URL Response:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/9f772b44-8fa7-42b5-8cb3-0539c8dc379b/eyJwYXlsb2FkIjoie1wiYmxpbmRlZFBheW1lbnRUb2tlbnNcIjpbXCJLSWZCOE82NENiUmEvYVlRK3QxRTZ5eEVMWjNhQVRDZ0xRWlhuUnUxT3hnPVwiXSxcImJ1aWxkQ2hhbm5lbFwiOlwiYmV0YVwiLFwiY2F0YWxvZ1wiOlt7XCJpZFwiOlwiZGIxZDVjZWFmZWE5N2U4NjEzZGY4NjI5OGUzZTYyNTJhOTBkY2MwMFwifV0sXCJjcmVhdGVkQXRUaW1lc3RhbXBcIjpcIjE2MDEtMDEtMDFUMDE6MDA6MDAuMDAwWlwiLFwiY3JlYXRpdmVJbnN0YW5jZUlkXCI6XCJlOWY1OTg0Zi01YzE4LTRhOWYtODA5Ni00MjVhZjQyNTJmMTZcIixcIm9keXNzZXlcIjpcImhvc3RcIixcInBheWxvYWRcIjp7fSxcInBsYXRmb3JtXCI6XCJtYWNvc1wiLFwicHVibGljS2V5XCI6XCJtcC83OWU2WmFtZ3gzdzJOd1B6ZlY5V0puY0dZNDJweFIwRGpUL1JhZ0dJPVwiLFwic3R1ZGllc1wiOltdLFwic3lzdGVtVGltZXN0YW1wXCI6XCIyMDIyLTA2LTI3VDIxOjAwOjAwLjAwMFpcIixcInR5cGVcIjpcImNvbnZlcnNpb25cIixcInZlcnNpb25OdW1iZXJcIjpcIjEwMy4wLjUwNjAuNTNcIn0iLCJzaWduYXR1cmUiOiJJL2JINGdOdStqamxUZnd3dVB5RnJCZXFXRHM4MXBpR3ZBRlRadVUxdDdIN3dMbWVKbU40WmtwOUZJN3NyWXdVRUF4TVNFeUY4U0VoNEpKdDZxelY3QT09IiwidCI6IlpGRVNCcFd2SzA5UDZPL2FiOGFQa1BXTzh0eUk5YTFRMk1Ga0RyTCt3SmNaeVR2VEZKS1M2WldqYTM5WGpPdDlhN0p2MkJOMGNkUGFMQlJMeXpsS25RPT0ifQ==
  Response Status Code: 201
  Response: {"id":"9f772b44-8fa7-42b5-8cb3-0539c8dc379b","payload":{},"createdAt":"2022-06-27T21:21:55.117Z","type":"conversion","modifiedAt":"2022-06-27T21:21:55.117Z","creativeInstanceId":"e9f5984f-5c18-4a9f-8096-425af4252f16"}
x-served-by: cache-ewr18127-EWR
[59237:259:0627/172155.130738:VERBOSE1:redeem_unblinded_token.cc(121)] FetchPaymentToken
[59237:259:0627/172155.130795:VERBOSE2:redeem_unblinded_token.cc(122)] GET /v2/confirmation/{confirmation_id}/paymentToken
[59237:259:0627/172155.130849:VERBOSE6:redeem_unblinded_token.cc(126)] URL Request:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/9f772b44-8fa7-42b5-8cb3-0539c8dc379b/paymentToken
  Method: kGet
[59237:259:0627/172155.131129:VERBOSE7:redeem_unblinded_token.cc(127)]   Headers:

[59237:259:0627/172155.428032:VERBOSE1:redeem_unblinded_token.cc(137)] OnFetchPaymentToken
[59237:259:0627/172155.428159:VERBOSE6:redeem_unblinded_token.cc(139)] URL Response:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/9f772b44-8fa7-42b5-8cb3-0539c8dc379b/paymentToken
  Response Status Code: 202
  Response: {"error":"Payment Tokens are not ready","statusCode":202}
[59237:259:0627/172155.428205:VERBOSE7:redeem_unblinded_token.cc(140)]   Headers:
[59237:259:0627/172155.428288:VERBOSE1:redeem_unblinded_token.cc(157)] Payment token is not ready
[59237:259:0627/172155.428330:VERBOSE1:confirmations.cc(323)] Failed to redeem unblinded token for ad_notification with confirmation id 9f772b44-8fa7-42b5-8cb3-0539c8dc379b, transaction id 9569c2bb-caff-41f1-aa28-5ab296da1d06, creative instance id e9f5984f-5c18-4a9f-8096-425af4252f16 and conversion
[59237:259:0627/172155.428368:VERBOSE9:confirmation_state_manager.cc(125)] Saving confirmations state
[59237:259:0627/172155.428848:VERBOSE1:confirmations.cc(205)] Added conversion confirmation for ad_notification with id 9f772b44-8fa7-42b5-8cb3-0539c8dc379b, transaction id9569c2bb-caff-41f1-aa28-5ab296da1d06 and creative instance id e9f5984f-5c18-4a9f-8096-425af4252f16 to the confirmations queue
[59237:259:0627/172155.429624:VERBOSE1:refill_unblinded_tokens.cc(92)] No need to refill unblinded tokens as we already have 45 unblinded tokens which is above the minimum threshold of 20
[59237:259:0627/172155.430704:VERBOSE1:confirmations.cc(100)] Retry sending failed confirmations in 0 hours, 0 minutes, 8 seconds at 17:22:03.429
[59237:259:0627/172155.451630:VERBOSE9:confirmation_state_manager.cc(138)] Successfully saved confirmations state
[59237:259:0627/172203.440742:VERBOSE1:confirmations.cc(229)] Removed conversion confirmation for ad_notification with id 9f772b44-8fa7-42b5-8cb3-0539c8dc379b, transaction id 9569c2bb-caff-41f1-aa28-5ab296da1d06 and creative instance id e9f5984f-5c18-4a9f-8096-425af4252f16 from the confirmations queue
[59237:259:0627/172203.440906:VERBOSE9:confirmation_state_manager.cc(125)] Saving confirmations state
[59237:259:0627/172203.441611:VERBOSE1:redeem_unblinded_token.cc(50)] Redeem unblinded token
[59237:259:0627/172203.442342:VERBOSE1:redeem_unblinded_token.cc(121)] FetchPaymentToken
[59237:259:0627/172203.442416:VERBOSE2:redeem_unblinded_token.cc(122)] GET /v2/confirmation/{confirmation_id}/paymentToken
[59237:259:0627/172203.442458:VERBOSE6:redeem_unblinded_token.cc(126)] URL Request:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/9f772b44-8fa7-42b5-8cb3-0539c8dc379b/paymentToken
  Method: kGet
[59237:259:0627/172203.442496:VERBOSE7:redeem_unblinded_token.cc(127)]   Headers:

[59237:259:0627/172203.464925:VERBOSE9:confirmation_state_manager.cc(138)] Successfully saved confirmations state
[59237:259:0627/172203.770556:VERBOSE1:redeem_unblinded_token.cc(137)] OnFetchPaymentToken
[59237:259:0627/172203.770647:VERBOSE6:redeem_unblinded_token.cc(139)] URL Response:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/9f772b44-8fa7-42b5-8cb3-0539c8dc379b/paymentToken
  Response Status Code: 200
  Response: {"id":"9f772b44-8fa7-42b5-8cb3-0539c8dc379b","createdAt":"2022-06-27T21:21:55.117Z","type":"conversion","modifiedAt":"2022-06-27T21:22:00.277Z","creativeInstanceId":"e9f5984f-5c18-4a9f-8096-425af4252f16","paymentToken":{"publicKey":"hPG3j7g7Vb6y635dinW8AVX5Izkh22hXfLXzPpnRRw8=","batchProof":"Ub6u+NZ8tz86lEKFauDIdwETA27rcFUQwvgpDSfniAhGFOHfVaEFF9evE/tYKQ3mQR9gw6Wf7rR8g9XPGS19AQ==","signedTokens":["tFZo7SP6V8/c4ZGwyISbiTb++ZdX7P1bHzBArQVPdjY="]}}
[59237:259:0627/172203.771769:VERBOSE9:confirmation_state_manager.cc(125)] Saving confirmations state
[59237:259:0627/172203.773476:VERBOSE1:confirmations.cc(303)] Successfully redeemed unblinded token for ad_notification with confirmation id 9f772b44-8fa7-42b5-8cb3-0539c8dc379b, transaction id 9569c2bb-caff-41f1-aa28-5ab296da1d06, creative instance id e9f5984f-5c18-4a9f-8096-425af4252f16 and conversion. You now have 5 unblinded payment tokens which will be redeemed in 0 hours, 11 minutes, 1 second at 17:33:04.353
  • Confirmed v1/GetState endpoint fetched every ~5 min
[59237:259:0627/165854.522742:VERBOSE1:subdivision_targeting.cc(283)] Fetch ads subdivision target in 0 hours, 4 minutes, 31 seconds at 17:03:25.522
[59237:259:0627/170325.588197:VERBOSE1:subdivision_targeting.cc(283)] Fetch ads subdivision target in 0 hours, 2 minutes, 57 seconds at 17:06:22.587
[59237:259:0627/170622.610743:VERBOSE1:subdivision_targeting.cc(283)] Fetch ads subdivision target in 0 hours, 1 minute, 11 seconds at 17:07:33.609

@LaurenWags LaurenWags added QA Pass-macOS and removed QA/In-Progress Indicates that QA is currently in progress for that particular issue labels Jun 27, 2022
@stephendonner
Copy link

stephendonner commented Jul 7, 2022

Verification PASSED using

Brave 1.41.94 Chromium: 103.0.5060.114 (Official Build) (64-bit)
Revision a1c2360c5b02a6d4d6ab33796ad8a268a6128226-refs/branch-heads/5060@{#1124}
OS Windows 10 Version 21H2 (Build 19044.1806)

Verified flags listed in #17526 (comment).

--rewards=staging=true - PASSED

Commandline used:

--enable-logging=stderr --v=0 --vmodule="*/variations/*"=9,"*/bat-native-ledger/*"=9,"*/brave_rewards/*"=9,"*/bat-native-ads/*"=9,"*/bat-native-confirmations/*"=9,"*/brave_ads/*"=9,"*/brave_user_model/*"=9 --rewards=staging=true

Confirmed when using --rewards=staging=true cmd line flag, the following calls were made to staging domains:

Parameters

[ REQUEST ]
> URL: https://api.rewards.bravesoftware.com/v1/parameters
> Method: GET

Issuers

[732:8444:0707/125133.225:VERBOSE1:issuers.cc(66)] FetchIssuers
[732:8444:0707/125133.225:VERBOSE2:issuers.cc(67)] GET /v1/issuers/
[732:8444:0707/125133.225:VERBOSE6:issuers.cc(71)] URL Request:
  URL: https://static.ads.bravesoftware.com/v1/issuers/
  Method: kGet

Subdivision

[732:8444:0707/125133.228:VERBOSE1:subdivision_targeting.cc(187)] FetchSubdivisionTargeting
[732:8444:0707/125133.228:VERBOSE2:subdivision_targeting.cc(188)] GET /v1/getstate
[732:8444:0707/125133.228:VERBOSE6:subdivision_targeting.cc(192)] URL Request:
  URL: https://geo.ads.bravesoftware.com/v1/getstate
  Method: kGet

Catalog

[732:8444:0707/125133.228:VERBOSE1:catalog.cc(70)] Catalog
[732:8444:0707/125133.228:VERBOSE2:catalog.cc(71)] GET /v9/catalog
[732:8444:0707/125133.228:VERBOSE6:catalog.cc(77)] URL Request:
    URL: https://static.ads.bravesoftware.com/v9/catalog
    Method: kGet

Grants

[ REQUEST ]
    > URL: https://grant.rewards.bravesoftware.com/v1/promotions?migrate=true&paymentId=1aead9f8-b4fa-462e-b749-5d4576871519&platform=windows
    > Method: GET

Create Confirmation

1920:14696:0707/130952.006:VERBOSE1:redeem_unblinded_token.cc(50)] Redeem unblinded token[1920:14696:0707/130952.008:VERBOSE1:redeem_unblinded_token.cc(71)] CreateConfirmation
    [1920:14696:0707/130952.008:VERBOSE2:redeem_unblinded_token.cc(72)] POST /v2/confirmation/{confirmation_id}/{credential}
    [1920:14696:0707/130952.008:VERBOSE6:redeem_unblinded_token.cc(76)] URL Request:
      URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/794762e8-45c0-4cac-9f

Fetch Payment Token

920:14696:0707/130952.125:VERBOSE1:redeem_unblinded_token.cc(121)] FetchPaymentToken
    [1920:14696:0707/130952.125:VERBOSE2:redeem_unblinded_token.cc(122)] GET /v2/confirmation/{confirmation_id}/paymentToken
    [1920:14696:0707/130952.125:VERBOSE6:redeem_unblinded_token.cc(126)] URL Request:
      URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/794762e8-45c0-4cac-9fc6-a20be179cac7/paymentToken
      Method: kGet

Publisher Prefix LIst

[ RESPONSE - OnRequest ]
> Url: https://rewards-stg.bravesoftware.com/publishers/prefix-list
> Result: Success
> HTTP Code: 200

Get Signed Tokens

[9496:11280:0707/135059.240:VERBOSE1:refill_unblinded_tokens.cc(174)] GetSignedTokens
[9496:11280:0707/135059.240:VERBOSE2:refill_unblinded_tokens.cc(175)] GET /v2/confirmation/token/{payment_id}?nonce={nonce}
[9496:11280:0707/135059.242:VERBOSE6:refill_unblinded_tokens.cc(179)] URL Request:
  URL: https://mywallet.ads.bravesoftware.com/v2/confirmation/token/d4a41c0d-2acc-4d20-98c0-e714dfd1050a?nonce=9d00e921-559e-437f-8942-79284c9d1e66
  Method: kGet
--rewards=staging=false - PASSED

Commandline used:

--enable-logging=stderr --v=0 --vmodule="*/variations/*"=9,"*/bat-native-ledger/*"=9,"*/brave_rewards/*"=9,"*/bat-native-ads/*"=9,"*/bat-native-confirmations/*"=9,"*/brave_ads/*"=9,"*/brave_user_model/*"=9 --rewards=staging=false

Confirmed when using --rewards=staging=false cmd line flag, the following calls were made to production domains:

Parameters

[ REQUEST ]
> URL: https://api.rewards.brave.com/v1/parameters
> Method: GET

Issuers

[7092:8640:0707/145001.895:VERBOSE1:issuers.cc(66)] FetchIssuers
[7092:8640:0707/145001.895:VERBOSE2:issuers.cc(67)] GET /v1/issuers/
[7092:8640:0707/145001.895:VERBOSE6:issuers.cc(71)] URL Request:
  URL: https://static.ads.brave.com/v1/issuers/
  Method: kGet

Subdivision

[7092:8640:0707/145001.904:VERBOSE1:subdivision_targeting.cc(187)] FetchSubdivisionTargeting
[7092:8640:0707/145001.904:VERBOSE2:subdivision_targeting.cc(188)] GET /v1/getstate
[7092:8640:0707/145001.905:VERBOSE6:subdivision_targeting.cc(192)] URL Request:
  URL: https://geo.ads.brave.com/v1/getstate
  Method: kGet

Catalog

[7092:8640:0707/145001.905:VERBOSE1:catalog.cc(70)] Catalog
[7092:8640:0707/145001.905:VERBOSE2:catalog.cc(71)] GET /v9/catalog
[7092:8640:0707/145001.905:VERBOSE6:catalog.cc(77)] URL Request:
  URL: https://static.ads.brave.com/v9/catalog
  Method: kGet

Grants

[ REQUEST ]
> URL: https://grant.rewards.brave.com/v1/promotions?migrate=true&platform=windows
> Method: GET

Publisher Prefix List

[ REQUEST ]
> URL: https://rewards.brave.com/publishers/prefix-list
> Method: GET

Get Signed Tokens

[7092:8640:0707/145002.476:VERBOSE1:refill_unblinded_tokens.cc(174)] GetSignedTokens
[7092:8640:0707/145002.476:VERBOSE2:refill_unblinded_tokens.cc(175)] GET /v2/confirmation/token/{payment_id}?nonce={nonce}
[7092:8640:0707/145002.476:VERBOSE6:refill_unblinded_tokens.cc(179)] URL Request:
  URL: https://mywallet.ads.brave.com/v2/confirmation/token/6d113e46-ebed-4df2-a4ab-eaf842914cf8?nonce=94d1ea3a-2f86-4ecd-8c60-09b3e9c6a49c
  Method: kGet

Fetch Payment Token

[7092:8640:0707/145011.582:VERBOSE1:redeem_unblinded_token.cc(121)] FetchPaymentToken
[7092:8640:0707/145011.582:VERBOSE2:redeem_unblinded_token.cc(122)] GET /v2/confirmation/{confirmation_id}/paymentToken
[7092:8640:0707/145011.582:VERBOSE6:redeem_unblinded_token.cc(126)] URL Request:
  URL: https://anonymous.ads.brave.com/v2/confirmation/e3fc980c-fb21-4b10-84f7-badd8b3569d4/paymentToken
  Method: kGet
--rewards=debug=true - PASSED

Verified items listed in #17526 (comment). Note all times listed are approximate due to +/- jitter.

Commandline used:

--enable-logging=stderr --v=0 --vmodule="*/variations/*"=9,"*/bat-native-ledger/*"=9,"*/brave_rewards/*"=9,"*/bat-native-ads/*"=9,"*/bat-native-confirmations/*"=9,"*/brave_ads/*"=9,"*/brave_user_model/*"=9 --rewards=debug=true

Confirmed payment-token redemption time reduced to ~25 minutes - PASSED

[7184:1524:0711/114640.266:VERBOSE1:redeem_unblinded_payment_tokens.cc(70)] Redeem unblinded payment tokens in 1 hour, 46 minutes, 40 seconds at 13:33:20.266
[7576:11688:0711/140944.313:VERBOSE1:redeem_unblinded_payment_tokens.cc(78)] RedeemUnblindedPaymentTokens
[7576:11688:0711/140944.313:VERBOSE2:redeem_unblinded_payment_tokens.cc(89)] PUT /v2/confirmation/payment/{payment_id}
[7576:11688:0711/140944.314:VERBOSE6:redeem_unblinded_payment_tokens.cc(104)] URL Request:
  URL: https://mywallet.ads.brave.com/v2/confirmation/payment/931c7d84-0b1a-4c72-9afa-89617605269b
  Content: {"odyssey":"host","payload":"{\"paymentId\":\"931c7d84-0b1a-4c72-9afa-89617605269b\"}","paymentCredentials":[{"confirmationType":"view","credential":{"signature":"Wb8xlW/8dcPdMO+8cwRjHUCplVarqeihrf1iWf2tJGEoKYIClHOEqiold/gcu5f6qMmp0kd+p4mLYGbOjRzpGw==","t":"mGZXcpbFbde1os07jGQxtb/PiIvGKHLHdwQzN6iJUcJBvIrb/PN/cWWwhstxPItYHecTYEpVEeuPt52YR7Wp6A=="},"publicKey":"Yr6rIDKVzv/Sg3x/z67J8J7S260Weft8jDZBlmkqGDE="},{"confirmationType":"dismiss","credential":{"signature":"irv8cjKDOUJkMcleURJ45FwvEXRHpCokRH3DPxo7vu/zFzW+G1SbsvujJDis/VKp+fwihUCR/23eGRKAU7Ba1Q==","t":"b8uqK03E5Zw9le4KGWML4tqkvkl+lUGIUB1uRggHKnIRPUGE8M0Uklw+saJT2Xl+G39CnfAECBLIDBCV8uPPTw=="},"publicKey":"3Cs+r50yDnc/z7Y588QIrelq+JkUlvzYN0ZhlU+PDWA="}],"platform":"windows","totals":[{"ad_format":"ad_notification","dismiss":"1","view":"1"}]}
  Content Type: application/json
  Method: kPut
[7576:11688:0711/140944.314:VERBOSE7:redeem_unblinded_payment_tokens.cc(105)]   Headers:
accept: application/json
[7576:11688:0711/140944.442:VERBOSE1:redeem_unblinded_payment_tokens.cc(117)] OnRedeemUnblindedPaymentTokens
[7576:11688:0711/140944.442:VERBOSE6:redeem_unblinded_payment_tokens.cc(119)] URL Response:
  URL: https://mywallet.ads.brave.com/v2/confirmation/payment/931c7d84-0b1a-4c72-9afa-89617605269b
  Response Status Code: 200
  Response: {"message":"Ok","status":200}
[7576:11688:0711/140944.443:VERBOSE7:redeem_unblinded_payment_tokens.cc(120)]   Headers:

[7576:11688:0711/140944.445:VERBOSE9:confirmation_state_manager.cc(125)] Saving confirmations state
[7576:11688:0711/140944.446:VERBOSE1:account.cc(278)] Successfully redeemed unblinded payment tokens
[7576:11688:0711/140944.448:VERBOSE1:redeem_unblinded_payment_tokens.cc(70)] Redeem unblinded payment tokens in 0 hours, 16 minutes, 51 seconds at 14:26:35.444

Confirmed catalog fetches after ~15 minutes (or less) instead of ping defined in the v9/catalog endpoint - PASSED

[16272:18436:0707/163926.580:VERBOSE1:catalog.cc(150)] Fetch catalog in 0 hours, 5 minutes, 49 seconds at 16:45:15.558
[16272:18436:0707/163926.552:VERBOSE1:catalog.cc(107)] Successfully fetched catalog

Confirmed conversions are submitted to server after ~10 minutes instead of ~1 day - PASSED

[9660:6908:0710/170146.898:VERBOSE1:conversions.cc(341)] Conversion for ad_notification with campaign id d1e25388-b362-4f30-bd4b-36b8205e59e5, creative set id 5f8c4787-8431-49a5-9d09-bba40f8ad5f4, creative instance id 4cda3ae7-1f70-4bca-b361-ca01d6a8f1ed and advertiser id a34de75d-5654-4331-8713-8f4d4e2b6bf7
[9660:6908:0710/170146.899:VERBOSE1:conversions.cc(328)] There was a conversion match
[9660:6908:0710/170146.903:VERBOSE6:conversions.cc(391)] Successfully logged conversion event
[9660:6908:0710/170146.906:VERBOSE3:conversions.cc(415)] Successfully appended conversion to queue
[9660:6908:0710/170146.909:VERBOSE1:conversions.cc(558)] Convert ad_notification with campaign id d1e25388-b362-4f30-bd4b-36b8205e59e5, creative set id 5f8c4787-8431-49a5-9d09-bba40f8ad5f4, creative instance id 4cda3ae7-1f70-4bca-b361-ca01d6a8f1ed and advertiser id a34de75d-5654-4331-8713-8f4d4e2b6bf7 in 0 hours, 14 minutes, 19 seconds at 17:16:05.898
[9660:6908:0710/170128.370:VERBOSE3:ads_impl.cc(804)] Successfully processed deposit for ad_notification with creative instance id 4cda3ae7-1f70-4bca-b361-ca01d6a8f1ed and view valued at 0.01
[9660:6908:0710/170128.370:VERBOSE1:confirmations.cc(61)] Confirming view for ad_notification with transaction id 44f52093-abb6-4291-b1e1-648b7bbd97b7 and creative instance id 4cda3ae7-1f70-4bca-b361-ca01d6a8f1ed
[9660:6908:0710/170128.370:VERBOSE9:confirmation_state_manager.cc(125)] Saving confirmations state
[9660:6908:0710/170128.370:VERBOSE1:redeem_unblinded_token.cc(50)] Redeem unblinded token
[9660:6908:0710/170128.370:VERBOSE1:redeem_unblinded_token.cc(71)] CreateConfirmation
[9660:6908:0710/170128.370:VERBOSE2:redeem_unblinded_token.cc(72)] POST /v2/confirmation/{confirmation_id}/{credential}
[9660:6908:0710/170128.370:VERBOSE6:redeem_unblinded_token.cc(76)] URL Request:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/62c30807-e57a-
  Content: {"blindedPaymentTokens":["wMEUs/XQGUp3fqEmcSrxTTaDP39Bpc/8qM4mkKBpGEI="],"buildChannel":"release","catalog":[{"id":"07250136f2a3e6fc7313d3fd822c769a13912cab"}],"countryCode":"US","createdAtTimestamp":"2022-07-11T00:00:00.000Z","creativeInstanceId":"4cda3ae7-1f70-4bca-b361-ca01d6a8f1ed","odyssey":"host","payload":{},"platform":"windows","publicKey":"mp/79e6Zamgx3w2NwPzfV9WJncGY42pxR0DjT/RagGI=","studies":[],"systemTimestamp":"2022-07-11T00:00:00.000Z","type":"view","versionNumber":"103.0.5060.114"}
  Content Type: application/json
  Method: kPost
[9660:6908:0710/170128.371:VERBOSE7:redeem_unblinded_token.cc(77)]   Headers:
♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦accept: application/json
[9660:6908:0710/170128.374:VERBOSE9:confirmation_state_manager.cc(138)] Successfully saved confirmations state
[9660:6908:0710/170128.724:VERBOSE1:redeem_unblinded_token.cc(87)] OnCreateConfirmation
[9660:6908:0710/170128.728:VERBOSE6:redeem_unblinded_token.cc(89)] URL Response:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/62c30807-e57a-
  Response Status Code: 201
  Response: {"id":"62c30807-e57a-4d41-8db1-0d20b24987a3","payload":{},"createdAt":"2022-07-11T00:01:23.341Z","type":"view","modifiedAt":"2022-07-11T00:01:23.341Z","creativeInstanceId":"4cda3ae7-1f70-4bca-b361-ca01d6a8f1ed"}
[9660:6908:0710/170128.728:VERBOSE7:redeem_unblinded_token.cc(90)]   Headers:
[9660:6908:0710/170128.729:VERBOSE1:redeem_unblinded_token.cc(121)] FetchPaymentToken
[9660:6908:0710/170128.729:VERBOSE2:redeem_unblinded_token.cc(122)] GET /v2/confirmation/{confirmation_id}/paymentToken
[9660:6908:0710/170128.729:VERBOSE6:redeem_unblinded_token.cc(126)] URL Request:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/62c30807-e57a-4d41-8db1-0d20b24987a3/paymentToken
  Method: kGet
[9660:6908:0710/170128.729:VERBOSE7:redeem_unblinded_token.cc(127)]   Headers:

[9660:6908:0710/170128.807:VERBOSE1:redeem_unblinded_token.cc(137)] OnFetchPaymentToken
[9660:6908:0710/170128.807:VERBOSE6:redeem_unblinded_token.cc(139)] URL Response:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/62c30807-e57a-4d41-8db1-0d20b24987a3/paymentToken
  Response Status Code: 202
  Response: {"error":"Payment Tokens are not ready","statusCode":202}
[9660:6908:0710/170128.807:VERBOSE7:redeem_unblinded_token.cc(140)]   Headers:
[9660:6908:0710/170128.807:VERBOSE1:redeem_unblinded_token.cc(157)] Payment token is not ready
...
[9660:6908:0710/170141.926:VERBOSE1:confirmations.cc(303)] Successfully redeemed unblinded token for ad_notification with confirmation id 62c30807-e57a-4d41-8db1-0d20b24987a3, transaction id 44f52093-abb6-4291-b1e1-648b7bbd97b7, creative instance id 4cda3ae7-1f70-4bca-b361-ca01d6a8f1ed and view. You now have 1 unblinded payment tokens which will be redeemed in 0 hours, 28 minutes, 15 seconds at 17:29:57.012
[9660:6908:0710/170141.926:VERBOSE1:refill_unblinded_tokens.cc(92)] No need to refill unblinded tokens as we already have 48 unblinded tokens which is above the minimum threshold of 20
[9660:6908:0710/170141.928:VERBOSE1:confirmations.cc(100)] Retry sending failed confirmations in 0 hours, 0 minutes, 18 seconds at 17:01:59.927
[9660:6908:0710/170141.930:VERBOSE9:confirmation_state_manager.cc(138)] Successfully saved confirmations state
[9660:6908:0710/170143.645:VERBOSE6:transfer.cc(108)] Successfully logged transferred ad event
[9660:6908:0710/170143.645:VERBOSE1:ads_impl.cc(982)] Transferred ad for https://www.apple.com/
[9660:6908:0710/170143.652:VERBOSE3:ads_impl.cc(804)] Successfully processed deposit for ad_notification with creative instance id 4cda3ae7-1f70-4bca-b361-ca01d6a8f1ed and landed valued at 0
[9660:6908:0710/170143.652:VERBOSE1:confirmations.cc(61)] Confirming landed for ad_notification with transaction id 8782374d-c650-42ab-9519-0b0343fec4af and creative instance id 4cda3ae7-1f70-4bca-b361-ca01d6a8f1ed
[9660:6908:0710/170143.652:VERBOSE9:confirmation_state_manager.cc(125)] Saving confirmations state
[9660:6908:0710/170143.652:VERBOSE1:redeem_unblinded_token.cc(50)] Redeem unblinded token
[9660:6908:0710/170143.652:VERBOSE1:redeem_unblinded_token.cc(71)] CreateConfirmation
[9660:6908:0710/170143.652:VERBOSE2:redeem_unblinded_token.cc(72)] POST /v2/confirmation/{confirmation_id}/{credential}
[9660:6908:0710/170143.652:VERBOSE6:redeem_unblinded_token.cc(76)] URL Request:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/241aff57-e18e-
  Content: {"blindedPaymentTokens":["ZFqW2IujjJ3oK2oQMGL7tOJT/mEnmAwFY3/scMOcLzw="],"buildChannel":"release","catalog":[{"id":"07250136f2a3e6fc7313d3fd822c769a13912cab"}],"countryCode":"US","createdAtTimestamp":"2022-07-11T00:00:00.000Z","creativeInstanceId":"4cda3ae7-1f70-4bca-b361-ca01d6a8f1ed","odyssey":"host","payload":{},"platform":"windows","publicKey":"mp/79e6Zamgx3w2NwPzfV9WJncGY42pxR0DjT/RagGI=","studies":[],"systemTimestamp":"2022-07-11T00:00:00.000Z","type":"landed","versionNumber":"103.0.5060.114"}
  Content Type: application/json
  Method: kPost
[9660:6908:0710/170143.652:VERBOSE7:redeem_unblinded_token.cc(77)]   Headers:
♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦♦accept: application/json
[9660:6908:0710/170143.661:VERBOSE9:confirmation_state_manager.cc(138)] Successfully saved confirmations state
[9660:6908:0710/170143.774:VERBOSE1:redeem_unblinded_token.cc(87)] OnCreateConfirmation
[9660:6908:0710/170143.775:VERBOSE6:redeem_unblinded_token.cc(89)] URL Response:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/241aff57-e18e-
  Response Status Code: 201
  Response: {"id":"241aff57-e18e-4a9d-9383-c57af94d1485","payload":{},"createdAt":"2022-07-11T00:01:38.413Z","type":"landed","modifiedAt":"2022-07-11T00:01:38.413Z","creativeInstanceId":"4cda3ae7-1f70-4bca-b361-ca01d6a8f1ed"}
[9660:6908:0710/170143.776:VERBOSE7:redeem_unblinded_token.cc(90)]   Headers:
[9660:6908:0710/170143.777:VERBOSE1:redeem_unblinded_token.cc(121)] FetchPaymentToken
[9660:6908:0710/170143.777:VERBOSE2:redeem_unblinded_token.cc(122)] GET /v2/confirmation/{confirmation_id}/paymentToken
[9660:6908:0710/170143.777:VERBOSE6:redeem_unblinded_token.cc(126)] URL Request:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/241aff57-e18e-4a9d-9383-c57af94d1485/paymentToken
  Method: kGet
[9660:6908:0710/170143.777:VERBOSE7:redeem_unblinded_token.cc(127)]   Headers:

[9660:6908:0710/170143.838:VERBOSE1:redeem_unblinded_token.cc(137)] OnFetchPaymentToken
[9660:6908:0710/170143.838:VERBOSE6:redeem_unblinded_token.cc(139)] URL Response:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/241aff57-e18e-4a9d-9383-c57af94d1485/paymentToken
  Response Status Code: 202
  Response: {"error":"Payment Tokens are not ready","statusCode":202}
[9660:6908:0710/170143.839:VERBOSE7:redeem_unblinded_token.cc(140)]   Headers:
[9660:6908:0710/170143.841:VERBOSE1:redeem_unblinded_token.cc(157)] Payment token is not ready
[9660:6908:0710/170143.842:VERBOSE1:confirmations.cc(323)] Failed to redeem unblinded token for ad_notification with confirmation id 241aff57-e18e-4a9d-9383-c57af94d1485, transaction id 8782374d-c650-42ab-9519-0b0343fec4af, creative instance id 4cda3ae7-1f70-4bca-b361-ca01d6a8f1ed and landed
[9660:6908:0710/170143.842:VERBOSE9:confirmation_state_manager.cc(125)] Saving confirmations state
[9660:6908:0710/170143.842:VERBOSE1:confirmations.cc(205)] Added landed confirmation for ad_notification with id 241aff57-e18e-4a9d-9383-c57af94d1485, transaction id8782374d-c650-42ab-9519-0b0343fec4af and creative instance id 4cda3ae7-1f70-4bca-b361-ca01d6a8f1ed to the confirmations queue
[9660:6908:0710/170143.843:VERBOSE1:refill_unblinded_tokens.cc(92)] No need to refill unblinded tokens as we already have 47 unblinded tokens which is above the minimum threshold of 20
[9660:6908:0710/170143.844:VERBOSE1:confirmations.cc(100)] Retry sending failed confirmations in 0 hours, 0 minutes, 24 seconds at 17:02:07.843
[9660:6908:0710/170143.848:VERBOSE9:confirmation_state_manager.cc(138)] Successfully saved confirmations state
[9660:6908:0710/170146.661:INFO:CONSOLE(0)] "Error with Permissions-Policy header: Origin trial controlled feature not enabled: 'interest-cohort'.", source:
(0)
[9660:6908:0710/170146.882:VERBOSE1:conversions.cc(263)] Checking URL for conversions
[9660:6908:0710/170146.882:VERBOSE1:purchase_intent_processor.cc(102)] No purchase intent matches found for visited URL
[9660:6908:0710/170146.893:VERBOSE1:text_classification_processor.cc(64)] Classified text with the top segment as technology & computing-software
[9660:6908:0710/170146.893:VERBOSE9:client_state_manager.cc(553)] Saving client state
[9660:6908:0710/170146.897:VERBOSE9:client_state_manager.cc(571)] Successfully saved client state
[9660:6908:0710/170146.898:VERBOSE1:conversions.cc(341)] Conversion for ad_notification with campaign id d1e25388-b362-4f30-bd4b-36b8205e59e5, creative set id 5f8c4787-8431-49a5-9d09-bba40f8ad5f4, creative instance id 4cda3ae7-1f70-4bca-b361-ca01d6a8f1ed and advertiser id a34de75d-5654-4331-8713-8f4d4e2b6bf7
[9660:6908:0710/170146.899:VERBOSE1:conversions.cc(328)] There was a conversion match
[9660:6908:0710/170146.903:VERBOSE6:conversions.cc(391)] Successfully logged conversion event
[9660:6908:0710/170146.906:VERBOSE3:conversions.cc(415)] Successfully appended conversion to queue
[9660:6908:0710/170146.909:VERBOSE1:conversions.cc(558)] Convert ad_notification with campaign id d1e25388-b362-4f30-bd4b-36b8205e59e5, creative set id 5f8c4787-8431-49a5-9d09-bba40f8ad5f4, creative instance id 4cda3ae7-1f70-4bca-b361-ca01d6a8f1ed and advertiser id a34de75d-5654-4331-8713-8f4d4e2b6bf7 in 0 hours, 14 minutes, 19 seconds at 17:16:05.898
[9660:6908:0710/170149.935:VERBOSE1:browser_manager.cc(65)] Browser did resign active
[9660:6908:0710/170149.935:VERBOSE1:browser_manager.cc(89)] Browser did enter background
[9660:6908:0710/170149.935:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 02 (8:2:3600 s)
[9660:6908:0710/170207.622:VERBOSE1:ads_impl.cc(299)] Browser state changed to idle
[9660:6908:0710/170207.859:VERBOSE1:confirmations.cc(229)] Removed click confirmation for ad_notification with id 76e57c0a-2ed5-42aa-8da3-a1eb96316d19, transaction id e48530a4-eb15-4bbb-ad10-039627102e78 and creative instance id 4cda3ae7-1f70-4bca-b361-ca01d6a8f1ed from the confirmations queue
[9660:6908:0710/170207.859:VERBOSE9:confirmation_state_manager.cc(125)] Saving confirmations state
[9660:6908:0710/170207.860:VERBOSE1:redeem_unblinded_token.cc(50)] Redeem unblinded token
[9660:6908:0710/170207.860:VERBOSE1:redeem_unblinded_token.cc(121)] FetchPaymentToken
[9660:6908:0710/170207.860:VERBOSE2:redeem_unblinded_token.cc(122)] GET /v2/confirmation/{confirmation_id}/paymentToken
[9660:6908:0710/170207.860:VERBOSE6:redeem_unblinded_token.cc(126)] URL Request:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/76e57c0a-2ed5-42aa-8da3-a1eb96316d19/paymentToken
  Method: kGet
[9660:6908:0710/170207.860:VERBOSE7:redeem_unblinded_token.cc(127)]   Headers:

[9660:6908:0710/170207.861:VERBOSE9:confirmation_state_manager.cc(138)] Successfully saved confirmations state
[9660:6908:0710/170207.924:VERBOSE1:redeem_unblinded_token.cc(137)] OnFetchPaymentToken
[9660:6908:0710/170207.924:VERBOSE6:redeem_unblinded_token.cc(139)] URL Response:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/76e57c0a-2ed5-42aa-8da3-a1eb96316d19/paymentToken
  Response Status Code: 200
  Response: {"id":"76e57c0a-2ed5-42aa-8da3-a1eb96316d19","createdAt":"2022-07-11T00:01:27.420Z","type":"click","modifiedAt":"2022-07-11T00:01:31.724Z","creativeInstanceId":"4cda3ae7-1f70-4bca-b361-ca01d6a8f1ed","paymentToken":{"publicKey":"hPG3j7g7Vb6y635dinW8AVX5Izkh22hXfLXzPpnRRw8=","batchProof":"ed/flJ1uYV7+/0ovizfzwJXqmTSg40n8VcZyqW6t6gA2qeFIWPbXGs+4Tg+JGoCX7l2h+lly8ht10l921WwyDA==","signedTokens":["fAhwKgNY8tNKY54fXtf6V7v4Qk6cwmywGVOU3HE9myw="]}}
[9660:6908:0710/170207.924:VERBOSE7:redeem_unblinded_token.cc(140)]   Headers:
[9660:6908:0710/170207.924:VERBOSE9:confirmation_state_manager.cc(125)] Saving confirmations state
[9660:6908:0710/170207.924:VERBOSE1:confirmations.cc(303)] Successfully redeemed unblinded token for ad_notification with confirmation id 76e57c0a-2ed5-42aa-8da3-a1eb96316d19, transaction id e48530a4-eb15-4bbb-ad10-039627102e78, creative instance id 4cda3ae7-1f70-4bca-b361-ca01d6a8f1ed and click. You now have 2 unblinded payment tokens which will be redeemed in 0 hours, 27 minutes, 49 seconds at 17:29:57.012
[9660:6908:0710/170207.924:VERBOSE1:refill_unblinded_tokens.cc(92)] No need to refill unblinded tokens as we already have 47 unblinded tokens which is above the minimum threshold of 20
[9660:6908:0710/170207.924:VERBOSE1:confirmations.cc(100)] Retry sending failed confirmations in 0 hours, 0 minutes, 11 seconds at 17:02:18.931
[9660:6908:0710/170207.934:VERBOSE9:confirmation_state_manager.cc(138)] Successfully saved confirmations state
[9660:6908:0710/170218.933:VERBOSE1:confirmations.cc(229)] Removed landed confirmation for ad_notification with id 241aff57-e18e-4a9d-9383-c57af94d1485, transaction id 8782374d-c650-42ab-9519-0b0343fec4af and creative instance id 4cda3ae7-1f70-4bca-b361-ca01d6a8f1ed from the confirmations queue
[9660:6908:0710/170218.933:VERBOSE9:confirmation_state_manager.cc(125)] Saving confirmations state
[9660:6908:0710/170218.933:VERBOSE1:redeem_unblinded_token.cc(50)] Redeem unblinded token
[9660:6908:0710/170218.933:VERBOSE1:redeem_unblinded_token.cc(121)] FetchPaymentToken
[9660:6908:0710/170218.933:VERBOSE2:redeem_unblinded_token.cc(122)] GET /v2/confirmation/{confirmation_id}/paymentToken
[9660:6908:0710/170218.933:VERBOSE6:redeem_unblinded_token.cc(126)] URL Request:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/241aff57-e18e-4a9d-9383-c57af94d1485/paymentToken
  Method: kGet
[9660:6908:0710/170218.933:VERBOSE7:redeem_unblinded_token.cc(127)]   Headers:

[9660:6908:0710/170218.939:VERBOSE9:confirmation_state_manager.cc(138)] Successfully saved confirmations state
[9660:6908:0710/170218.986:VERBOSE1:redeem_unblinded_token.cc(137)] OnFetchPaymentToken
[9660:6908:0710/170218.986:VERBOSE6:redeem_unblinded_token.cc(139)] URL Response:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/241aff57-e18e-4a9d-9383-c57af94d1485/paymentToken
  Response Status Code: 200
  Response: {"id":"241aff57-e18e-4a9d-9383-c57af94d1485","createdAt":"2022-07-11T00:01:38.413Z","type":"landed","modifiedAt":"2022-07-11T00:01:41.648Z","creativeInstanceId":"4cda3ae7-1f70-4bca-b361-ca01d6a8f1ed","paymentToken":{"publicKey":"hPG3j7g7Vb6y635dinW8AVX5Izkh22hXfLXzPpnRRw8=","batchProof":"C1XsVnmn0hhzwaJ9y89+HI19J4hkTS6PcscpZIYiDw5uZoK2uNhdi8HO5Tnk4T9NeofFtjPM93Icu/s6LORuAw==","signedTokens":["CtONTqjLXjTslZ+Szd8TKthCF8J+f3Z9pBDTcMQlMCw="]}}
[9660:6908:0710/170219.001:VERBOSE7:redeem_unblinded_token.cc(140)]   Headers:
[9660:6908:0710/170219.001:VERBOSE9:confirmation_state_manager.cc(125)] Saving confirmations state
[9660:6908:0710/170219.006:VERBOSE1:confirmations.cc(303)] Successfully redeemed unblinded token for ad_notification with confirmation id 241aff57-e18e-4a9d-9383-c57af94d1485, transaction id 8782374d-c650-42ab-9519-0b0343fec4af, creative instance id 4cda3ae7-1f70-4bca-b361-ca01d6a8f1ed and landed. You now have 3 unblinded payment tokens which will be redeemed in 0 hours, 27 minutes, 38 seconds at 17:29:57.012

Confirmed V1/GetState endpoint fetched every ~5 min - PASSED

[16272:18436:0707/164027.613:VERBOSE1:subdivision_targeting.cc(283)] Fetch ads subdivision target in 0 hours, 6 minutes, 31 seconds at 16:46:58.615
[16272:18436:0707/164658.718:VERBOSE1:subdivision_targeting.cc(283)] Fetch ads subdivision target in 0 hours, 3 minutes, 14 seconds at 16:50:12.709
[16272:18436:0707/163926.583:VERBOSE1:subdivision_targeting.cc(283)] Fetch ads subdivision target in 0 hours, 1 minute, 1 second at 16:40:27.582
16272:18436:0707/164658.715:VERBOSE1:subdivision_targeting.cc(216)] Successfully fetched subdivision target

@stephendonner stephendonner added the QA/In-Progress Indicates that QA is currently in progress for that particular issue label Jul 7, 2022
@GeetaSarvadnya
Copy link

GeetaSarvadnya commented Jul 8, 2022

Verification PASSED on

Brave | 1.41.93 Chromium: 103.0.5060.114 (Official Build) (64-bit)
-- | --
Revision | a1c2360c5b02a6d4d6ab33796ad8a268a6128226-refs/branch-heads/5060@{#1124}
OS | Windows 10 Version 21H2 (Build 19044.1766)

Verified flags listed in #17526 (comment).

--rewards=staging=true_PASSED

Confirmed when using --rewards=staging=true cmd line flag, the following calls were made to staging domains:

Parameters

[ REQUEST ]
> URL: https://api.rewards.bravesoftware.com/v1/parameters
> Method: GET

Issuers

[8300:18996:0708/195442.187:VERBOSE1:issuers.cc(66)] FetchIssuers
[8300:18996:0708/195442.188:VERBOSE2:issuers.cc(67)] GET /v1/issuers/
[8300:18996:0708/195442.188:VERBOSE6:issuers.cc(71)] URL Request:
  URL: https://static.ads.bravesoftware.com/v1/issuers/
  Method: kGet

Subdivision

[8300:18996:0708/195907.714:VERBOSE1:subdivision_targeting.cc(187)] FetchSubdivisionTargeting
[8300:18996:0708/195910.792:VERBOSE2:subdivision_targeting.cc(188)] GET /v1/getstate
[8300:18996:0708/195925.425:VERBOSE6:subdivision_targeting.cc(192)] URL Request:
  URL: https://geo.ads.bravesoftware.com/v1/getstate
  Method: kGet

Catalog

[8300:18996:0708/200003.395:VERBOSE1:catalog.cc(70)] Catalog
[8300:18996:0708/200003.395:VERBOSE2:catalog.cc(71)] GET /v9/catalog
[8300:18996:0708/200003.397:VERBOSE6:catalog.cc(77)] URL Request:
  URL: https://static.ads.bravesoftware.com/v9/catalog
  Method: kGet

Grants

[ REQUEST ]
> URL: https://grant.rewards.bravesoftware.com/v1/promotions?migrate=true&paymentId=47995c87-4c34-41cf-aff5-6b7a4b493c0a&platform=windows
> Method: GET

Create Confirmation

[944:12444:0708/201133.918:VERBOSE1:redeem_unblinded_token.cc(50)] Redeem unblinded token
[944:12444:0708/201133.919:VERBOSE1:redeem_unblinded_token.cc(71)] CreateConfirmation
[944:12444:0708/201133.920:VERBOSE2:redeem_unblinded_token.cc(72)] POST /v2/confirmation/{confirmation_id}/{credential}
[944:12444:0708/201133.920:VERBOSE6:redeem_unblinded_token.cc(76)] URL Request:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/90cf9c92

Fetch Payment Token

[944:12444:0708/201139.935:VERBOSE1:redeem_unblinded_token.cc(121)] FetchPaymentToken
[944:12444:0708/201139.942:VERBOSE2:redeem_unblinded_token.cc(122)] GET /v2/confirmation/{confirmation_id}/paymentToken
[944:12444:0708/201139.944:VERBOSE6:redeem_unblinded_token.cc(126)] URL Request:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/90cf9c92-dbd4-423d-a909-9c8dd56d616c/paymentToken
  Method: kGet

Publisher Prefix List

[ REQUEST ]
> URL: https://rewards-stg.bravesoftware.com/publishers/prefix-list
> Method: GET

Get Signed Tokens

[944:12444:0708/201113.704:VERBOSE1:refill_unblinded_tokens.cc(174)] GetSignedTokens
[944:12444:0708/201113.704:VERBOSE2:refill_unblinded_tokens.cc(175)] GET /v2/confirmation/token/{payment_id}?nonce={nonce}
[944:12444:0708/201113.705:VERBOSE6:refill_unblinded_tokens.cc(179)] URL Request:
  URL: https://mywallet.ads.bravesoftware.com/v2/confirmation/token/47995c87-4c34-41cf-aff5-6b7a4b493c0a?nonce=92e72b29-3f0d-4ba3-984c-b62456f1c415
  Method: kGet

--rewards=staging=false -PASSED

Confirmed when using --rewards=staging=false cmd line flag, the following calls were made to production domains:

Parameters

[ REQUEST ]
> URL: https://api.rewards.brave.com/v1/parameters
> Method: GET

Issuers

[5856:19648:0708/204400.372:VERBOSE1:issuers.cc(66)] FetchIssuers
[5856:19648:0708/204400.373:VERBOSE2:issuers.cc(67)] GET /v1/issuers/
[5856:19648:0708/204400.374:VERBOSE6:issuers.cc(71)] URL Request:
  URL: https://static.ads.brave.com/v1/issuers/
  Method: kGet

Subdivision

[5856:19648:0708/204948.601:VERBOSE1:subdivision_targeting.cc(187)] FetchSubdivisionTargeting
[5856:19648:0708/204948.601:VERBOSE2:subdivision_targeting.cc(188)] GET /v1/getstate
[5856:19648:0708/204948.606:VERBOSE6:subdivision_targeting.cc(192)] URL Request:
  URL: https://geo.ads.brave.com/v1/getstate
  Method: kGet

Catalog

[5856:19648:0708/204400.402:VERBOSE1:catalog.cc(70)] Catalog
[5856:19648:0708/204400.402:VERBOSE2:catalog.cc(71)] GET /v9/catalog
[5856:19648:0708/204400.403:VERBOSE6:catalog.cc(77)] URL Request:
  URL: https://static.ads.brave.com/v9/catalog
  Method: kGet

Grants

[ REQUEST ]
> URL: https://grant.rewards.brave.com/v1/promotions?migrate=true&platform=windows
> Method: GET

Publisher Prefix List

[ REQUEST ]
> URL: https://rewards.brave.com/publishers/prefix-list
> Method: GET

Get Signed Tokens

[23720:8096:0708/204030.137:VERBOSE1:refill_unblinded_tokens.cc(174)] GetSignedTokens
[23720:8096:0708/204030.138:VERBOSE2:refill_unblinded_tokens.cc(175)] GET /v2/confirmation/token/{payment_id}?nonce={nonce}
[23720:8096:0708/204030.140:VERBOSE6:refill_unblinded_tokens.cc(179)] URL Request:
  URL: https://mywallet.ads.brave.com/v2/confirmation/token/511a85c6-9290-49f2-8d6e-3b160ab80ab5?nonce=148a1582-c727-48f9-b720-370097d70741
  Method: kGet

Create Confirmation

[5856:19648:0708/204429.992:VERBOSE1:redeem_unblinded_token.cc(71)] CreateConfirmation
[5856:19648:0708/204429.994:VERBOSE2:redeem_unblinded_token.cc(72)] POST /v2/confirmation/{confirmation_id}/{credential}
[5856:19648:0708/204429.999:VERBOSE6:redeem_unblinded_token.cc(76)] URL Request:
  URL: https://anonymous.ads.brave.com/v2/confirmation/67f768db-1814-4914-

Fetch Payment Token

[5856:19648:0708/204440.379:VERBOSE1:redeem_unblinded_token.cc(121)] FetchPaymentToken
[5856:19648:0708/204440.381:VERBOSE2:redeem_unblinded_token.cc(122)] GET /v2/confirmation/{confirmation_id}/paymentToken
[5856:19648:0708/204440.389:VERBOSE6:redeem_unblinded_token.cc(126)] URL Request:
  URL: https://anonymous.ads.brave.com/v2/confirmation/67f768db-1814-4914-91a4-e1fd893a89c5/paymentToken
  Method: kGet
--rewards=debug=true - PASSED

Verified items listed in #17526 (comment). Note all times listed are approximate due to +/- jitter.

  • Confirmed next payment token redemption (cash-out) reduced to ~25 minutes
[7520:14688:0711/190141.104:VERBOSE1:redeem_unblinded_payment_tokens.cc(70)] Redeem unblinded payment tokens in 0 hours, 37 minutes, 33 seconds at 19:39:14.098 
[4468:4164:0711/200658.260:VERBOSE1:redeem_unblinded_payment_tokens.cc(78)] RedeemUnblindedPaymentTokens
[4468:4164:0711/200659.522:VERBOSE2:redeem_unblinded_payment_tokens.cc(89)] PUT /v2/confirmation/payment/{payment_id}
[4468:4164:0711/200659.970:VERBOSE6:redeem_unblinded_payment_tokens.cc(104)] URL Request:
  URL: https://mywallet.ads.bravesoftware.com/v2/confirmation/payment/7d8e6ba0-6b86-460a-83fa-5ca7d75711f6
  Content: {"odyssey":"host","payload":"{\"paymentId\":\"7d8e6ba0-6b86-460a-83fa-5ca7d75711f6\"}","paymentCredentials":[{"confirmationType":"view","credential":{"signature":"HzFTtzqWxYRy5xcpqX/D0Obr+ejc2yx5IkZB8V1P8BFOs+wLs3InKHTShX3l9/P8qhXUf9MlxT4hMV8l1hfR1A==","t":"rxFw9NzYvMaMljcpXQYrPTxV+eKelcQ9oIGeLNe+AroeM9QnDzQFF/M7jKBiaHzFAQ9lh04QN5Pc10lnojbd6g=="},"publicKey":"/ErFCyyTs6tQ+VCve8GsGcNZ4dZhYKIBisLZIbR+kR4="},{"confirmationType":"click","credential":{"signature":"4GPIlZylV5oPEEos07PU0fDF9PE9ut8mS2XF47RUd+yeHEYqd7K9ft12YQ/s5EE3mGyEsmaFNjYGLUPp9oU+Rg==","t":"RsWvjneDCfRUqCxLtYTP9CfqK8oe9cJDmKDRKQ5msrn95NJ0j633VMizq9Lm/tzKEknQIHXEuBr5LBQKFAO2xg=="},"publicKey":"hPG3j7g7Vb6y635dinW8AVX5Izkh22hXfLXzPpnRRw8="}],"platform":"windows","totals":[{"ad_format":"ad_notification","click":"1","view":"1"}]}
  Content Type: application/json
  Method: kPut
[4468:4164:0711/200714.969:VERBOSE7:redeem_unblinded_payment_tokens.cc(105)]   Headers:
accept: application/json
[4468:4164:0711/200855.602:VERBOSE1:uphold.cc(114)] Uphold wallet is not VERIFIED.
[21176:19508:0711/200855.756:ERROR:gpu_init.cc(486)] Passthrough is not supported, GL is disabled, ANGLE is
[4468:4164:0711/200916.266:VERBOSE1:browser_manager.cc(77)] Browser did enter foreground
[4468:4164:0711/200916.270:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 01 (1:0:3600 s)
[4468:4164:0711/200916.271:VERBOSE1:browser_manager.cc(53)] Browser did become active
[4468:4164:0711/200916.272:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 16 (1:0:3600 s)
[4468:4164:0711/200916.273:VERBOSE7:tab_manager.cc(66)] Tab id 9 is occluded
[4468:4164:0711/200916.274:VERBOSE7:tab_manager.cc(66)] Tab id 10 is occluded
[4468:4164:0711/200916.283:VERBOSE7:tab_manager.cc(66)] Tab id 11 is occluded
[4468:4164:0711/200916.283:VERBOSE1:browser_manager.cc(65)] Browser did resign active
[4468:4164:0711/200916.284:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 17 (1:0:3600 s)
[4468:4164:0711/200916.285:VERBOSE7:tab_manager.cc(66)] Tab id 9 is occluded
[4468:4164:0711/200916.286:VERBOSE7:tab_manager.cc(66)] Tab id 10 is occluded
[4468:4164:0711/200916.287:VERBOSE7:tab_manager.cc(66)] Tab id 11 is occluded
[4468:4164:0711/200916.290:VERBOSE1:browser_manager.cc(89)] Browser did enter background
[4468:4164:0711/200916.298:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 02 (1.5:0:3600 s)
[4468:4164:0711/200916.302:VERBOSE1:uphold.cc(114)] Uphold wallet is not VERIFIED.
[4468:4164:0711/200917.608:VERBOSE1:redeem_unblinded_payment_tokens.cc(117)] OnRedeemUnblindedPaymentTokens
[4468:4164:0711/200917.609:VERBOSE6:redeem_unblinded_payment_tokens.cc(119)] URL Response:
  URL: https://mywallet.ads.bravesoftware.com/v2/confirmation/payment/7d8e6ba0-6b86-460a-83fa-5ca7d75711f6
  Response Status Code: 200
  Response: {"message":"Ok","status":200}

[4468:4164:0711/200917.619:VERBOSE9:confirmation_state_manager.cc(125)] Saving confirmations state
[4468:4164:0711/200917.621:VERBOSE1:account.cc(278)] Successfully redeemed unblinded payment tokens
[4468:4164:0711/200917.633:VERBOSE1:redeem_unblinded_payment_tokens.cc(70)] Redeem unblinded payment tokens in 0 hours, 35 minutes, 56 seconds at 20:45:13.609
  • Confirmed catalog fetched after ~15 minutes instead of ping defined in the v9/catalog endpoint
[23720:8096:0708/204019.675:VERBOSE1:catalog.cc(150)] Fetch catalog in 0 hours, 17 minutes, 41 seconds at 20:58:00.670
[5856:19648:0708/204400.539:VERBOSE1:catalog.cc(150)] Fetch catalog in 0 hours, 24 minutes, 46 seconds at 21:08:46.527
[5856:19648:0708/210846.747:VERBOSE1:catalog.cc(150)] Fetch catalog in 0 hours, 0 minutes, 59 seconds at 21:09:45.721
[5856:19648:0708/210945.794:VERBOSE1:catalog.cc(150)] Fetch catalog in 0 hours, 2 minutes, 1 second at 21:11:46.784
[5856:19648:0708/211146.916:VERBOSE1:catalog.cc(150)] Fetch catalog in 0 hours, 1 minute, 22 seconds at 21:13:08.896
  • Confirmed conversions are submitted to server after ~10 minutes instead of ~1 day
[14548:14556:0711/130647.949:VERBOSE1:conversions.cc(341)] Conversion for ad_notification with campaign id d1e25388-b362-4f30-bd4b-36b8205e59e5, creative set id 5f8c4787-8431-49a5-9d09-bba40f8ad5f4, creative instance id 4cda3ae7-1f70-4bca-b361-ca01d6a8f1ed and advertiser id a34de75d-5654-4331-8713-8f4d4e2b6bf7
[14548:14556:0711/130647.949:VERBOSE1:conversions.cc(328)] There was a conversion match
[14548:14556:0711/130647.957:VERBOSE6:conversions.cc(391)] Successfully logged conversion event
[14548:14556:0711/130647.964:VERBOSE3:conversions.cc(415)] Successfully appended conversion to queue
[14548:14556:0711/130647.965:VERBOSE1:conversions.cc(558)] Convert ad_notification with campaign id d1e25388-b362-4f30-bd4b-36b8205e59e5, creative set id 5f8c4787-8431-49a5-9d09-bba40f8ad5f4, creative instance id 4cda3ae7-1f70-4bca-b361-ca01d6a8f1ed and advertiser id a34de75d-5654-4331-8713-8f4d4e2b6bf7 in 0 hours, 16 minutes, 36 seconds at 13:23:23.949
[14548:14556:0711/132439.456:VERBOSE1:conversions.cc(473)] Successfully converted ad_notification with campaign id d1e25388-b362-4f30-bd4b-36b8205e59e5, creative set id 5f8c4787-8431-49a5-9d09-bba40f8ad5f4, creative instance id 4cda3ae7-1f70-4bca-b361-ca01d6a8f1ed and advertiser id a34de75d-5654-4331-8713-8f4d4e2b6bf7 on Monday, July 11, 2022 at 1:23:23 PM
[14548:14556:0711/132439.459:VERBOSE5:ledger_impl.cc(114)]
[ REQUEST ]
> URL: https://grant.rewards.bravesoftware.com/v1/promotions?migrate=true&paymentId=851f532c-217d-42ac-8c96-ea40aa508284&platform=windows
> Method: GET
[14548:14556:0711/132439.461:VERBOSE5:ledger_impl.cc(114)]
[ REQUEST ]
> URL: https://grant.rewards.bravesoftware.com/v1/promotions?migrate=true&paymentId=851f532c-217d-42ac-8c96-ea40aa508284&platform=windows
> Method: GET
[14548:14556:0711/132439.465:VERBOSE3:ads_impl.cc(804)] Successfully processed deposit for ad_notification with creative instance id 4cda3ae7-1f70-4bca-b361-ca01d6a8f1ed and conversion valued at 0
[14548:14556:0711/132439.472:VERBOSE1:confirmations.cc(61)] Confirming conversion for ad_notification with transaction id 99fafbe4-6a2c-4217-bf09-905b53739aaa and creative instance id 4cda3ae7-1f70-4bca-b361-ca01d6a8f1ed
[14548:14556:0711/132439.472:VERBOSE1:conversions.cc(241)] Conversion queue is empty
[14548:14556:0711/132439.475:VERBOSE9:confirmation_state_manager.cc(125)] Saving confirmations state
[14548:14556:0711/132439.476:VERBOSE1:redeem_unblinded_token.cc(50)] Redeem unblinded token
[14548:14556:0711/132439.477:VERBOSE1:redeem_unblinded_token.cc(71)] CreateConfirmation
[14548:14556:0711/132439.477:VERBOSE2:redeem_unblinded_token.cc(72)] POST /v2/confirmation/{confirmation_id}/{credential}
[14548:14556:0711/132439.478:VERBOSE6:redeem_unblinded_token.cc(76)] URL Request:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/7d49154e-3fe5-49aa-...
  Content: {"blindedPaymentTokens":["CIR36vEP/47qKBaNXi8Pr38vYta5M44vNqIWhg1qdnw="],"buildChannel":"release","catalog":[{"id":"07250136f2a3e6fc7313d3fd822c769a13912cab"}],"countryCode":"IN","createdAtTimestamp":"1605-06-17T18:00:00.000Z","creativeInstanceId":"4cda3ae7-1f70-4bca-b361-ca01d6a8f1ed","odyssey":"host","payload":{},"platform":"windows","publicKey":"mp/79e6Zamgx3w2NwPzfV9WJncGY42pxR0DjT/RagGI=","studies":[],"systemTimestamp":"2022-07-11T07:00:00.000Z","type":"conversion","versionNumber":"103.0.5060.114"}
  Content Type: application/json
  Method: kPost
[14548:14556:0711/132439.478:VERBOSE7:redeem_unblinded_token.cc(77)]   Headers:
��������������������������������accept: application/json
[14548:14556:0711/132439.481:VERBOSE9:confirmation_state_manager.cc(138)] Successfully saved confirmations state
[14548:14556:0711/132439.487:VERBOSE5:ledger_impl.cc(114)]
[ REQUEST ]
> URL: https://grant.rewards.bravesoftware.com/v1/promotions?migrate=true&paymentId=851f532c-217d-42ac-8c96-ea40aa508284&platform=windows
> Method: GET

[ RESPONSE - OnRequest ]
> Url: https://grant.rewards.bravesoftware.com/v1/promotions?migrate=true&paymentId=851f532c-217d-42ac-8c96-ea40aa508284&platform=windows
> Result: Success
> HTTP Code: 200
> Body: {"promotions":[{"id":"f05568e6-f4a1-4438-8e81-cc0490fd14f7","createdAt":"2022-07-05T16:19:25.919928Z","expiresAt":"2022-10-05T16:19:25.919928Z","version":5,"suggestionsPerGrant":120,"approximateValue":"30","type":"ugp","available":true,"platform":"desktop","publicKeys":["6AphTvx13IgxVRG1nljV2ql1Y7yGUol6yrVMhEP85wI="],"legacyClaimed":false,"claimableUntil":"2022-10-05T16:19:25.919928Z"}]}

[14548:14556:0711/132440.636:VERBOSE9:logging_util.cc(138)]
[ RESPONSE HEADERS ]
> Url: https://grant.rewards.bravesoftware.com/v1/promotions?migrate=true&paymentId=851f532c-217d-42ac-8c96-ea40aa508284&platform=windows

> Header content-length: 391
> Header content-type: application/json
> Header date: Mon, 11 Jul 2022 07:54:42 GMT
> Header request-id: cb5tegjciubdl1hp933g
> Header via: 1.1 dd93e58995887f8fc614ed6eba0e575e.cloudfront.net (CloudFront)
> Header x-amz-cf-id: qqNIdHexfFZs44sjxLe7f1-reASYR6f_ADTFwD9W1umvRcT7fz34wg==
> Header x-amz-cf-pop: MAA51-P3
> Header x-cache: Miss from cloudfront
> Header x-request-id: 6KWqvtspwqfuB2Cq
[14548:14556:0711/132440.669:VERBOSE6:logging_util.cc(137)]
[ RESPONSE - OnRequest ]
> Url: https://grant.rewards.bravesoftware.com/v1/promotions?migrate=true&paymentId=851f532c-217d-42ac-8c96-ea40aa508284&platform=windows
> Result: Success
> HTTP Code: 200
> Body: {"promotions":[{"id":"f05568e6-f4a1-4438-8e81-cc0490fd14f7","createdAt":"2022-07-05T16:19:25.919928Z","expiresAt":"2022-10-05T16:19:25.919928Z","version":5,"suggestionsPerGrant":120,"approximateValue":"30","type":"ugp","available":true,"platform":"desktop","publicKeys":["6AphTvx13IgxVRG1nljV2ql1Y7yGUol6yrVMhEP85wI="],"legacyClaimed":false,"claimableUntil":"2022-10-05T16:19:25.919928Z"}]}

[14548:14556:0711/132440.670:VERBOSE9:logging_util.cc(138)]
[ RESPONSE HEADERS ]
> Url: https://grant.rewards.bravesoftware.com/v1/promotions?migrate=true&paymentId=851f532c-217d-42ac-8c96-ea40aa508284&platform=windows

> Header age: 2
> Header content-length: 391
> Header content-type: application/json
> Header date: Mon, 11 Jul 2022 07:54:42 GMT
> Header request-id: cb5tegjciubdl1hp933g
> Header via: 1.1 dd93e58995887f8fc614ed6eba0e575e.cloudfront.net (CloudFront)
> Header x-amz-cf-id: Pb5I2nvhsdqavgRP6JaPVOlywTChVkqMYe6xMFSZR9698MKzMGiyzA==
> Header x-amz-cf-pop: MAA51-P3
> Header x-cache: Hit from cloudfront
> Header x-request-id: 6KWqvtspwqfuB2Cq
[14548:14556:0711/132440.919:VERBOSE6:logging_util.cc(137)]
[ RESPONSE - OnRequest ]
> Url: https://grant.rewards.bravesoftware.com/v1/promotions?migrate=true&paymentId=851f532c-217d-42ac-8c96-ea40aa508284&platform=windows
> Result: Success
> HTTP Code: 200
> Body: {"promotions":[{"id":"f05568e6-f4a1-4438-8e81-cc0490fd14f7","createdAt":"2022-07-05T16:19:25.919928Z","expiresAt":"2022-10-05T16:19:25.919928Z","version":5,"suggestionsPerGrant":120,"approximateValue":"30","type":"ugp","available":true,"platform":"desktop","publicKeys":["6AphTvx13IgxVRG1nljV2ql1Y7yGUol6yrVMhEP85wI="],"legacyClaimed":false,"claimableUntil":"2022-10-05T16:19:25.919928Z"}]}

[14548:14556:0711/132440.920:VERBOSE9:logging_util.cc(138)]
[ RESPONSE HEADERS ]
> Url: https://grant.rewards.bravesoftware.com/v1/promotions?migrate=true&paymentId=851f532c-217d-42ac-8c96-ea40aa508284&platform=windows

[14548:14556:0711/132441.376:VERBOSE1:redeem_unblinded_token.cc(157)] Payment token is not ready
[14548:14556:0711/132441.377:VERBOSE1:confirmations.cc(323)] Failed to redeem unblinded token for ad_notification with confirmation id 7d49154e-3fe5-49aa-ae4f-4864f6e6b12c, transaction id 99fafbe4-6a2c-4217-bf09-905b53739aaa, creative instance id 4cda3ae7-1f70-4bca-b361-ca01d6a8f1ed and conversion
[14548:14556:0711/132441.378:VERBOSE9:confirmation_state_manager.cc(125)] Saving confirmations state
[14548:14556:0711/132441.379:VERBOSE1:confirmations.cc(205)] Added conversion confirmation for ad_notification with id 7d49154e-3fe5-49aa-ae4f-4864f6e6b12c, transaction id99fafbe4-6a2c-4217-bf09-905b53739aaa and creative instance id 4cda3ae7-1f70-4bca-b361-ca01d6a8f1ed to the confirmations queue
[14548:14556:0711/132441.382:VERBOSE1:refill_unblinded_tokens.cc(92)] No need to refill unblinded tokens as we already have 46 unblinded tokens which is above the minimum threshold of 20
[14548:14556:0711/132441.385:VERBOSE1:confirmations.cc(100)] Retry sending failed confirmations in 0 hours, 0 minutes, 19 seconds at 13:25:00.381
[14548:14556:0711/132441.402:VERBOSE9:confirmation_state_manager.cc(138)] Successfully saved confirmations state
[14548:14556:0711/132500.397:VERBOSE1:confirmations.cc(229)] Removed conversion confirmation for ad_notification with id 7d49154e-3fe5-49aa-ae4f-4864f6e6b12c, transaction id 99fafbe4-6a2c-4217-bf09-905b53739aaa and creative instance id 4cda3ae7-1f70-4bca-b361-ca01d6a8f1ed from the confirmations queue
[14548:14556:0711/132500.398:VERBOSE9:confirmation_state_manager.cc(125)] Saving confirmations state
[14548:14556:0711/132500.400:VERBOSE1:redeem_unblinded_token.cc(50)] Redeem unblinded token
[14548:14556:0711/132500.408:VERBOSE1:redeem_unblinded_token.cc(121)] FetchPaymentToken
[14548:14556:0711/132500.409:VERBOSE2:redeem_unblinded_token.cc(122)] GET /v2/confirmation/{confirmation_id}/paymentToken
[14548:14556:0711/132500.409:VERBOSE6:redeem_unblinded_token.cc(126)] URL Request:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/7d49154e-3fe5-49aa-ae4f-4864f6e6b12c/paymentToken
  Method: kGet
[14548:14556:0711/132500.409:VERBOSE7:redeem_unblinded_token.cc(127)]   Headers:

[14548:14556:0711/132500.410:VERBOSE9:confirmation_state_manager.cc(138)] Successfully saved confirmations state
[14548:14556:0711/132500.777:VERBOSE1:redeem_unblinded_token.cc(137)] OnFetchPaymentToken
[14548:14556:0711/132500.777:VERBOSE6:redeem_unblinded_token.cc(139)] URL Response:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/7d49154e-3fe5-49aa-ae4f-4864f6e6b12c/paymentToken
  Response Status Code: 200
  Response: {"id":"7d49154e-3fe5-49aa-ae4f-4864f6e6b12c","createdAt":"2022-07-11T07:54:43.143Z","type":"conversion","modifiedAt":"2022-07-11T07:54:47.572Z","creativeInstanceId":"4cda3ae7-1f70-4bca-b361-ca01d6a8f1ed","paymentToken":{"publicKey":"hPG3j7g7Vb6y635dinW8AVX5Izkh22hXfLXzPpnRRw8=","batchProof":"ok8CoaRGA0h034hCeshNPCHzvUhN/PydgNxpSfwRjg0ideMCvHZPpZ/2U6udO2IxBsBwhhGJCynIq3VEoVrdDg==","signedTokens":["2h8P0Ub7vn/OcDr8oLkf95Zj0hvwkxr/+m98/pRPAE8="]}}

[14548:14556:0711/132500.788:VERBOSE9:confirmation_state_manager.cc(125)] Saving confirmations state
[14548:14556:0711/132500.790:VERBOSE1:confirmations.cc(303)] Successfully redeemed unblinded token for ad_notification with confirmation id 7d49154e-3fe5-49aa-ae4f-4864f6e6b12c, transaction id 99fafbe4-6a2c-4217-bf09-905b53739aaa, creative instance id 4cda3ae7-1f70-4bca-b361-ca01d6a8f1ed and conversion. You now have 4 unblinded payment tokens which will be redeemed in 0 hours, 15 minutes, 50 seconds at 13:40:50.422

  • Confirmed v1/GetState endpoint fetched every ~5 min
[15756:21056:0711/162622.496:VERBOSE1:subdivision_targeting.cc(283)] Fetch ads subdivision target in 0 hours, 0 minutes, 9 seconds at 16:26:31.495
[15756:21056:0711/162631.584:VERBOSE1:subdivision_targeting.cc(283)] Fetch ads subdivision target in 0 hours, 5 minutes, 38 seconds at 16:32:09.569
[15756:21056:0711/171433.754:VERBOSE1:subdivision_targeting.cc(283)] Fetch ads subdivision target in 0 hours, 7 minutes, 16 seconds at 17:21:49.746

@btlechowski
Copy link

Verification passed on

Brave 1.41.95 Chromium: 103.0.5060.114 (Official Build) (64-bit)
Revision a1c2360c5b02a6d4d6ab33796ad8a268a6128226-refs/branch-heads/5060@{#1124}
OS Ubuntu 18.04 LTS

Verified flags listed in #17526 (comment).

--rewards=staging=true_PASSED

Confirmed when using --rewards=staging=true cmd line flag, the following calls were made to staging domains:

Parameters

[ RESPONSE - OnRequest ]
> Url: https://api.rewards.bravesoftware.com/v1/parameters

Issuers

[27162:27162:0711/185017.309527:VERBOSE1:issuers.cc(80)] OnFetchIssuers
[27162:27162:0711/185017.310113:VERBOSE6:issuers.cc(82)] URL Response:
  URL: https://static.ads.bravesoftware.com/v1/issuers/
  Response Status Code: 200

Subdivision

[27162:27162:0711/185017.000221:VERBOSE1:subdivision_targeting.cc(201)] OnFetchSubdivisionTargeting
[27162:27162:0711/185017.056387:VERBOSE6:subdivision_targeting.cc(203)] URL Response:
  URL: https://geo.ads.bravesoftware.com/v1/getstate
  Response Status Code: 200
  Response: {"country":"PL","region":"02"}

Catalog

[27162:27162:0711/185015.411599:VERBOSE1:catalog.cc(70)] Catalog
[27162:27162:0711/185015.413543:VERBOSE2:catalog.cc(71)] GET /v9/catalog
[27162:27162:0711/185015.419955:VERBOSE6:catalog.cc(77)] URL Request:
  URL: https://static.ads.bravesoftware.com/v9/catalog
  Method: kGet

Grants

[27162:27162:0711/185008.742606:VERBOSE5:ledger_impl.cc(114)] 
[ REQUEST ]
> URL: https://grant.rewards.bravesoftware.com/v1/promotions?migrate=true&platform=linux
> Method: GET

Create Confirmation

[27162:27162:0711/185506.996391:VERBOSE1:redeem_unblinded_token.cc(87)] OnCreateConfirmation
[27162:27162:0711/185506.997098:VERBOSE6:redeem_unblinded_token.cc(89)] URL Response:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/6891da3d-a45b-44bb-a0

Fetch Payment Token

[27162:27162:0711/185507.257472:VERBOSE1:redeem_unblinded_token.cc(137)] OnFetchPaymentToken
[27162:27162:0711/185507.257630:VERBOSE6:redeem_unblinded_token.cc(139)] URL Response:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/6891da3d-a45b-44bb-a091-ef21334559da/paymentToken
  Response Status Code: 202

Publisher Prefix List

[27162:27162:0711/185005.958029:VERBOSE5:ledger_impl.cc(114)] 
[ REQUEST ]
> URL: https://rewards-stg.bravesoftware.com/publishers/prefix-list
> Method: GET

Get Signed Tokens

[27162:27162:0711/185018.491564:VERBOSE1:refill_unblinded_tokens.cc(174)] GetSignedTokens
[27162:27162:0711/185018.492026:VERBOSE2:refill_unblinded_tokens.cc(175)] GET /v2/confirmation/token/{payment_id}?nonce={nonce}
[27162:27162:0711/185018.492393:VERBOSE6:refill_unblinded_tokens.cc(179)] URL Request:
  URL: https://mywallet.ads.bravesoftware.com/v2/confirmation/token/4fd49948-19fe-4d0e-a221-fcbabc8a1802?nonce=100244e4-28fe-4bc3-b655-b436231bad56


--rewards=staging=false -PASSED

Confirmed when using --rewards=staging=false cmd line flag, the following calls were made to production domains:

Parameters

URL: https://api.rewards.brave.com/v1/parameters

Issuers

URL: https://static.ads.brave.com/v1/issuers/
Method: kGet

Subdivision

URL: https://geo.ads.brave.com/v1/getstate
Method: kGet

Catalog

URL: https://static.ads.brave.com/v9/catalog
Method: kGet

Grants

URL: https://grant.rewards.brave.com/v1/promotions?migrate=true&platform=linux
Method: GET

Publisher Prefix List

URL: https://rewards.brave.com/publishers/prefix-list
Method: GET

Get Signed Tokens

URL: https://mywallet.ads.brave.com/v2/confirmation/token/
Method: kGet

Create Confirmation

  URL: https://anonymous.ads.brave.com/v2/confirmation/

Fetch Payment Token

  URL: https://anonymous.ads.brave.com/v2/confirmation/*/paymentToken
  Method: kGet
--rewards=debug=true - PASSED

Verified items listed in #17526 (comment). Note all times listed are approximate due to +/- jitter.

  • Confirmed next payment token redemption (cash-out) reduced to ~25 minutes
[28446:28446:0711/190630.725961:VERBOSE1:redeem_unblinded_payment_tokens.cc(70)] Redeem unblinded payment tokens in 0 hours, 52 minutes, 20 seconds at 19:58:50.717
  • Confirmed catalog fetched after ~15 minutes instead of ping defined in the v9/catalog endpoint
[28446:28446:0711/190532.290806:VERBOSE1:catalog.cc(150)] Fetch catalog in 0 hours, 27 minutes, 11 seconds at 19:32:43.277

  • Confirmed conversions are submitted to server after ~10 minutes instead of ~1 day
[29432:29432:0711/191638.401081:VERBOSE1:conversions.cc(558)] Convert ad_notification with campaign id d1e25388-b362-4f30-bd4b-36b8205e59e5, creative set id 5f8c4787-8431-49a5-9d09-bba40f8ad5f4, creative instance id 4cda3ae7-1f70-4bca-b361-ca01d6a8f1ed and advertiser id a34de75d-5654-4331-8713-8f4d4e2b6bf7 in 0 hours, 3 minutes, 26 seconds at 19:20:04.360
  • Confirmed v1/GetState endpoint fetched every ~5 min
[29432:29432:0711/191451.102647:VERBOSE1:subdivision_targeting.cc(283)] Fetch ads subdivision target in 0 hours, 10 minutes, 28 seconds at 19:25:19.075

@stephendonner stephendonner removed the QA/In-Progress Indicates that QA is currently in progress for that particular issue label Jul 11, 2022
@Uni-verse Uni-verse added the QA/In-Progress Indicates that QA is currently in progress for that particular issue label Jul 12, 2022
@Uni-verse
Copy link
Contributor

Uni-verse commented Jul 12, 2022

Verified on Samsung GS 21 & Tab S7 using

Brave	1.41.96 Chromium: 103.0.5060.114 (Official Build) (64-bit) 
Revision	a1c2360c5b02a6d4d6ab33796ad8a268a6128226-refs/branch-heads/5060@{#1124}
OS	Android 12; Build/SP1A.210812.016
  • Confirmed enabling rewards staging flag will use staging endpoints.
  • Confirmed staging flag can be toggled on/off and prompting user to relaunch browser to take effect.
  • Confirmed rewards verbose logging is working as expected and logs are produced.
  • Confirmed enabling rewards works and will send requests/logs in staging and production.

Staging=true

Parameters

07-12 10:47:21.511 25045 25045 V chromium: > URL: https://api.rewards.bravesoftware.com/v1/parameters

Issuers

07-12 10:57:52.674 30128 30128 V chromium: [VERBOSE1:issuers.cc(66)] FetchIssuers
07-12 10:57:52.674 30128 30128 V chromium: [VERBOSE2:issuers.cc(67)] GET /v1/issuers/
07-12 10:57:52.674 30128 30128 V chromium: [VERBOSE6:issuers.cc(71)] URL Request:
07-12 10:57:52.674 30128 30128 V chromium:   URL: https://static.ads.bravesoftware.com/v1/issuers/

Subdivision

07-12 10:57:52.679 30128 30128 V chromium: [VERBOSE1:subdivision_targeting.cc(187)] FetchSubdivisionTargeting
07-12 10:57:52.679 30128 30128 V chromium: [VERBOSE2:subdivision_targeting.cc(188)] GET /v1/getstate
07-12 10:57:52.679 30128 30128 V chromium: [VERBOSE6:subdivision_targeting.cc(192)] URL Request:

Catalog

07-12 10:47:21.601 25045 25045 V chromium: [VERBOSE1:catalog.cc(70)] Catalog
07-12 10:47:21.601 25045 25045 V chromium: [VERBOSE2:catalog.cc(71)] GET /v9/catalog
07-12 10:47:21.601 25045 25045 V chromium: [VERBOSE6:catalog.cc(77)] URL Request:
07-12 10:47:23.704 25045 25045 V chromium: [VERBOSE1:catalog.cc(86)] OnCatalog
07-12 10:47:23.705 25045 25045 V chromium: [VERBOSE1:catalog.cc(107)] Successfully fetched catalog
07-12 10:47:23.705 25045 25045 V chromium: [VERBOSE1:catalog.cc(109)] Parsing catalog
07-12 10:47:23.724 25045 25045 V chromium: [VERBOSE1:catalog.cc(150)] Fetch catalog in 0 hours, 20 minutes, 18 seconds at 11:07:41.72

Grants

Claiming free token grant in the UI on staging is returning an error. The request seems to be successful but getting following result below.

UI Request
0 Screen Shot 2022-07-12 at 11 34 17 AM

Get Request:
https://grant.rewards.bravesoftware.com/v1/promotions?migrate=true&paymentId=c19e2e26-8836-4d7e-a264-7d4b4b264b92&platform=android

Create Confirmations

07-12 10:47:27.801 25045 25045 V chromium: [VERBOSE1:redeem_unblinded_token.cc(50)] Redeem unblinded token
07-12 10:47:27.802 25045 25045 V chromium: [VERBOSE1:redeem_unblinded_token.cc(71)] CreateConfirmation
07-12 10:47:27.802 25045 25045 V chromium: [VERBOSE2:redeem_unblinded_token.cc(72)] POST /v2/confirmation/{confirmation_id}/{credential}

Fetch Payment Token

07-12 10:47:28.875 25045 25045 V chromium: [VERBOSE6:redeem_unblinded_token.cc(126)] URL Request:
07-12 10:47:28.993 25045 25045 V chromium: [VERBOSE1:redeem_unblinded_token.cc(137)] OnFetchPaymentToken
07-12 10:47:28.994 25045 25045 V chromium: [VERBOSE6:redeem_unblinded_token.cc(139)] URL Response:
07-12 10:47:28.994 25045 25045 V chromium: [VERBOSE1:redeem_unblinded_token.cc(157)] Payment token is not ready
07-12 10:47:30.997 25045 25045 V chromium: [VERBOSE1:redeem_unblinded_token.cc(50)] Redeem unblinded token
07-12 10:47:30.998 25045 25045 V chromium: [VERBOSE1:redeem_unblinded_token.cc(121)] FetchPaymentToken
07-12 10:47:30.998 25045 25045 V chromium: [VERBOSE2:redeem_unblinded_token.cc(122)] GET /v2/confirmation/{confirmation_id}/paymentToken

Publisher Prefix List

URL | https://rewards.brave.com/publishers/prefix-list
Status | Complete
Response Code | 200

Get Signed Tokens

07-12 10:57:53.133 30128 30128 V chromium: [VERBOSE1:refill_unblinded_tokens.cc(106)] Refill unblinded tokens
07-12 10:57:53.133 30128 30128 V chromium: [VERBOSE1:refill_unblinded_tokens.cc(116)] RequestSignedTokens
07-12 10:57:53.133 30128 30128 V chromium: [VERBOSE2:refill_unblinded_tokens.cc(117)] POST /v2/confirmation/token/{payment_id}
07-12 10:57:53.163 30128 30128 V chromium: [VERBOSE6:refill_unblinded_tokens.cc(127)] URL Request:
07-12 10:57:54.598 30128 30128 V chromium: [VERBOSE1:refill_unblinded_tokens.cc(137)] OnRequestSignedTokens
07-12 10:57:54.598 30128 30128 V chromium: [VERBOSE6:refill_unblinded_tokens.cc(139)] URL Response:
07-12 10:57:54.598 30128 30128 V chromium: [VERBOSE1:refill_unblinded_tokens.cc(174)] GetSignedTokens
07-12 10:57:54.598 30128 30128 V chromium: [VERBOSE2:refill_unblinded_tokens.cc(175)] GET /v2/confirmation/token/{payment_id}?nonce={nonce}

@Uni-verse Uni-verse added QA Pass - Android ARM QA Pass - Android Tab and removed QA/In-Progress Indicates that QA is currently in progress for that particular issue labels Jul 12, 2022
@tmancey tmancey added this to Ads Jun 10, 2024
@tmancey tmancey moved this to Done in Ads Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment