floatinghotpot / cordova-plugin-facebookads

Cordova/PhoneGap plugin for Facebook Audience Network Ads
64 stars 71 forks source link

Facebook native ad problem #103

Open halkoy opened 5 years ago

halkoy commented 5 years ago

Facebook blocked my native ad because they said that at my native ad format the white spaces are clickable "Not making "whitespace" clickable for native ads" Facebook wants for native ads that just CTA button must be clickable. But this plugin makes all the native ad area clickable.

How can we disable white spaces in the native ad not clickable ? Did anyone got code for this ?

floatinghotpot commented 5 years ago

As everything inside the web view is not NATIVE, the plugin is emulating a native ad.

Read the docs, you will see an API: setNativeAdClickArea(adId,x,y,w,h);

Find the area of the button, then call this API to see the click area.