Swift iOS -Admob how to determine if the user is a California state resident to prepare for the California Consumer Privacy Act (CCPA)
Asked Answered
W

2

13

I just received an email from Google:

Important updates about the California Consumer Privacy Act (CCPA)

Basically it's a lite version of the GDPR rules in Europe but for California residents that will kick in on Jan 1, 2020. Google says:

The following products require action to enable restricted data processing: AdMob

When I click the AdMob link it says:

Some publishers may choose not to display a “Do Not Sell My Personal Information” link on their properties.

Alternatively, other publishers may choose to display a “Do Not Sell My Personal Information” link

When using the Google GDPR Consent Form SDK it makes my life very easy. The sdk can determine if the user is inside a GDPR region using the below code:

import PersonalizedAdConsent
PACConsentInformation.sharedInstance.debugGeography = .EEA
if PACConsentInformation.sharedInstance.isRequestLocationInEEAOrUnknown { ... }

If the user is inside the region I can present them the following form:

enter image description here

The CCPA code for the iOS page says to add this code:

let request = DFPRequest()
let adNetworkExtras = GADExtras()
adNetworkExtras.additionalParameters = [ "rdp" : "1" ]
request.register(adNetworkExtras)

I can show the user an alert that says “Do Not Sell My Personal Information” with a Yes/No option and if they want to opt out then the above code gets set. Unlike the GDPR consent form the big problem here is determining wether or not the user is or isn't a CA state resident.

The law establishes various rights for California state residents. I only want to present the form to users who are California state residents but there is a dilemma.

1- the user is located IN CA and IS a CA state resident (present them the alert)

2- the user is located OUTSIDE CA and IS a CA state resident (present them the alert)

3- the user is located IN CA and IS NOT a CA state resident (don't present anything)

4- the user is located OUTSIDE CA and IS NOT a CA state resident (don't present anything)

How can I determine if the user is located in CA vs them being a resident of CA so I know who to present the “Do Not Sell My Personal Information” alert to?

These are 4 very real situations that I cannot figure out how to parse.

Whitehorse answered 18/11, 2019 at 21:11 Comment(1)
Show the option as if the new rules applied to the USA in general. That, after all, was California’s intention in passing them.Collie
W
9

This answer doesn't really answer my own question only because there doesn't seem a viable way for a small developer to work around this issue.

In the comments underneath the question @matt suggested to just show the form to everyone in the US but that gives everyone in every state the option to opt-out. As a solo developer every dollar counts. I can understand the larger issue at hand but I need money to survive and to support my app business. If everyone everywhere has the option to opt-out I can loose income from the few people I currently have using my app (non-personalized ads brings in less revenue).

If I serve personalized ads to CA state residents without giving them the option to opt-out I'm in violation of the law.

It's like a "you're damned if you do and you're damned if you don't” type situation smh.

Outside of simply presenting an alert that asks the user if they are or aren't a CA state resident to avoid problems with the law the safest bet is just to let Google decide.

Go to AdMob, login, and follow the 3 steps in red in the pic below:

enter image description here

It should be noted that Google decides for both options and I choose restricted. Maybe you want to choose Don't Restrict but Google will make a determination on that also.

Whitehorse answered 23/11, 2019 at 17:19 Comment(4)
I don't get this. Isn't there a law in CA, so we MUST choose the 2nd option (Restrict)?Brusque
I agree, it’s baffling the way Google wrote this up because both buttons basically do the save exact thing. It’s going odd 🤷🏾‍♂️Whitehorse
So which one to choose then?Brusque
things like these makes me hate privacy, as a solo developer i spent more time going after over the top GDPR, CCPA policies more than I developed ads in my app. Does everyone need to pay for a lawyer to display ads? smh, this is so frustrating. All i am trying to do is show ads and there are tons of complicationsMiscible
W
0

If you read the chapter after the choice, they say that if you choose to don't restrict, you will have to implement it in your app, inside the ad request. They put a link to explain how to do.

Whisky answered 8/12, 2019 at 11:34 Comment(1)
Thanks for the answer. Did you read the sentence that they put there. For Don’t Restrict it says “Google will continue to show personalized ads to eligible users in California”. I take that has meaning if you aren’t eligible then you won’t see them 🤷🏾‍♂️. They weren’t very clear the way they wrote this up. But regardless they make the decision in both situations. To be safe I choose Restricted.Whitehorse

© 2022 - 2024 — McMap. All rights reserved.