Skip to content

Commit

Permalink
Merge pull request #894 from tv2/feature/set-ppid
Browse files Browse the repository at this point in the history
Feature/set ppid
  • Loading branch information
Kiro705 authored Mar 3, 2020
2 parents 60f5443 + 4290cbe commit c160885
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ the previous snippet. A summary of all settings follows:
| vastLoadTimeout | number | Override for default VAST load timeout in milliseconds for a single wrapper. The default timeout is 5000ms. |
| vpaidAllowed | boolean | **DEPRECATED**, please use vpaidMode. |
| vpaidMode | VpaidMode(5) | VPAID Mode. Defaults to ENABLED. This setting,overrides vpaidAllowed. |
| preventLateAdStart | boolean | Prevent ads from starting after the content has started if an adtimeout occurred (preroll, midroll, postroll). The default value is false
| preventLateAdStart | boolean | Prevent ads from starting after the content has started if an adtimeout occurred (preroll, midroll, postroll). The default value is false |
| ppid | string | Sets the publisher provided id |


(1) [IMA SDK Docs](//developers.google.com/interactive-media-ads/docs/sdks/html5/v3/apis#ima.AdsRenderingSettings)
Expand Down
4 changes: 4 additions & 0 deletions src/sdk-impl.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ const SdkImpl = function(controller) {
google.ima.settings.setDisableCustomPlaybackForIOS10Plus(
this.controller.getSettings().disableCustomPlaybackForIOS10Plus);
}

if (this.controller.getSettings().ppid) {
google.ima.settings.setPpid(this.controller.getSettings().ppid);
}
};


Expand Down

0 comments on commit c160885

Please sign in to comment.