Skip to content

Commit

Permalink
Fix RequestConsent calls/comment
Browse files Browse the repository at this point in the history
  • Loading branch information
DelphiWorlds committed Feb 21, 2024
1 parent 14a6127 commit b583db9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Demos/AdMob/Unit1.pas
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,13 @@ constructor TForm1.Create(AOwner: TComponent);

procedure TForm1.ConsentButtonClick(Sender: TObject);
begin
// Use RequestConsent(False) if you need to opt out of UMP
// Use RequestConsent(True) if you need to OPT OUT out of UMP
{$IF CompilerVersion > 35}
AdMob.RequestConsent;
{$ELSE}
// UMP not supported on Delphi 11
AdMob.RequestConsent(True);
{$ENDIF}
// **** NOTE: Ads will not start until RequestConsent has been called ****
end;

Expand Down

0 comments on commit b583db9

Please sign in to comment.