Re: [outbrain-amplifyapi] Issue with performance reporting for sections by campaign.

64 views
Skip to first unread message
Message has been deleted

Bryn Whitcomb

unread,
May 27, 2025, 4:26:01 PMMay 27
to Saeem Ali, Outbrain-AmplifyApi
Hey Saeem, 

Thanks for reaching out!

Does this happen no matter the parameters you define? (e.g. If you try a different campaign and/or timeframe?) If so, you may be limiting your response somewhere.

If this is not the case, could you please share an example campaign ID so I can try to replicate the issue on my end?

Best, 
Bryn

On Tue, May 27, 2025 at 11:43 AM 'Saeem Ali' via Outbrain-AmplifyApi <outbrain-...@googlegroups.com> wrote:
Hi, I'm trying to pull data on each section in a campaign with performance, but it only returns the top 10 spenders. Is it possible to pull all sections, or at least top 50 or 100 spenders?

def getAllOutbrainSectionWithMetrics(marketerId, campaignId, fromDate, toDate):
    response = requests.get("https://api.outbrain.com/amplify/v0.1/reports/marketers/"+marketerId+"/campaigns/sections?from="+fromDate+"&to="+toDate+"&campaignId="+campaignId, headers = outbrainToken)
    return response.json()

--
You received this message because you are subscribed to the Google Groups "Outbrain-AmplifyApi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to outbrain-amplif...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/outbrain-amplifyapi/814c8f9e-8dab-48b5-910f-091bd1039ecen%40googlegroups.com.


--

Bryn Whitcomb

Senior Technical Solutions Engineer

e | bryn.w...@teads.com


Demand Operations (DMND_OPS)

The information in this email is confidential and intended only for the addressee(s) named above. If you are not the intended recipient, any disclosure, copying, distribution, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. Teads does not warrant that any attachment(s) are free from viruses or other defects and accepts no liability for any losses resulting from infected email transmission. Please note that any views expressed in this email may be those of the originator and do not necessarily reflect those of the organization. For more information or feedback, contact us here.

Bryn Whitcomb

unread,
May 29, 2025, 10:37:12 AMMay 29
to Saeem Ali, Outbrain-AmplifyApi
Hey Saeem, 

I was not able to reproduce your issue. When I send a GET request to the following endpoint I get over 800 sections in the response:


Could you share the from and to dates you're using so I can be sure I'm testing the exact same call as you?

Best, 
Bryn

On Thu, May 29, 2025 at 8:48 AM Saeem Ali <saee...@malaberg.com> wrote:
I tried this with all my active campaigns and gave the same result. The only parameters I used are the ones you see in my previous message. Here is the id of one of my campaigns: 00036156d05721a5d79642393479dbae9e

Thank you.

Bryn Whitcomb

unread,
May 30, 2025, 11:50:57 AMMay 30
to Saeem Ali, Outbrain-AmplifyApi
Hey Saeem, 

I found that we have a default limit of 10 for this endpoint, so in order to retrieve data for more than 10 sections simply add a limit parameter. For example: add "limit=500" to pull the top 500 sections. 

Let me know if you face any additional issues after trying this!

Best, 
Bryn

On Fri, May 30, 2025 at 10:04 AM Bryn Whitcomb <bryn.w...@teads.com> wrote:
Hey Saeem, 

Thanks for confirming! I was also able to reproduce so I'm checking this internally. I'll update you as soon as I have more information.

Best, 
Bryn

On Fri, May 30, 2025 at 6:48 AM Saeem Ali <saee...@malaberg.com> wrote:
So I've just had another look at it. I can see that the "totalResults" is showing 1096 items, but I can only see the details for 10.

On Thu, 29 May 2025 at 15:39, Saeem Ali <saee...@malaberg.com> wrote:
I have a code to automatically get the dates i need. It would have been from 21/05 to 27/05 when I lasted tried it. Not in office today but I'll try again tomorrow
Reply all
Reply to author
Forward
0 new messages