-
Notifications
You must be signed in to change notification settings - Fork 750
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
Huawei Ads: fix cta text empty and fill rate issue #3070
Conversation
Code coverage summaryNote:
huaweiadsRefer here for heat map coverage report
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMPORTANT NOTICE:
This adapter is scheduled to be removed from Prebid Server for not having a working contact email address. For us to review this PR, please include an updated group email address in either this PR or via a separate issue.
Please see #2626 for further details.
Thanks, the contact email address has been changed. @SyntaxNode |
This is fixed in #3071 |
I got it, this was the requested change for this pr. Can you review again |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious, how does removing the width and height fix the fill rate issue?
adapters/huaweiads/huaweiads.go
Outdated
var width int64 | ||
var height int64 | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the commented out code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed.
adapters/huaweiads/huaweiads.go
Outdated
width = asset.Img.W | ||
height = asset.Img.H | ||
} else if asset.Img.WMin != 0 && asset.Img.HMin != 0 { | ||
width = asset.Img.WMin | ||
height = asset.Img.HMin | ||
} | ||
}*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here. Please remove the commented out code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed.
adapters/huaweiads/huaweiads.go
Outdated
adslot30.W = width | ||
adslot30.H = height | ||
adslot30.H = height */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.. and here, please.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks. removed.
@@ -1169,6 +1173,9 @@ func (a *adapter) extractAdmNative(adType int32, content *content, bidType openr | |||
dataObject.Label = "desc" | |||
dataObject.Value = getDecodeValue(content.MetaData.Description) | |||
} | |||
if asset.Data.Type == native1.DataAssetTypeCTAText { | |||
dataObject.Value = getDecodeValue(content.MetaData.Cta) | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this change covered by a test case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this insctance was missing, it is covered by test case
Code coverage summaryNote:
huaweiadsRefer here for heat map coverage report
|
@@ -166,6 +164,7 @@ | |||
"appId": "101219405", | |||
"appPromotionChannel": "401721412", | |||
"clickUrl": "https://ads.huawei.com/usermgtportal/home/index.html#/", | |||
"cta": "%e5%ae%89%e8%a3%85", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As per code change, cta
value should be assigned as value to label . But
label` is empty
Should update tests so that cta
value is reflected in adm
"adm": "{\"ver\":\"1.2\",\"assets\":[{\"id\":100,\"title\":{\"text\":\"/test/\",\"len\":6}},{\"id\":103,\"img\":{\"type\":3,\"url\":\"http://image.jpg\",\"w\":720,\"h\":1280}},{\"id\":105,\"data\":{\"label\":\"desc\",\"value\":\"\"}}],\"link\":{\"url\":\"https://ads.huawei.com/usermgtportal/home/index.html#/\",\"clicktrackers\":[\"http://test/click\"]},\"eventtrackers\":[{\"event\":1,\"method\":1,\"url\":\"http://test/imp\"}]}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the comment. i changed and tested it again. Can you check it please? @onkarvhanumante
Code coverage summaryNote:
huaweiadsRefer here for heat map coverage report
|
Hi @SyntaxNode. May you review please, thanks. |
Dismissing it since it was supposed to be blocked on huawei to update their contact information. This has been fixed.
fix cta text empty and low fill rate issue