Implement Interactive Media Ads (IMA) SDK

This commit is contained in:
Robby Widyahartono
2019-12-10 11:40:49 +07:00
parent 0df667692b
commit 519355ea58
12 changed files with 257 additions and 14 deletions

View File

@@ -14,6 +14,11 @@ import {
import Video from 'react-native-video';
const adTagUrl = "https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/"
+ "ad_rule_samples&ciu_szs=300x250&ad_rule=1&impl=s&gdfp_req=1&env=vp"
+ "&output=vmap&unviewed_position_start=1&cust_params=deployment%3Ddevsite"
+ "%26sample_ar%3Dpremidpost&cmsid=496&vid=short_onecue&correlator=";
class VideoPlayer extends Component {
state = {
@@ -119,6 +124,7 @@ class VideoPlayer extends Component {
onAudioBecomingNoisy={this.onAudioBecomingNoisy}
onAudioFocusChanged={this.onAudioFocusChanged}
repeat={false}
adTagUrl={adTagUrl}
/>
</TouchableOpacity>