title: Google unified messaging platform SDK implementation
body: <p>I am wondering how I can make the form show in my iOS App <a href="https://developers.google.com/admob/ump/ios/quick-start" rel="nofollow noreferrer">https://developers.google.com/admob/ump/ios/quick-start</a>.</p>
  <p>I am using Xcode vs 11.6 and exported the game from Godot game engine.</p>
  <p>I have changed the <code>GADApplicationIdentifier</code> in my <code>info.plist</code> and I don't get any errors in my code it just doesn't show the form when I run the game. I live in Europe. Any help is appreciated.</p>
  <p>This is my current code:</p>
  <pre><code>#include &lt;UserMessagingPlatform/UserMessagingPlatform.h&gt;
  #import &quot;ViewController1.h&quot;
  #include &lt;UserMessagingPlatform/UserMessagingPlatform.h&gt;
  
  @interface ViewController1 ()
  
  @end
  
  @implementation ViewController1
  - (void)start {
      // Create a UMPRequestParameters object.
      UMPRequestParameters *parameters = [[UMPRequestParameters alloc] init];
      // Set tag for under age of consent. Here @NO means users are not under age.
      parameters.tagForUnderAgeOfConsent = @NO;
  
      // Request an update to the consent information.
      [UMPConsentInformation.sharedInstance
          requestConsentInfoUpdateWithParameters:parameters
                               completionHandler:^(NSError *_Nullable error) {
                                 if (error) {
                                   // Handle the error.
                                 } else {
                                   // The consent information state was updated.
                                   // You are now ready to check if a form is
                                   // available.
                                  UMPFormStatus formStatus =
                                      UMPConsentInformation.sharedInstance
                                             .formStatus;
                                  if (formStatus == UMPFormStatusAvailable) {
                                      [self loadForm];
                                     }
                                 }
                               }];
      
  }
  - (void)viewDidLoad {
      // Create a UMPRequestParameters object.
      UMPRequestParameters *parameters = [[UMPRequestParameters alloc] init];
      // Set tag for under age of consent. Here @NO means users are not under age.
      parameters.tagForUnderAgeOfConsent = @NO;
  
      // Request an update to the consent information.
      [UMPConsentInformation.sharedInstance
          requestConsentInfoUpdateWithParameters:parameters
                               completionHandler:^(NSError *_Nullable error) {
                                 if (error) {
                                   // Handle the error.
                                 } else {
                                   // The consent information state was updated.
                                   // You are now ready to check if a form is
                                   // available.
                                  UMPFormStatus formStatus =
                                      UMPConsentInformation.sharedInstance
                                             .formStatus;
                                  if (formStatus == UMPFormStatusAvailable) {
                                      [self loadForm];
                                     }
                                 }
                               }];
      [super viewDidLoad];
  }
  
  - (void)loadForm {
  [UMPConsentForm loadWithCompletionHandler:^(UMPConsentForm *form,
                                              NSError *loadError) {
    if (loadError) {
      // Handle the error.
    } else {
      // Present the form. You can also hold on to the reference to present
      // later.
      if (UMPConsentInformation.sharedInstance.consentStatus ==
          UMPConsentStatusRequired) {
        [form
            presentFromViewController:self
                    completionHandler:^(NSError *_Nullable dismissError) {
                      if (UMPConsentInformation.sharedInstance.consentStatus ==
                          UMPConsentStatusObtained) {
                        // App can start requesting ads.
                      }
  
                    }];
      } else {
        // Keep the form available for changes to user consent.
      }
    }
  }];
  }
  
  
  @end
  </code></pre>