Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add encodeURIComponent to referer url (getTopWindowUrl) #2609

Merged
merged 28 commits into from
May 30, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
1139ef1
commit gamma adapter
gammassp Feb 1, 2018
f0346d6
Fixed The Travis CI build failed
gammassp Feb 1, 2018
44cc909
fix interpretResponse return empty when server response empty
gammassp Feb 1, 2018
1f76f1d
removed mediaType
gammassp Feb 5, 2018
895d71e
fixed Travis CI build
gammassp Feb 5, 2018
8e3c38a
Travis CI build
gammassp Feb 5, 2018
e83dd68
add gamma spec
gammassp Feb 5, 2018
ffbfddb
fixed Travis CI build
gammassp Feb 5, 2018
57d241c
fix spec
gammassp Feb 5, 2018
ce3f6ea
fix spec
gammassp Feb 5, 2018
f63f0ec
Add files via upload
gammassp Feb 5, 2018
489a8f1
Add files via upload
gammassp Feb 5, 2018
718a4e7
fix spec
gammassp Feb 5, 2018
efba42f
fix Travis CI build
gammassp Feb 5, 2018
94e1f10
move to module
gammassp Feb 5, 2018
25e2520
remove gaxDomain param and move to adapter
gammassp Feb 12, 2018
b9889ad
remove check isBidRequestValid for gaxDomain
gammassp Feb 12, 2018
eca96a9
remove gaxDomain param
gammassp Feb 12, 2018
f5cf69e
remove gaxDomain param
gammassp Feb 12, 2018
a7bbbb2
remove gaxDomain param
gammassp Feb 12, 2018
81ed069
Delete gammaBidAdapter_spec.js
gammassp Feb 12, 2018
bb4169c
add usersync endpoid
gammassp Mar 5, 2018
29c0732
Merge branch 'master' into master
gammassp Mar 5, 2018
6ca18f4
add usersync
gammassp Mar 5, 2018
1548a0c
add vastUrl
gammassp Mar 14, 2018
7e5f905
add supportedMediaTypes to bidder spec
gammassp Mar 15, 2018
3163130
add Test Parameters: For Video
gammassp Mar 15, 2018
146f7e2
Add encodeURIComponent for referer url
gammassp May 24, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion modules/gammaBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const BIDDER_CODE = 'gamma';
export const spec = {
code: BIDDER_CODE,
aliases: ['gamma'],
supportedMediaTypes: ['banner', 'video'],

/**
* Determines whether or not the given bid request is valid.
Expand All @@ -29,7 +30,7 @@ export const spec = {
const gaxObjParams = find(bidRequests, hasParamInfo);
return {
method: 'GET',
url: '//' + ENDPOINT + '/adx/request?wid=' + gaxObjParams.params.siteId + '&zid=' + gaxObjParams.params.zoneId + '&hb=pbjs&bidid=' + gaxObjParams.bidId + '&urf=' + utils.getTopWindowUrl()
url: '//' + ENDPOINT + '/adx/request?wid=' + gaxObjParams.params.siteId + '&zid=' + gaxObjParams.params.zoneId + '&hb=pbjs&bidid=' + gaxObjParams.bidId + '&urf=' + encodeURIComponent(utils.getTopWindowUrl())
};
},

Expand All @@ -50,6 +51,15 @@ export const spec = {
}

return bids;
},

getUserSyncs: function(syncOptions) {
if (syncOptions.iframeEnabled) {
return [{
type: 'iframe',
url: '//' + ENDPOINT + '/adx/usersync'
}];
}
}
}

Expand All @@ -76,6 +86,7 @@ function newBid(serverBid) {
if (serverBid.type == 'video') {
Object.assign(bid, {
vastXml: serverBid.seatbid[0].bid[0].vastXml,
vastUrl: serverBid.seatbid[0].bid[0].vastUrl,
ttl: 3600
});
}
Expand Down
19 changes: 18 additions & 1 deletion modules/gammaBidAdapter.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Connects to Gamma exchange for bids.

Gamma bid adapter supports Banner, Video.

# Test Parameters
# Test Parameters: For Banner
```
var adUnits = [{
code: 'gamma-hb-ad-123456-0',
Expand All @@ -29,6 +29,23 @@ var adUnits = [{

}];
```
# Test Parameters: For Video
```
var adUnits = [{
code: 'gamma-hb-ad-78910-0',
sizes: [[640, 480]],

// Replace this object to test a new Adapter!
bids: [{
bidder: 'gamma',
params: {
siteId: '1465446377',
zoneId: '1493280341'
}
}]

}];
```
# Ad Unit and Setup: For Testing
In order to receive bids please map localhost to (any) test domain.

Expand Down