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
canRequestAds is missing from Xamarin.Google.UserMesssagingPlatform #799
Comments
Thanks for the info. For the typo, open new issue , please. |
in ./generated/com.google.android.ump.user-messaging-platform/obj/Release/monoandroid12.0/generated/src/Xamarin.Google.UserMesssagingPlatform.IConsentInformation.cs // Metadata.xml XPath interface reference: path="/api/package[@name='com.google.android.ump']/interface[@name='ConsentInformation']"
[Register ("com/google/android/ump/ConsentInformation", "", "Xamarin.Google.UserMesssagingPlatform.IConsentInformationInvoker")]
public partial interface IConsentInformation : IJavaObject, IJavaPeerable {
int ConsentStatus {
// Metadata.xml XPath method reference: path="/api/package[@name='com.google.android.ump']/interface[@name='ConsentInformation']/method[@name='getConsentStatus' and count(parameter)=0]"
[Register ("getConsentStatus", "()I", "GetGetConsentStatusHandler:Xamarin.Google.UserMesssagingPlatform.IConsentInformationInvoker, Xamarin.Google.UserMessagingPlatform")]
get;
}
bool IsConsentFormAvailable {
// Metadata.xml XPath method reference: path="/api/package[@name='com.google.android.ump']/interface[@name='ConsentInformation']/method[@name='isConsentFormAvailable' and count(parameter)=0]"
[Register ("isConsentFormAvailable", "()Z", "GetIsConsentFormAvailableHandler:Xamarin.Google.UserMesssagingPlatform.IConsentInformationInvoker, Xamarin.Google.UserMessagingPlatform")]
get;
}
global::Xamarin.Google.UserMesssagingPlatform.ConsentInformationPrivacyOptionsRequirementStatus PrivacyOptionsRequirementStatus {
// Metadata.xml XPath method reference: path="/api/package[@name='com.google.android.ump']/interface[@name='ConsentInformation']/method[@name='getPrivacyOptionsRequirementStatus' and count(parameter)=0]"
[Register ("getPrivacyOptionsRequirementStatus", "()Lcom/google/android/ump/ConsentInformation$PrivacyOptionsRequirementStatus;", "GetGetPrivacyOptionsRequirementStatusHandler:Xamarin.Google.UserMesssagingPlatform.IConsentInformationInvoker, Xamarin.Google.UserMessagingPlatform")]
get;
}
// Metadata.xml XPath method reference: path="/api/package[@name='com.google.android.ump']/interface[@name='ConsentInformation']/method[@name='canRequestAds' and count(parameter)=0]"
[Register ("canRequestAds", "()Z", "GetCanRequestAdsHandler:Xamarin.Google.UserMesssagingPlatform.IConsentInformationInvoker, Xamarin.Google.UserMessagingPlatform")]
bool CanRequestAds ();
// Metadata.xml XPath method reference: path="/api/package[@name='com.google.android.ump']/interface[@name='ConsentInformation']/method[@name='requestConsentInfoUpdate' and count(parameter)=4 and parameter[1][@type='android.app.Activity'] and parameter[2][@type='com.google.android.ump.ConsentRequestParameters'] and parameter[3][@type='com.google.android.ump.ConsentInformation.OnConsentInfoUpdateSuccessListener'] and parameter[4][@type='com.google.android.ump.ConsentInformation.OnConsentInfoUpdateFailureListener']]"
[Register ("requestConsentInfoUpdate", "(Landroid/app/Activity;Lcom/google/android/ump/ConsentRequestParameters;Lcom/google/android/ump/ConsentInformation$OnConsentInfoUpdateSuccessListener;Lcom/google/android/ump/ConsentInformation$OnConsentInfoUpdateFailureListener;)V", "GetRequestConsentInfoUpdate_Landroid_app_Activity_Lcom_google_android_ump_ConsentRequestParameters_Lcom_google_android_ump_ConsentInformation_OnConsentInfoUpdateSuccessListener_Lcom_google_android_ump_ConsentInformation_OnConsentInfoUpdateFailureListener_Handler:Xamarin.Google.UserMesssagingPlatform.IConsentInformationInvoker, Xamarin.Google.UserMessagingPlatform")]
void RequestConsentInfoUpdate (global::Android.App.Activity p0, global::Xamarin.Google.UserMesssagingPlatform.ConsentRequestParameters p1, global::Xamarin.Google.UserMesssagingPlatform.IConsentInformationOnConsentInfoUpdateSuccessListener p2, global::Xamarin.Google.UserMesssagingPlatform.IConsentInformationOnConsentInfoUpdateFailureListener p3);
// Metadata.xml XPath method reference: path="/api/package[@name='com.google.android.ump']/interface[@name='ConsentInformation']/method[@name='reset' and count(parameter)=0]"
[Register ("reset", "()V", "GetResetHandler:Xamarin.Google.UserMesssagingPlatform.IConsentInformationInvoker, Xamarin.Google.UserMessagingPlatform")]
void Reset ();
} closing this issue. Open a new one if issue persists. Thanks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To implement the latest GDPR requirements for AdMob, I tried to follow Google's Guide with UMP here: https://developers.google.com/admob/android/privacy?hl=de
However, the "CanRequestAds" method does simply not exists in the Xamarin implementation... Also the namespace in the library has a typo Xamarin.Google.UserMesssagingPlatform -> Messaging with 3x "s" x)
The text was updated successfully, but these errors were encountered: