Skip to content

Commit

Permalink
fix: SponsoredDisplaySnapshotOperation url fix (#920)
Browse files Browse the repository at this point in the history
  • Loading branch information
sravya-yelleti authored Feb 7, 2022
1 parent 1e24ea0 commit fe8bd00
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
} from './types'

export class SponsoredDisplaySnapshotOperation extends Operation {
protected resource = `${this.version}/${AmazonAdTypeURIPrefix.SponsoredDisplay}/`
protected resource = `${AmazonAdTypeURIPrefix.SponsoredDisplay}/`

/**
* Downloads the snapshot corresponding to the success snapshot response specified
Expand All @@ -22,7 +22,7 @@ export class SponsoredDisplaySnapshotOperation extends Operation {
public async downloadSnapshot<T extends SnapshotResultType[]>(
snapshot: SuccessSnapshotResponse,
): Promise<T> {
return this.client.download(`${this.version}/snapshots/${snapshot.snapshotId}/download`)
return this.client.download(`snapshots/${snapshot.snapshotId}/download`)
}

/**
Expand Down

0 comments on commit fe8bd00

Please sign in to comment.