Native ads: How to access URL for open browser with CustomTemplateAd's
up vote
1
down vote
favorite
I am implementing native custom template ad in my android app and in my code I am fetching and rendering custom template ad in my view. I want to open the a Webview when user clicks on the ad with the click through URL that I set in my dfp portal but I don't see any method or documentation on how to get hold of that URL.
from nativeCustomTemplateAd.getAvailableAssetNames(); I get only three key non of them are url key. how I get url which is in "f" as shown in screenshot.


How to get ad URL?
add a comment |
up vote
1
down vote
favorite
I am implementing native custom template ad in my android app and in my code I am fetching and rendering custom template ad in my view. I want to open the a Webview when user clicks on the ad with the click through URL that I set in my dfp portal but I don't see any method or documentation on how to get hold of that URL.
from nativeCustomTemplateAd.getAvailableAssetNames(); I get only three key non of them are url key. how I get url which is in "f" as shown in screenshot.


How to get ad URL?
I found solution : The forCustomTemplateAd method accepts an OnCustomClickListener. If you pass a listener object in, the SDK instead invokes its onCustomClick method and takes no further action. If you pass a null value as the listener, however, the SDK falls back to the deeplink and/or destination URLs registered with the ad. So I found my click url action with pass null parameter instead of OnCustomClickListener
– Gautam Kushwaha
Dec 28 '17 at 5:43
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I am implementing native custom template ad in my android app and in my code I am fetching and rendering custom template ad in my view. I want to open the a Webview when user clicks on the ad with the click through URL that I set in my dfp portal but I don't see any method or documentation on how to get hold of that URL.
from nativeCustomTemplateAd.getAvailableAssetNames(); I get only three key non of them are url key. how I get url which is in "f" as shown in screenshot.


How to get ad URL?
I am implementing native custom template ad in my android app and in my code I am fetching and rendering custom template ad in my view. I want to open the a Webview when user clicks on the ad with the click through URL that I set in my dfp portal but I don't see any method or documentation on how to get hold of that URL.
from nativeCustomTemplateAd.getAvailableAssetNames(); I get only three key non of them are url key. how I get url which is in "f" as shown in screenshot.


How to get ad URL?
edited Dec 19 '17 at 14:17
Dharmishtha
861418
861418
asked Dec 19 '17 at 13:42
Gautam Kushwaha
17311
17311
I found solution : The forCustomTemplateAd method accepts an OnCustomClickListener. If you pass a listener object in, the SDK instead invokes its onCustomClick method and takes no further action. If you pass a null value as the listener, however, the SDK falls back to the deeplink and/or destination URLs registered with the ad. So I found my click url action with pass null parameter instead of OnCustomClickListener
– Gautam Kushwaha
Dec 28 '17 at 5:43
add a comment |
I found solution : The forCustomTemplateAd method accepts an OnCustomClickListener. If you pass a listener object in, the SDK instead invokes its onCustomClick method and takes no further action. If you pass a null value as the listener, however, the SDK falls back to the deeplink and/or destination URLs registered with the ad. So I found my click url action with pass null parameter instead of OnCustomClickListener
– Gautam Kushwaha
Dec 28 '17 at 5:43
I found solution : The forCustomTemplateAd method accepts an OnCustomClickListener. If you pass a listener object in, the SDK instead invokes its onCustomClick method and takes no further action. If you pass a null value as the listener, however, the SDK falls back to the deeplink and/or destination URLs registered with the ad. So I found my click url action with pass null parameter instead of OnCustomClickListener
– Gautam Kushwaha
Dec 28 '17 at 5:43
I found solution : The forCustomTemplateAd method accepts an OnCustomClickListener. If you pass a listener object in, the SDK instead invokes its onCustomClick method and takes no further action. If you pass a null value as the listener, however, the SDK falls back to the deeplink and/or destination URLs registered with the ad. So I found my click url action with pass null parameter instead of OnCustomClickListener
– Gautam Kushwaha
Dec 28 '17 at 5:43
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f47888331%2fnative-ads-how-to-access-url-for-open-browser-with-customtemplateads%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I found solution : The forCustomTemplateAd method accepts an OnCustomClickListener. If you pass a listener object in, the SDK instead invokes its onCustomClick method and takes no further action. If you pass a null value as the listener, however, the SDK falls back to the deeplink and/or destination URLs registered with the ad. So I found my click url action with pass null parameter instead of OnCustomClickListener
– Gautam Kushwaha
Dec 28 '17 at 5:43