Skip to content
New issue

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

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

Already on GitHub? # to your account

Public click URL for native ad #819

Merged
merged 1 commit into from
Jan 10, 2025
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
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,10 @@ public ArrayList<NativeData> getDataList() {
return dataList;
}

public String getClickUrl() {
return clickUrl;
}

private void setClickUrl(String clickUrl) {
this.clickUrl = clickUrl;
}
Expand Down Expand Up @@ -437,6 +441,7 @@ public String getImpEvent() {
return impEvent;
}


private void notifyImpressionEvent() {
if (impressionIsNotNotified) {
impressionIsNotNotified = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public void nativeAdParser() {
assertEquals("Click here to visit our site!", nativeAd.getCallToAction());
assertEquals("Learn all about this awesome story of someone using out OpenX SDK.", nativeAd.getDescription());
assertEquals("OpenX (Brand)", nativeAd.getSponsoredBy());
assertEquals("https://www.openx.com/", nativeAd.getClickUrl());

ArrayList<NativeData> dataList = nativeAd.getDataList();
assertEquals(5, dataList.size());
Expand Down