We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
12.4.2
Android
When I load a Native Ad via the custom adapter. The Ad is malformed, it does not have the icon and the click through action does not work.
The Native ad should function normally i.e have the icon and should direct to the Ad CTA when clicked.
Try to Load a Native Ad via Max Custom Adapter.
Below is the code used to create a Max Native Ad from a Custom Native Ad.
NativeAd.Image icon = nativeAd.getIcon(); MaxNativeAd.MaxNativeAdImage iconImage = null; if ( icon != null ) { if ( icon.getDrawable() != null ) { iconImage = new MaxNativeAd.MaxNativeAdImage( icon.getDrawable() ); } else { iconImage = new MaxNativeAd.MaxNativeAdImage( icon.getUri() ); } } final MaxNativeAd maxNativeAd = new MaxNativeAd.Builder() .setAdFormat( MaxAdFormat.NATIVE ) .setTitle( nativeAd.getHeadline() ) .setBody( nativeAd.getBody() ) .setCallToAction( nativeAd.getCallToAction() ) .setIcon( iconImage ) .setMediaView( mediaView ) .build();
The text was updated successfully, but these errors were encountered:
@SlokeT Are you able to reproduce this in our Demo App - if yes, could you share a sample project where this is reproducible?
Sorry, something went wrong.
Lorenzo45
No branches or pull requests
MAX SDK Version
12.4.2
Device/Platform Info
Android
Current Behavior
When I load a Native Ad via the custom adapter. The Ad is malformed, it does not have the icon and the click through action does not work.
Expected Behavior
The Native ad should function normally i.e have the icon and should direct to the Ad CTA when clicked.
How to Reproduce
Try to Load a Native Ad via Max Custom Adapter.
Additional Info
Below is the code used to create a Max Native Ad from a Custom Native Ad.
The text was updated successfully, but these errors were encountered: