Skip to content

Commit

Permalink
Fix for the DAI additional setting 'AuthKey'
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 465051472
  • Loading branch information
google-ima-devrel-bot authored and IMA Developer Relations committed Aug 3, 2022
1 parent e2fdb7c commit a1cbb10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README-DAI.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ A summary of all settings follows:
| Settings | Type | Description |
|----------|------|-------------|
| apiKey | string | The API key. |
| authKey | string | The stream request authorization token. |
| authToken | string | The stream request authorization token. |
| bookmarkTime | number | The content time in seconds where the user previously left off. |
| locale | string | Supported country codes for localization. The supported locale codes can be found in [Localizing for Language and Locale](//developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/localization) |
| adTagParameters | object | This object will be set as `streamRequest.adTagParameters` on stream requests. |
Expand Down
4 changes: 2 additions & 2 deletions src/dai/sdk-impl.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,8 @@ SdkImpl.prototype.requestStream = function() {
if (this.daiController.getSettings().apiKey) {
streamRequest.apiKey = this.daiController.getSettings().apiKey;
}
if (this.daiController.getSettings().authKey) {
streamRequest.authKey = this.daiController.getSettings().authKey;
if (this.daiController.getSettings().authToken) {
streamRequest.authToken = this.daiController.getSettings().authToken;
}
if (this.daiController.getSettings().adTagParameters) {
streamRequest.adTagParameters =
Expand Down

0 comments on commit a1cbb10

Please sign in to comment.