I found out that I should add a package named IOS14 ads tracking from unity package manager and import sample. then edit script.
And Add Sample scene to Scenes List in Build Settings in 0 position.