/** * Given a particular String key, return the associated Object value from the ad's extras map. See * {@link BaseForwardingNativeAd#getExtras()} for more information. */ @Nullable @Override public final Object getExtra(@NonNull final String key) { if (!NoThrow.checkNotNull(key, "getExtra key is not allowed to be null")) { return null; } return mExtras.get(key); }
final void addImpressionTracker(@NonNull final String url) { if (!NoThrow.checkNotNull(url, "impressionTracker url is not allowed to be null")) { return; } mImpressionTrackers.add(url); }
final void addExtra(@NonNull final String key, @Nullable final Object value) { if (!NoThrow.checkNotNull(key, "addExtra key is not allowed to be null")) { return; } mExtras.put(key, value); }