-
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
HuaweiAds: Increase fill rate for native ads #3279
Conversation
Code coverage summaryNote:
huaweiadsRefer here for heat map coverage report
|
@bretg @onkarvhanumante Hi, hope you doing ok. Could you check here please? |
@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. |
Code coverage summaryNote:
huaweiadsRefer here for heat map coverage report
|
@ahmetfaruk59 Thank you for keeping patience with us. Reviewer are assigned to review PR |
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"]}) | ||
} | ||
} |
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.
should add json framework test to cover above code path
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.
Hi @onkarvhanumante , thanks for all feedbacks and review 🙌 It's updated.
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 @ahmetfaruk59
could you link jsontest where numFormat
count 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
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 @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 🙌
Code coverage summaryNote:
huaweiadsRefer here for heat map coverage report
|
Code coverage summaryNote:
huaweiadsRefer here for heat map coverage report
|
Code coverage summaryNote:
huaweiadsRefer here for heat map coverage report
|
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. |
Depending on the size of the requested ad, filter popular sizes and bind it to the request as multiple format.