Skip to content

Commit

Permalink
Added setting for providing a ppid
Browse files Browse the repository at this point in the history
  • Loading branch information
mimse committed Feb 28, 2020
1 parent 4dfd21f commit 4290cbe
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 4290cbe

Please sign in to comment.