Open vietnux opened 6 years ago
I have the same problem for native ads. I think the problem is "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 ? @floatinghotpot
@halkoy you need to send the coordinates for the button when calling FacebookAds.setNativeAdClickArea (and not for all ad area as in the example code)
@tiagoabelha hii, thnx for you reply. I can not find that how can I find the button coordinates because I can not get the button id Do you have an example for that?
I have a similar problem, but they tell me that I have a violation of Audience Network Policy 4.2, I only use interstitial ads, I couldn't find the problem.
My problem is function updateClickArea of tool very bag. I fixed its and running ok
`function updateClickArea(){ if (nativeId != null) { // change the click area var offset = $("#nativead").offset(); var y = offset.top - $(window).scrollTop(); var x = offset.left - $(window).scrollLeft(); var w = $("#nativead").width(); var h = $("#nativead").height();
//Adjust based on stuff like headers and footers
var yNEW = 0;
var hNEW = 0;
var topHeaderHeight = $('.app-bar').height(); //height menu top or other
var windowHeight = $(window).height();
var footerHeight = $('#menu').height(); //height menu bottom or other
if( y<=topHeaderHeight ) {
yNEW = topHeaderHeight;
hNEW = h - ( topHeaderHeight - y );
} else if( offset.top+h > ( windowHeight - footerHeight ) ) {
yNEW = y;
hNEW = (windowHeight - footerHeight) - offset.top;
} else {
yNEW = y;
hNEW = h;
}
// hNEW = 100;
if(FacebookAds) FacebookAds.setNativeAdClickArea(nativeId, x, yNEW, w, hNEW);
// if(FacebookAds) FacebookAds.setNativeAdClickArea(nativeId, x, y, w, h);
}
}`
I also received the same problem. But the issue is, my project is in unity and there's no code to specifically assign click area for interstitial ads. Do you have any other solution for this?
I also received the same problem. But the issue is, my project is in unity and there's no code to specifically assign click area for interstitial ads. Do you have any other solution for this?
I fixed its also comment and it run very good
How do you correct the completion? I have the same problem.
I have a similar problem, but they tell me that I have a violation of Audience Network Policy 4.2, I only use interstitial ads, I couldn't find the problem.
How did you solve it?
2.1 Accidental Clicks: Your app was found to be in violation of Audience Network Policy 2.1 which states: "Don’t place ads where people are likely to accidentally click (ex: placing ads where people randomly click or place their fingers, such as near buttons)."
You can find tips, examples and illustrations to help fix this violation on our developer front end (https://developers.facebook.com/docs/audience-network/policy/example-2-1) and the Audience Network Help Center (https://www.facebook.com/help/audiencenetwork/458763194322213). Further tips to consider in order to avoid unintentional clicks include:
As a result of these violations we have disabled ad serving to your Placement.
Compliance with the Facebook Audience Network Policy is required to ensure a quality and brand-safe environment for Facebook’s advertisers. Additional information on ad placement policies can be found in the Policies and the Implementation Requirements for Audience Network Ads (https://developers.facebook.com/docs/audience-network/guidelines/native-ads).