Skip to content

Instantly share code, notes, and snippets.

@hehehaha0228
Last active June 12, 2018 05:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hehehaha0228/76ddf7121470295e0b33ce60556841e2 to your computer and use it in GitHub Desktop.
Save hehehaha0228/76ddf7121470295e0b33ce60556841e2 to your computer and use it in GitHub Desktop.
import GoogleMobileAds
class AppDelegate:UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
//這邊要做的只有兩件事,一個是import GoogleMobileAds
//另一個就是在didFinishLaunchingWithOptions裡面輸入下面這一行
GADMobileAds.configure(withApplicationID: "這邊就是你自己的 app ID ")
return true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment