Brave-browser: Ads enabled for unsupported regions

Created on 2 Apr 2019  路  11Comments  路  Source: brave/brave-browser

Description


While verifying #2562, found even if device on unsupported region, Ads get enabled.

Steps to Reproduce

  1. Set VPN to a unsupported region
  2. Launch a clean profile of beta
  3. Enable rewards
  4. Open rewards setting, Sorry, Ads are not available in your region message pops up for a second and then ads settings get enabled

Actual result:


Ads enabled for unsupported regions

Expected result:

Unavailable message should persist and ads should not be enabled. Only for supported regions should be enabled

Reproduces how often:


Easy

Brave version (brave://version info)

Brave | 0.63.28 Chromium: 73.0.3683.75聽(Official Build)聽beta(64-bit)
-- | --
Revision | 909ee014fcea6828f9a610e6716145bc0b3ebf4a-refs/branch-heads/3683@{#803}
OS | Linux

Reproducible on current release:

  • Does it reproduce on brave-browser dev/beta builds?
    Yes on beta and dev. Not checked on Nightly

    Website problems only:

  • Does the issue resolve itself when disabling Brave Shields?
    N/A

  • Is the issue reproducible on the latest version of Chrome?
    N/A

    Additional Information


cc: @tmancey @jsecretan set priority to P2, please change if required
@brave/legacy_qa to verify on other platforms as well

QA Pass-Linux QA Pass-Win64 QA Pass-macOS QTest-Plan-Specified QYes bug featurads featurrewards prioritP1 release-noteexclude releasblocking

Most helpful comment

i am in Vietnam, please enable ads for Vietnam.

Brave | 0.66.99 Chromium: 75.0.3770.100聽(Official Build)聽(64-bit)
-- | --
Revision | cd0b15c8b6a4e70c44e27f35c37a4029bad3e3b0-refs/branch-heads/3770@{#1033}
OS | Mac OS X

All 11 comments

@ryanml do you know of any recent changes which may have caused this please?

@tmancey I have not made any changes related to this since: https://github.com/brave/brave-core/pull/1941 - I can do some investigation on this one though 馃憤

@ryanml This could be related to Chromium returning en_US for non supported regions, let me check this first and I will then get back to you if that is ok?

However this does not explain why the UI displays for a brief moment.

@tmancey sounds good. Double checking the logic in place is all sound but yeah just seems that the wrong value is showing for region

I am located in Poland and Ads are enabled. I don't see any ads though.

Brave | 0.63.30 Chromium: 73.0.3683.75聽(Official Build)聽beta聽(64-bit)
-- | --
Revision | 909ee014fcea6828f9a610e6716145bc0b3ebf4a-refs/branch-heads/3683@{#803}
OS | Windows聽10 OS Build 17134.523

image

@btlechowski Ads are not available at this time in Poland, an unavailable message should be shown and ads should not be enabled, thanks

I am located in India Ads are disabled

image

Brave | 0.64.36 Chromium: 73.0.3683.75聽(Official Build)聽dev聽(64-bit)
-- | --
Revision | 909ee014fcea6828f9a610e6716145bc0b3ebf4a-refs/branch-heads/3683@{#803}
OS | Windows聽10 OS Build 17134.523

I am not getting Sorry, Ads are not available in your region message for the region India. I was seeing the message on 0.64.36 version, but not now. I am not getting this message in any of the Dev and Beta versions.

Brave | 0.64.40 Chromium: 74.0.3729.61聽(Official Build)聽dev聽(64-bit)
-- | --
Revision | 5df2c8936783bd7575987e45d72a92fcf528496b-refs/branch-heads/3729@{#645}
OS | Windows聽10 OS Build 17134.523

Brave | 0.63.34 Chromium: 74.0.3729.40聽(Official Build)聽beta聽(64-bit)
-- | --
Revision | 278d6a0d856d8314f36fb9a68b6e1d85cd0d14e7-refs/branch-heads/3729@{#470}
OS | Windows聽10 OS Build 17134.523

Verification passed on

Brave | 0.63.46 Chromium: 74.0.3729.91 (Official Build) (64-bit)
-- | --
Revision | 03844ed83e02b8add3f4b9cb859a7108d55b2e4d-refs/branch-heads/3729@{#860}
OS | Linux

  • Setting VPN to supported region and OS locale changed doesn't enable ads
    image
  • Setting VPN and OS locale to supported region shows ads as expected

Verified passed with

Brave | 0.63.46 Chromium: 74.0.3729.91聽(Official Build)聽(64-bit)
-- | --
Revision | 03844ed83e02b8add3f4b9cb859a7108d55b2e4d-refs/branch-heads/3729@{#860}
OS | Mac OS X

  • Verified test plan from https://github.com/brave/brave-core/pull/2232
  • Verified did not see 'Sorry' message when IP and Region were set appropriately for included regions (US, Can, UK, FR, DE). When 'Sorry' message was not displayed, verified was able to access UI (settings, etc).
  • Verified did see 'Sorry' message when IP and Region were set for non-included regions (Australia, Sweden, etc). When 'Sorry' message was displayed, was unable to access Ads UI (settings, etc).
    Screen Shot 2019-04-22 at 16 36 06

Verification passed on

Brave | 0.63.46 Chromium: 74.0.3729.91聽(Official Build)聽(64-bit)
-- | --
Revision | 03844ed83e02b8add3f4b9cb859a7108d55b2e4d-refs/branch-heads/3729@{#860}
OS | Windows聽10 OS Build 17134.523

  • Verified test plan from https://github.com/brave/brave-core/pull/2232

  • Verified did not see 'Sorry' message when IP and Region were set appropriately for included regions (US, Can, UK, FR, DE). When 'Sorry' message was not displayed, verified was able to access UI (settings, etc).

image

I am in Turkey please enable ads for Turkey.

Brave | 0.63.55 Chromium: 74.0.3729.131聽(Official Build)聽(64-bit)
-- | --
Revision | 518a41c1fa7ce1c8bb5e22346e82e42b4d76a96f-refs/branch-heads/3729@{#954}
OS | Windows聽10 OS Build 17134.706

i am in Vietnam, please enable ads for Vietnam.

Brave | 0.66.99 Chromium: 75.0.3770.100聽(Official Build)聽(64-bit)
-- | --
Revision | cd0b15c8b6a4e70c44e27f35c37a4029bad3e3b0-refs/branch-heads/3770@{#1033}
OS | Mac OS X

Was this page helpful?
0 / 5 - 0 ratings