Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single request not working as expected #49

Open
akira28 opened this issue Jan 30, 2020 · 0 comments
Open

Single request not working as expected #49

akira28 opened this issue Jan 30, 2020 · 0 comments

Comments

@akira28
Copy link

akira28 commented Jan 30, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant