Search Unity

Newbie, initial ad setup

Discussion in 'Unity Ads & User Acquisition' started by benvanj, Sep 12, 2018.

  1. benvanj

    benvanj

    Joined:
    Jun 26, 2018
    Posts:
    116
    Good day,

    I am a newbie and am struggling to follow the instructions of how to initialize my ads...

    Please help

    in the integration guide they say that I have to:
    Integrate Ads to the Asset Package
    1:Declare the Unity Ads namespace........Done
    2:Inititalize Unity Ads early in the game’s runtime lifecycle, preferably at launch, using the copied Game ID string, gameId:.............................

    Where do I do this?? where do i put the code in???
    ------------------------------------------------------------------------------------------------------------------------------------

    then to show ads...

    so if I want to show ads in a particular script...
    can I just add the code:

    Advertisement.Show()
    anywhere in the script, where I need it to go(after a gameover)?

    as long as I have :
    Declare the Unity Ads namespace,?

    Please help, thanks...
     
  2. rasmus-unity

    rasmus-unity

    Moderator

    Joined:
    Aug 15, 2014
    Posts:
    1,312
  3. benvanj

    benvanj

    Joined:
    Jun 26, 2018
    Posts:
    116
    Hi, Thanks for coming back to me... not sure if i understand what is going on there... but I am going to play around with it a bit...