Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 4 additions & 0 deletions adapters/yandex/yandex.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,10 @@ func getReferer(request *openrtb2.BidRequest) string {
return ""
}

if request.Site.Page != "" {
return request.Site.Page
}

return request.Site.Domain
}

Expand Down
2 changes: 1 addition & 1 deletion adapters/yandex/yandextest/exemplary/multi-format.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "https://bs-metadsp.yandex.ru/prebid/123?imp-id=456&ssp-id=10500&target-ref=example.com",
"uri": "https://bs-metadsp.yandex.ru/prebid/123?imp-id=456&ssp-id=10500&target-ref=http%3A%2F%2Fexample.com",
"headers": {
"Accept": ["application/json"],
"Accept-Language": ["en"],
Expand Down
2 changes: 1 addition & 1 deletion adapters/yandex/yandextest/exemplary/native.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "https://bs-metadsp.yandex.ru/prebid/134001?imp-id=1&ssp-cur=USD&ssp-id=10500&target-ref=www.example.com",
"uri": "https://bs-metadsp.yandex.ru/prebid/134001?imp-id=1&ssp-cur=USD&ssp-id=10500&target-ref=http%3A%2F%2Fwww.example.com",
"headers": {
"User-Agent": [
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36"
Expand Down
8 changes: 4 additions & 4 deletions adapters/yandex/yandextest/exemplary/simple-banner.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
],
"site": {
"domain": "www.example.com",
"page": "http://www.example.com"
"page": "http://www.example.com/path?query=value"
},
"cur": [
"USD"
Expand All @@ -32,7 +32,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "https://bs-metadsp.yandex.ru/prebid/134001?imp-id=1&ssp-cur=USD&ssp-id=10500&target-ref=www.example.com",
"uri": "https://bs-metadsp.yandex.ru/prebid/134001?imp-id=1&ssp-cur=USD&ssp-id=10500&target-ref=http%3A%2F%2Fwww.example.com%2Fpath%3Fquery%3Dvalue",
"headers": {
"User-Agent": [
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36"
Expand All @@ -50,7 +50,7 @@
"application/json;charset=utf-8"
],
"Referer": [
"http://www.example.com"
"http://www.example.com/path?query=value"
],
"Accept": [
"application/json"
Expand Down Expand Up @@ -79,7 +79,7 @@
],
"site": {
"domain": "www.example.com",
"page": "http://www.example.com"
"page": "http://www.example.com/path?query=value"
},
"cur": [
"USD"
Expand Down
2 changes: 1 addition & 1 deletion adapters/yandex/yandextest/exemplary/simple-video.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "https://bs-metadsp.yandex.ru/prebid/123?imp-id=456&ssp-id=10500&target-ref=example.com",
"uri": "https://bs-metadsp.yandex.ru/prebid/123?imp-id=456&ssp-id=10500&target-ref=http%3A%2F%2Fexample.com",
"headers": {
"Accept": ["application/json"],
"Accept-Language": ["en"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "https://bs-metadsp.yandex.ru/prebid/111?imp-id=1&ssp-cur=USD&ssp-id=10500&target-ref=www.example.com",
"uri": "https://bs-metadsp.yandex.ru/prebid/111?imp-id=1&ssp-cur=USD&ssp-id=10500&target-ref=http%3A%2F%2Fwww.example.com",
"headers": {
"User-Agent": [
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36"
Expand Down
4 changes: 2 additions & 2 deletions adapters/yandex/yandextest/supplemental/multiple-imps.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "https://bs-metadsp.yandex.ru/prebid/111?imp-id=1&ssp-cur=USD&ssp-id=10500&target-ref=www.example.com",
"uri": "https://bs-metadsp.yandex.ru/prebid/111?imp-id=1&ssp-cur=USD&ssp-id=10500&target-ref=http%3A%2F%2Fwww.example.com",
"headers": {
"User-Agent": [
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36"
Expand Down Expand Up @@ -128,7 +128,7 @@
},
{
"expectedRequest": {
"uri": "https://bs-metadsp.yandex.ru/prebid/222?imp-id=2&ssp-cur=USD&ssp-id=10500&target-ref=www.example.com",
"uri": "https://bs-metadsp.yandex.ru/prebid/222?imp-id=2&ssp-cur=USD&ssp-id=10500&target-ref=http%3A%2F%2Fwww.example.com",
"headers": {
"User-Agent": [
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "https://bs-metadsp.yandex.ru/prebid/134001?imp-id=1&ssp-cur=USD&ssp-id=10500&target-ref=www.example.com",
"uri": "https://bs-metadsp.yandex.ru/prebid/134001?imp-id=1&ssp-cur=USD&ssp-id=10500&target-ref=http%3A%2F%2Fwww.example.com",
"headers": {
"User-Agent": [
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "https://bs-metadsp.yandex.ru/prebid/134001?imp-id=1&ssp-cur=USD&ssp-id=10500&target-ref=www.example.com",
"uri": "https://bs-metadsp.yandex.ru/prebid/134001?imp-id=1&ssp-cur=USD&ssp-id=10500&target-ref=http%3A%2F%2Fwww.example.com",
"headers": {
"User-Agent": [
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "https://bs-metadsp.yandex.ru/prebid/222?imp-id=4&ssp-cur=USD&ssp-id=10500&target-ref=www.example.com",
"uri": "https://bs-metadsp.yandex.ru/prebid/222?imp-id=4&ssp-cur=USD&ssp-id=10500&target-ref=http%3A%2F%2Fwww.example.com",
"headers": {
"User-Agent": [
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "https://bs-metadsp.yandex.ru/prebid/134001?imp-id=1&ssp-cur=USD&ssp-id=10500&target-ref=www.example.com",
"uri": "https://bs-metadsp.yandex.ru/prebid/134001?imp-id=1&ssp-cur=USD&ssp-id=10500&target-ref=http%3A%2F%2Fwww.example.com",
"headers": {
"User-Agent": [
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "https://bs-metadsp.yandex.ru/prebid/134001?imp-id=1&ssp-cur=USD&ssp-id=10500&target-ref=www.example.com",
"uri": "https://bs-metadsp.yandex.ru/prebid/134001?imp-id=1&ssp-cur=USD&ssp-id=10500&target-ref=http%3A%2F%2Fwww.example.com",
"headers": {
"User-Agent": [
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "https://bs-metadsp.yandex.ru/prebid/134001?imp-id=1&ssp-cur=USD&ssp-id=10500&target-ref=www.example.com",
"uri": "https://bs-metadsp.yandex.ru/prebid/134001?imp-id=1&ssp-cur=USD&ssp-id=10500&target-ref=http%3A%2F%2Fwww.example.com",
"headers": {
"User-Agent": [
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "https://bs-metadsp.yandex.ru/prebid/123?imp-id=456&ssp-id=10500&target-ref=example.com",
"uri": "https://bs-metadsp.yandex.ru/prebid/123?imp-id=456&ssp-id=10500&target-ref=http%3A%2F%2Fexample.com",
"headers": {
"Accept": ["application/json"],
"Accept-Language": ["en"],
Expand Down
Loading