Skip to content

Commit

Permalink
Updates ObjC BasicExample to use network code for requests.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 718856544
  • Loading branch information
google-ima-devrel-bot authored and IMA Developer Relations committed Jan 23, 2025
1 parent 23beaa8 commit b3e7e10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Objective-C/BasicExample/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '14'

target 'BasicExample' do
pod 'GoogleAds-IMA-iOS-SDK', '~> 3.23.0'
pod 'GoogleAds-IMA-iOS-SDK', '~> 3.24.0'
end
2 changes: 2 additions & 0 deletions Objective-C/BasicExample/app/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,15 @@ - (void)requestStream {
if (useLiveStream) {
// Live stream request. Replace the asset key with your value.
request = [[IMALiveStreamRequest alloc] initWithAssetKey:@"c-rArva4ShKVIAkNfy6HUQ"
networkCode:@"21775744923"
adDisplayContainer:self.adDisplayContainer
videoDisplay:self.imaVideoDisplay
userContext:nil];
} else {
// VOD request. Replace the content source ID and video ID with your values.
request = [[IMAVODStreamRequest alloc] initWithContentSourceID:@"2548831"
videoID:@"tears-of-steel"
networkCode:@"21775744923"
adDisplayContainer:self.adDisplayContainer
videoDisplay:self.imaVideoDisplay
userContext:nil];
Expand Down

0 comments on commit b3e7e10

Please sign in to comment.