only a single choice non personalized ads : Consent SDK implementation iOS

258 views
Skip to first unread message

vivek Agar

unread,
Jul 13, 2018, 5:43:21 AM7/13/18
to google-adm...@googlegroups.com
I am implementing EU Consent SDK for AD Mob, i am seeing pop up differently which is having only Agree  button, not sure whats wrong, Here is my implementation Code: 
PACConsentInformation.sharedInstance.requestConsentInfoUpdate(

            forPublisherIdentifiers: [“12345678”])

        {(_ error: Error?) -> Void in

            if let error = error {

                // Consent info update failed.

                print("Info Update Failed...")

            } else {

                // Consent info update succeeded. The shared PACConsentInformation

                // instance has been updated.

            }

        }

        

        PACConsentInformation.sharedInstance.debugGeography = PACDebugGeography.EEA;

        if (PACConsentInformation.sharedInstance.isRequestLocationInEEAOrUnknown){

            if(PACConsentInformation.sharedInstance.consentStatus == PACConsentStatus.unknown){

                let urlToLoad = KeychainWrapper.standard.string(forKey: kPrivacyPolicyUrl)!

                guard let privacyUrl = URL(string: urlToLoad),

                    let form = PACConsentForm(applicationPrivacyPolicyURL: privacyUrl) else {

                        print("incorrect privacy URL.")

                        return

                }

                form.shouldOfferPersonalizedAds = true

                form.shouldOfferNonPersonalizedAds = true

                form.shouldGroupAccessibilityChildren = true

                //form.shouldOfferAdFree = false

                //Load Form

                form.load {(_ error: Error?) -> Void in

                    print("Load complete.")

                    if let error = error {

                        // Handle error.

                        print("Error loading form: \(error.localizedDescription)")

                    } else {

                        // Load successful.

                        form.present(from: self) { (error, userPrefersAdFree) in

                            if let error = error {

                                // Handle error.

                            } else if userPrefersAdFree {

                                // User prefers to use a paid version of the app.

                            } else {

                                // Check the user's consent choice.

                                let status =

                                    PACConsentInformation.sharedInstance.consentStatus

                                print("Userconsent = \(status.rawValue)")

                            }

                        }

                    }

                }

            }

        }

        


Also see attached screenshot of my App popup



I want to show first two options, (personalized ads and non personalized ads )to user how toachieve that, does anything wrong in code above?


Best,

Vivek


Screen Shot 2018-07-12 at 6.12.16 PM copy.png

mobileadssdk-a...@google.com

unread,
Jul 13, 2018, 3:15:44 PM7/13/18
to vivek Agar, Google Mobile Ads SDK Developers
Hi Vivek,

Thanks for reaching out to us. I don't see any issues with the code snippets. Can you provide us a sample app with your implementation so that we can take a look and assist you further? Also, please make sure to be on the latest version of consent SDK. You can use "Reply privately to Author" option to send the requested information privately.

Regards,
Deepika Uragayala
Mobile Ads SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

On 07/13/18 05:43:21 vivekaga...@gmail.com wrote:
I am implementing EU Consent SDK for AD Mob, i am seeing pop up differently which is having only Agree  button, not sure whats wrong, Here is my implementation Code: 
PACConsentInformation.sharedInstance.requestConsentInfoUpdate(

            forPublisherIdentifiers: [“12345678”])

        {(_ error: Error?) -> Void in

            if let error = error {

                // Consent info update failed.

                print("Info Update Failed...")

            } else {

                // Consent info update succeeded. The shared PACConsentInformation

                // instance has been updated.

//                PACConsentInformation.sharedInstance.consentStatus = PACConsentStatus.unknown


            }

        }

//Debug only

        //PACConsentInformation.sharedInstance.debugIdentifiers = ["05BB7349-74F8-4E83-BF71-E83245736C54"]

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/80e1f1e1-90c3-4662-9e1a-ed04398b7560%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

mobileadssdk-a...@google.com

unread,
Jul 16, 2018, 3:37:45 PM7/16/18
to vivek Agar, Google Mobile Ads SDK Developers
Hi Vivek,

Thanks for sending the sample app. I've shared this with the team and we will get back as soon as we have enough information.

Regards,
Deepika Uragayala
Mobile Ads SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsubscrib...@googlegroups.com.

Алексей Бирюков

unread,
Aug 5, 2019, 11:42:44 PM8/5/19
to Google Mobile Ads SDK Developers
Hello, could you tell please, was this issue resolved? I have the same behaviour, only "agree" button is showing. 
I'm trying to control buttons with methods setShouldOfferPersonalizedAds, setShouldOfferAdFree, setShouldOfferNonPersonalizedAds
Best regards!

пятница, 13 июля 2018 г., 14:43:21 UTC+5 пользователь vivek Agar написал:

Mobile Ads SDK Forum Advisor Prod

unread,
Aug 6, 2019, 3:33:46 PM8/6/19
to biruko...@gmail.com, google-adm...@googlegroups.com
Hello there,

If you are using DFP,  can you check  your setup and see if you have selected 'Non-personalized Ads' in the front end web-console in your DFP account, under 'EU user consent'? If yes, can you try changing this to personalized ads? Then, you should see the personalized ads option after doing that. The issue was resolved to the previous user on this thread after making these suggested changes. 


Regards,
Deepika Uragayala
Mobile Ads SDK Team
 

ref:_00D1U1174p._5001UEHzMk:ref
Reply all
Reply to author
Forward
0 new messages