Skip to content

Commit

Permalink
Update Ad Manager examples to use new interstitial test ad unit ID.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 651840379
  • Loading branch information
Mobile Ads Developer Relations authored and maddevrelgithubbot committed Jul 12, 2024
1 parent b8f3b28 commit 8445bb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ - (void)startNewGame {

- (void)loadInterstitial {
GAMRequest *request = [GAMRequest request];
[GAMInterstitialAd loadWithAdManagerAdUnitID:@"/6499/example/interstitial"
[GAMInterstitialAd loadWithAdManagerAdUnitID:@"/21775744923/example/interstitial"
request:request
completionHandler:^(GAMInterstitialAd *ad, NSError *error) {
if (error) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class ViewController: UIViewController, GADFullScreenContentDelegate {
fileprivate func loadInterstitial() async {
do {
interstitial = try await GAMInterstitialAd.load(
withAdManagerAdUnitID: "/6499/example/interstitial", request: GAMRequest())
withAdManagerAdUnitID: "/21775744923/example/interstitial", request: GAMRequest())
interstitial?.fullScreenContentDelegate = self
} catch {
print("Failed to load interstitial ad with error: \(error.localizedDescription)")
Expand Down

0 comments on commit 8445bb0

Please sign in to comment.