So I'm calling the activities endpoint with a paging token that has a date of days ago, I also pass in a very little used activity (clicksharedlink). Instead of returning no results and being the last page, it returns no results and keeps giving me moreresults=true until i've paged through to sometime around the current day i think.
Is this a bug or expected behavior? Seems like it's paging on filtered out activity types.
Is there a way to translate the nextpagingtoken back into a datetime?
That's expected behavior.
(And the paging token shouldn't be expected to map to a specific datetime.)
Edit: how do I determine the first occurrence of a specific activity type? Do I just have to page through a few hundred times starting at my earliest activity date until I get a hit?
Alas, yes. Unless it's a very rare activity type and you could, for example, call a webhook when it's first fired and use that as your mark.