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

HuaweiAds: Increase fill rate for native ads #3279

Merged
merged 5 commits into from
Nov 20, 2023
Merged

HuaweiAds: Increase fill rate for native ads #3279

merged 5 commits into from
Nov 20, 2023

Conversation

ahmetfaruk59
Copy link
Contributor

@ahmetfaruk59 ahmetfaruk59 commented Nov 3, 2023

Depending on the size of the requested ad, filter popular sizes and bind it to the request as multiple format.

@ahmetfaruk59 ahmetfaruk59 changed the title HuaweiAds: increase fill rate HuaweiAds: increase fill rate for native ads Nov 3, 2023
Copy link

github-actions bot commented Nov 3, 2023

Code coverage summary

Note:

  • Prebid team doesn't anticipate tests covering code paths that might result in marshal and unmarshal errors
  • Coverage summary encompasses all commits leading up to the latest one, d7338d1

huaweiads

Refer here for heat map coverage report

github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:267:		MakeRequests				93.3%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:325:		getFinalEndPoint			85.7%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:355:		MakeBids				91.7%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:382:		Builder					100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:395:		getExtraInfo				94.1%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:430:		getHeaders				88.9%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:446:		getReqJson				90.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:461:		getReqAdslot30				100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:483:		checkAndExtractOpenrtbFormat		100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:511:		getBannerFormat				100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:527:		getNativeFormat				89.2%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:591:		filterPopularSizes			90.9%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:609:		getVideoFormat				100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:622:		convertAdtypeStringToInteger		60.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:646:		getReqAppInfo				93.8%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:680:		getFinalPkgName				93.8%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:715:		getClientTime				75.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:735:		getReqDeviceInfo			96.6%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:778:		getCountryCode				100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:791:		convertCountryCode			75.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:812:		getCountryCodeFromMCC			100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:829:		getDeviceIDFromUserExt			100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:874:		getReqNetWorkInfo			85.7%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:910:		getReqRegsInfo				100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:919:		getReqGeoInfo				100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:931:		getReqConsentInfo			80.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:941:		unmarshalExtImpHuaweiAds		88.2%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:968:		checkRespStatusCode			77.8%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:991:		checkHuaweiAdsResponseRetcode		80.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1005:	convertHuaweiAdsRespToBidderResp	90.2%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1074:	getNurl					66.7%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1087:	handleHuaweiAdsContent			87.5%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1107:	extractAdmBanner			60.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1129:	extractAdmNative			87.2%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1249:	getDecodeValue				80.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1260:	jsonEncode				100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1269:	extractAdmPicture			90.9%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1332:	getClickUrl				100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1349:	getDspImpClickTrackings			100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1363:	getStrings				87.5%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1378:	getDuration				100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1385:	extractAdmVideo				85.4%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1548:	getVastImpClickErrorTrackingUrls	100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1568:	getVastEventTrackingUrls		100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1588:	computeHmacSha256			100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1595:	getDigestAuthorization			100.0%
total:										(statements)				90.0%

@ahmetfaruk59 ahmetfaruk59 changed the title HuaweiAds: increase fill rate for native ads WIP: Ads huawei adapter Nov 3, 2023
@ahmetfaruk59 ahmetfaruk59 changed the title WIP: Ads huawei adapter HuaweiAds: Increase fill rate for native ads Nov 3, 2023
@ahmetfaruk59
Copy link
Contributor Author

ahmetfaruk59 commented Nov 6, 2023

@bretg @onkarvhanumante Hi, hope you doing ok. Could you check here please?

@bretg
Copy link
Contributor

bretg commented Nov 6, 2023

@ahmetfaruk59 - this will go through the normal review assignment process.

@ahmetfaruk59
Copy link
Contributor Author

@ahmetfaruk59 - this will go through the normal review assignment process.

Thanks @bretg. And when is it reviewed and merged? I thought the server is updated weekly. It was a bit of an urgent development.

Copy link

github-actions bot commented Nov 9, 2023

Code coverage summary

Note:

  • Prebid team doesn't anticipate tests covering code paths that might result in marshal and unmarshal errors
  • Coverage summary encompasses all commits leading up to the latest one, 9ab06c1

huaweiads

Refer here for heat map coverage report

github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:267:		MakeRequests				93.3%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:325:		getFinalEndPoint			85.7%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:355:		MakeBids				91.7%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:382:		Builder					100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:395:		getExtraInfo				94.1%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:430:		getHeaders				88.9%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:446:		getReqJson				90.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:461:		getReqAdslot30				100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:483:		checkAndExtractOpenrtbFormat		100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:511:		getBannerFormat				100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:527:		getNativeFormat				89.2%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:591:		filterPopularSizes			90.9%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:609:		getVideoFormat				100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:622:		convertAdtypeStringToInteger		60.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:646:		getReqAppInfo				93.8%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:680:		getFinalPkgName				93.8%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:715:		getClientTime				75.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:735:		getReqDeviceInfo			96.6%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:778:		getCountryCode				100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:791:		convertCountryCode			75.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:812:		getCountryCodeFromMCC			100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:829:		getDeviceIDFromUserExt			100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:874:		getReqNetWorkInfo			85.7%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:910:		getReqRegsInfo				100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:919:		getReqGeoInfo				100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:931:		getReqConsentInfo			80.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:941:		unmarshalExtImpHuaweiAds		88.2%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:968:		checkRespStatusCode			77.8%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:991:		checkHuaweiAdsResponseRetcode		71.4%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1009:	convertHuaweiAdsRespToBidderResp	90.2%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1078:	getNurl					66.7%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1091:	handleHuaweiAdsContent			87.5%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1111:	extractAdmBanner			60.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1133:	extractAdmNative			87.2%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1253:	getDecodeValue				80.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1264:	jsonEncode				100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1273:	extractAdmPicture			90.9%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1336:	getClickUrl				100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1353:	getDspImpClickTrackings			100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1367:	getStrings				87.5%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1382:	getDuration				100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1389:	extractAdmVideo				85.4%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1552:	getVastImpClickErrorTrackingUrls	100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1572:	getVastEventTrackingUrls		100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1592:	computeHmacSha256			100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1599:	getDigestAuthorization			100.0%
total:										(statements)				89.9%

@onkarvhanumante
Copy link
Contributor

onkarvhanumante commented Nov 9, 2023

@ahmetfaruk59 - this will go through the normal review assignment process.

Thanks @bretg. And when is it reviewed and merged? I thought the server is updated weekly. It was a bit of an urgent development.

@ahmetfaruk59 Thank you for keeping patience with us. Reviewer are assigned to review PR

Comment on lines +568 to +573
if numFormat == 1 && asset.Img.H != 0 && asset.Img.W != 0 && asset.Img.WMin != 0 && asset.Img.HMin != 0 {
result := filterPopularSizes(popularSizes, asset.Img.W, asset.Img.H, "ratio")
for i := 0; i < len(result); i++ {
formats = append(formats, format{result[i]["w"], result[i]["h"]})
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should add json framework test to cover above code path

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @onkarvhanumante , thanks for all feedbacks and review 🙌 It's updated.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @ahmetfaruk59

could you link jsontest where numFormatcount is 1 and asset.Img.W is 0 and asset.Img.H is 0

If jsontest is not available then should add one for above scenario

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @onkarvhanumante . actually nativeThreeImageIncludeIcon test file covers this scenario but i added a new test file only this case in last commit. thanks again for your feedback 🙌

Copy link

github-actions bot commented Nov 9, 2023

Code coverage summary

Note:

  • Prebid team doesn't anticipate tests covering code paths that might result in marshal and unmarshal errors
  • Coverage summary encompasses all commits leading up to the latest one, 539e169

huaweiads

Refer here for heat map coverage report

github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:267:		MakeRequests				93.3%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:325:		getFinalEndPoint			85.7%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:355:		MakeBids				91.7%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:382:		Builder					100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:395:		getExtraInfo				94.1%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:430:		getHeaders				88.9%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:446:		getReqJson				90.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:461:		getReqAdslot30				100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:483:		checkAndExtractOpenrtbFormat		100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:511:		getBannerFormat				100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:527:		getNativeFormat				97.3%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:591:		filterPopularSizes			100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:609:		getVideoFormat				100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:622:		convertAdtypeStringToInteger		60.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:646:		getReqAppInfo				93.8%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:680:		getFinalPkgName				93.8%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:715:		getClientTime				75.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:735:		getReqDeviceInfo			96.6%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:778:		getCountryCode				100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:791:		convertCountryCode			75.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:812:		getCountryCodeFromMCC			100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:829:		getDeviceIDFromUserExt			100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:874:		getReqNetWorkInfo			85.7%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:910:		getReqRegsInfo				100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:919:		getReqGeoInfo				100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:931:		getReqConsentInfo			80.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:941:		unmarshalExtImpHuaweiAds		88.2%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:968:		checkRespStatusCode			77.8%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:991:		checkHuaweiAdsResponseRetcode		71.4%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1009:	convertHuaweiAdsRespToBidderResp	90.2%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1078:	getNurl					66.7%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1091:	handleHuaweiAdsContent			87.5%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1111:	extractAdmBanner			60.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1133:	extractAdmNative			87.2%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1253:	getDecodeValue				80.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1264:	jsonEncode				100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1273:	extractAdmPicture			90.9%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1336:	getClickUrl				100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1353:	getDspImpClickTrackings			100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1367:	getStrings				87.5%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1382:	getDuration				100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1389:	extractAdmVideo				85.4%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1552:	getVastImpClickErrorTrackingUrls	100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1572:	getVastEventTrackingUrls		100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1592:	computeHmacSha256			100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1599:	getDigestAuthorization			100.0%
total:										(statements)				90.4%

Copy link

github-actions bot commented Nov 9, 2023

Code coverage summary

Note:

  • Prebid team doesn't anticipate tests covering code paths that might result in marshal and unmarshal errors
  • Coverage summary encompasses all commits leading up to the latest one, a483e70

huaweiads

Refer here for heat map coverage report

github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:267:		MakeRequests				93.3%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:325:		getFinalEndPoint			85.7%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:355:		MakeBids				91.7%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:382:		Builder					100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:395:		getExtraInfo				94.1%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:430:		getHeaders				88.9%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:446:		getReqJson				90.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:461:		getReqAdslot30				100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:483:		checkAndExtractOpenrtbFormat		100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:511:		getBannerFormat				100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:527:		getNativeFormat				97.4%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:593:		filterPopularSizes			100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:615:		getVideoFormat				100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:628:		convertAdtypeStringToInteger		60.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:652:		getReqAppInfo				93.8%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:686:		getFinalPkgName				93.8%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:721:		getClientTime				75.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:741:		getReqDeviceInfo			96.6%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:784:		getCountryCode				100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:797:		convertCountryCode			75.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:818:		getCountryCodeFromMCC			100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:835:		getDeviceIDFromUserExt			100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:880:		getReqNetWorkInfo			85.7%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:916:		getReqRegsInfo				100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:925:		getReqGeoInfo				100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:937:		getReqConsentInfo			80.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:947:		unmarshalExtImpHuaweiAds		88.2%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:974:		checkRespStatusCode			77.8%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:997:		checkHuaweiAdsResponseRetcode		71.4%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1015:	convertHuaweiAdsRespToBidderResp	90.2%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1084:	getNurl					66.7%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1097:	handleHuaweiAdsContent			87.5%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1117:	extractAdmBanner			60.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1139:	extractAdmNative			87.2%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1259:	getDecodeValue				80.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1270:	jsonEncode				100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1279:	extractAdmPicture			90.9%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1342:	getClickUrl				100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1359:	getDspImpClickTrackings			100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1373:	getStrings				87.5%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1388:	getDuration				100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1395:	extractAdmVideo				85.4%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1558:	getVastImpClickErrorTrackingUrls	100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1578:	getVastEventTrackingUrls		100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1598:	computeHmacSha256			100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1605:	getDigestAuthorization			100.0%
total:										(statements)				90.4%

Copy link

Code coverage summary

Note:

  • Prebid team doesn't anticipate tests covering code paths that might result in marshal and unmarshal errors
  • Coverage summary encompasses all commits leading up to the latest one, bb8641a

huaweiads

Refer here for heat map coverage report

github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:267:		MakeRequests				93.3%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:325:		getFinalEndPoint			85.7%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:355:		MakeBids				91.7%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:382:		Builder					100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:395:		getExtraInfo				94.1%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:430:		getHeaders				88.9%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:446:		getReqJson				90.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:461:		getReqAdslot30				100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:483:		checkAndExtractOpenrtbFormat		100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:511:		getBannerFormat				100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:527:		getNativeFormat				97.4%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:593:		filterPopularSizes			100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:615:		getVideoFormat				100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:628:		convertAdtypeStringToInteger		60.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:652:		getReqAppInfo				93.8%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:686:		getFinalPkgName				93.8%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:721:		getClientTime				75.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:741:		getReqDeviceInfo			96.6%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:784:		getCountryCode				100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:797:		convertCountryCode			75.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:818:		getCountryCodeFromMCC			100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:835:		getDeviceIDFromUserExt			100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:880:		getReqNetWorkInfo			85.7%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:916:		getReqRegsInfo				100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:925:		getReqGeoInfo				100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:937:		getReqConsentInfo			80.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:947:		unmarshalExtImpHuaweiAds		88.2%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:974:		checkRespStatusCode			77.8%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:997:		checkHuaweiAdsResponseRetcode		71.4%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1015:	convertHuaweiAdsRespToBidderResp	90.2%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1084:	getNurl					66.7%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1097:	handleHuaweiAdsContent			87.5%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1117:	extractAdmBanner			60.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1139:	extractAdmNative			87.2%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1259:	getDecodeValue				80.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1270:	jsonEncode				100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1279:	extractAdmPicture			90.9%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1342:	getClickUrl				100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1359:	getDspImpClickTrackings			100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1373:	getStrings				87.5%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1388:	getDuration				100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1395:	extractAdmVideo				85.4%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1558:	getVastImpClickErrorTrackingUrls	100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1578:	getVastEventTrackingUrls		100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1598:	computeHmacSha256			100.0%
github.com/prebid/prebid-server/v2/adapters/huaweiads/huaweiads.go:1605:	getDigestAuthorization			100.0%
total:										(statements)				90.4%

@ahmetfaruk59
Copy link
Contributor Author

Hi @bretg , hope you are ok. I thought this PR would automatically merged for version 2.0.2. It is a bit urgent. Can we get this merged? Thanks a lot.

@onkarvhanumante onkarvhanumante merged commit 515b937 into prebid:master Nov 20, 2023
5 checks passed
@onkarvhanumante
Copy link
Contributor

Hi @bretg , hope you are ok. I thought this PR would automatically merged for version 2.0.2. It is a bit urgent. Can we get this merged? Thanks a lot.

Thanks for keeping patience with us. PR merged

@ahmetfaruk59
Copy link
Contributor Author

Hi @bretg , hope you are ok. I thought this PR would automatically merged for version 2.0.2. It is a bit urgent. Can we get this merged? Thanks a lot.

Thanks for keeping patience with us. PR merged

Thanks a lot, i appreciated.

svamiftah pushed a commit to sovrn/prebid-server that referenced this pull request Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants