Here is my test code.
What's wrong?
Any way to debug?
[UMPConsentInformation.sharedInstance
requestConsentInfoUpdateWithParameters:parameters
completionHandler:^(NSError* _Nullable error) {
// The consent information has updated.
if (error) {
// Handle the error.
} else {
// The consent information state was updated.
// You are now ready to see if a form is available.
UMPFormStatus formStatus =
UMPConsentInformation.sharedInstance
.formStatus;
if (formStatus == UMPFormStatusAvailable) {
[self loadForm];
}
}
}];
Hi Jörg,
Thank you for reaching out to us.
The User Messaging Platform was only fully supported by Google starting from August 15, and should not have been expected to work prior to that date. There might also have been timezone differences to take account for during that time, which might explain why the UMP would not work exactly on that date.
With that said, could you kindly confirm if this issue still persists on your end? If it does, you may kindly provide the details below (via Reply privately to author) so that we can further investigate the issue:
Regards,
Ziv Yves Sanchez
Mobile Ads SDK Team
Hi there,
Thank you for reaching out to us.
Could you elaborate your concern so we could further assists you? If your concern isn't related to this thread, I would recommend opening a new thread instead for better tracking of the issue.
Regards,
Mark Albios
Mobile Ads SDK Team
[UMPConsentInformation.sharedInstance reset];
// Create a UMPRequestParameters object.
UMPRequestParameters *parameters = [[UMPRequestParameters alloc] init];
UMPDebugSettings *debugSettings = [[UMPDebugSettings alloc] init];
// debugSettings.testDeviceIdentifiers = @[ @"TEST-DEVICE-HASHED-ID" ];
debugSettings.geography = UMPDebugGeographyDisabled;
parameters.debugSettings = debugSettings;
// Set tag for under age of consent. Here @NO means users are not under age.
parameters.tagForUnderAgeOfConsent = @NO;
parameters.tagForUnderAgeOfConsent = @NO;
Why?
Hi Jörg,
I just want to check in on this thread to inform you that I've created a feature request for multiple language functionality for the UMP. You may follow our blog or release notes for future updates on this.
Regards,
Ziv Yves Sanchez
Mobile Ads SDK Team
parameters.tagForUnderAgeOfConsent = @NO;
We are suggesting that you remove the @ so it looks like this:
parameters.tagForUnderAgeOfConsent = NO;
From what we have seen through our testing and discussions with my team. This should fix anything related to that.
If the issue in question has to do with something other then this. Can you kindly pass along a more detailed description of the issue as well as any code sample for us to look at regarding this.
|
||||||
UMPConsentInformation.sharedInstance.reset()
let param = UMPRequestParameters()
param.tagForUnderAgeOfConsent = true
UMPConsentInformation.sharedInstance.requestConsentInfoUpdate(with: param) { (error) in
if error != nil {
//handle error
} else {
// The consent information state was updated.
// You are now ready to see if a form is available.
let status = UMPConsentInformation.sharedInstance.formStatus
if status == .available {
UMPConsentForm.load { (form, error) in
if error != nil {
//handle error
} else {
if UMPConsentInformation.sharedInstance.consentStatus == .required {
form?.present(from: self, completionHandler: { (error) in
})
}
}
}
}
}
}
OK, after a while the dialog started showing. Can’t really say what I was doing wrong but now that it works I can tell you need to:
- (void)initAdConsent {
// ========= FOR TESTING BEGIN ==========
UMPRequestParameters *parameters = [[UMPRequestParameters alloc] init];
UMPDebugSettings *debugSettings = [[UMPDebugSettings alloc] init];
debugSettings.geography = UMPDebugGeographyEEA;
parameters.debugSettings = debugSettings;
parameters.tagForUnderAgeOfConsent = NO;
[UMPConsentInformation.sharedInstance reset];
// ========= FOR TESTING END ==========
[UMPConsentInformation.sharedInstance
requestConsentInfoUpdateWithParameters:parameters completionHandler:^(NSError *_Nullable error) {
if (error) {
[self initAds];
} else {
UMPFormStatus formStatus = UMPConsentInformation.sharedInstance.formStatus;
if (formStatus == UMPFormStatusAvailable) {
[self loadForm]; // Show form THEN [self initAds];
} else {
[self initAds];
}
}];