Unexpected result with 'fields' parameter

Posted in General by Alex Beskosty Thu Jul 14 2016 13:26:37 GMT+0000 (Coordinated Universal Time)·3·Viewed 1,466 times

Hi, I make following request to campaign endpoin: https://docs.api.beeswax.com/rest/campaign?advertiser_id=4&fields[]=campaign_id&fields[]=campaign_name It should filter campaigns with advertiser_id=4 and return objects only with specified fields. Actual result is full list of campaigns and error message "WARNING: Field advertiser_id is not present in this object".
July 14, 2016

Add advertiser_id to the fields list. Unfortunately, you cannot use a field like advertiser_id to query if it is not also in the fields to be returned.

July 14, 2016

Is it so for all searchable fields?

July 14, 2016

Yes, the field needs to be in the results in order to be filtered.

Markdown is allowed