washingtonpost/ArcAds

Single request not working as expected

akira28 opened this issue · 0 comments

Expected Behavior

Single request to ask for every slot in the page

Actual Behavior

One request to GPT for each slot in the page

Steps to Reproduce the Behavior

I have an array of slots:

const ads = [];
slots.forEach(slot => {
    ads.push(
      {
        id: slot.id,
        slotName: slot.name,
        dimensions: slot.sizes,
      }
    );
  });
arcads.registerAdCollection(ads);

This generates 1 request for each slot in the slots collection.