Using next_cursor on Campaigns

Nov 24, 2015 at 7:40 PM
Hi,

I am calling the below twitter Ads API to get all campaigns in my ads account:
https://ads-api.twitter.com/0/accounts/Acount_id/campaigns/

I am using TwitterAccessor.ExecuteJsonGETQuery to make the call.
(I can change it to TwitterAccessor.ExecuteGETQuery<MyDTO>)

It returns json as shown below (end of post)

It returns 200 / 4500 results and also a next_Cursor field in the end.
How do I use the next_cursor to get all the results.
I went through https://github.com/linvi/tweetinvi/wiki/Custom-Queries#cursor-query
but wasn't able to understand clearly.

Sample Json:
{
"request": { "params": { "account_id": "XXXXXXXXXXX" } },
"data": [
{
  "name": "XXXXXXXXXXX",
  "start_time": "XXXXXXXXXXX",
  "reasons_not_servable": [ "XXXXXXXXXXX", "XXXXXXXXXXX" ],
  "servable": false,
  "daily_budget_amount_local_micro": XXXXXXXXXXX,
  "end_time": "XXXXXXXXXXX",
  "funding_instrument_id": "XXXXXXXXXXX",
  "standard_delivery": true,
  "total_budget_amount_local_micro": XXXXXXXXXXX,
  "id": "XXXXXXXXXXX",
  "paused": false,
  "account_id": "XXXXXXXXXXX",
  "currency": "XXXXXXXXXXX",
  "created_at": "XXXXXXXXXXX",
  "updated_at": "XXXXXXXXXXX",
  "deleted": false
},
{
  "name": "XXXXXXXXXXX",
  "start_time": "XXXXXXXXXXX",
  "reasons_not_servable": [ "XXXXXXXXXXX", "XXXXXXXXXXX" ],
  "servable": false,
  "daily_budget_amount_local_micro": XXXXXXXXXXX,
  "end_time": "XXXXXXXXXXX",
  "funding_instrument_id": "XXXXXXXXXXX",
  "standard_delivery": true,
  "total_budget_amount_local_micro": XXXXXXXXXXX,
  "id": "XXXXXXXXXXX",
  "paused": false,
  "account_id": "XXXXXXXXXXX",
  "currency": "XXXXXXXXXXX",
  "created_at": "XXXXXXXXXXX",
  "updated_at": "XXXXXXXXXXX",
  "deleted": false
}
.
.
.
],
"data_type": "XXXXXXXXXXX",
"total_count": XXXXXXXXXXX,
"next_cursor": "ABCD1"
}