cordova-plugin-facebookads icon indicating copy to clipboard operation
cordova-plugin-facebookads copied to clipboard

How to add multiple Native ads

Open Divyaadz opened this issue 8 years ago • 3 comments

Single Native ad is working, Thanks for nice plugin. I like to know how to create a multiple native ads in facebookads.

Divyaadz avatar May 21 '16 16:05 Divyaadz

Use separate ad ids

antonfire avatar Jun 21 '16 14:06 antonfire

Hi,

Do you use one ad instance (one clickarea) and exchange the ad id or do you use multiple ad instances such that you have to manage multiple click areas (for each ad one area)?

PeterVerm avatar Oct 31 '17 20:10 PeterVerm

I use a custom directive to generate multiple ad elements in a feed format, the click area for each one is set to follow the feed scroll using a jquery 'onScroll' event to check if the element is in view then provide the x,y source px location and width, height of the desired click area, when it moves out of view these params are set to 0,0,0,0. I'm assuming that the click area for each is unique in that multiple frames are created in Obj-C and so you could have multiple click areas on screen at the same time. My use case does not need this however so I have not tested this supposition.

antonfire avatar Nov 03 '17 08:11 antonfire