3

I have installed the following library in my app:

implementation 'com.google.android.ads.consent:consent-library:1.0.6'

And according to the documentation, I should be able to modify it, but I can't find the HTML file.

Daniel
  • 2,355
  • 9
  • 23
  • 30
Newsonic
  • 413
  • 4
  • 19

1 Answers1

7

Just create an html in assets folder & name it consentform.html During compilation, your html file will be used & default one will be overridden!

Darshan
  • 4,020
  • 2
  • 18
  • 49
  • 2
    This worked thanks! Just want to add that the official consentform.html can be gotten from this [repository](https://github.com/googleads/googleads-consent-sdk-android/blob/master/consent-library/src/main/assets/consentform.html). – Newsonic Jul 21 '18 at 18:11
  • 1
    If, like me, you didn't have an `assets` folder, see https://stackoverflow.com/questions/18302603/where-do-i-place-the-assets-folder-in-android-studio for how to create one. – snark Aug 26 '18 at 14:40
  • 3
    Is there a way to translate consentform.html in different languages by using some modifiers or gradle configuration? – luben Oct 14 '19 at 05:24
  • This works great! I am interested also in different translations, i do not know if it is possible folder assets by lang or other ways to load the conserntform.html – Billyjoker May 05 '20 at 07:53