im trying to read admob demo

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By szccornish

hai im new in coding, and i want to able read the demo admob code. can you guys tell me if im right or wrong ?

so the variable is named init and have a return value to bool, if engine has single admob then get the singleton admob. the ads will be real, get our id, and so until max_ad_content. the return true mean make it all work. the return false mean just do it once. im right guys ?

func init() → bool:
if(Engine.has_singleton(“AdMob”)):
_admob_singleton = Engine.get_singleton(“AdMob”)
_admob_singleton.initWithContentRating(
is_real,
get_instance_id(),
child_directed,
is_personalized,
max_ad_content_rate
)
return true
return false