sprinklr-inc/twitter4j-ads

Missing country parameter when creating an asyncjob

Closed this issue · 4 comments

Hi,

I'm trying to use the API SDK to grab information from my company campaigns on twitter, but I've noticed that you guys don't have a COUNTRY parameter like on the POST request for creating async jobs (https://dev.twitter.com/ads/reference/1/post/stats/jobs/accounts/%3Aaccount_id). I've just noticed that when I tried to segment the data by region. Is there any other way to get the country using the SDK ?

Cheers,

Fernando

Hi Guys,

Just to elaborate a little a more my question, I've got to retrieve the targetinglocations for a campaign, even tough we have some campaigns with more than one country as targeting location / country. The stats I'm getting using the createAsyncJob is not bringing the country information, it's bringing a total by campaign only. According to the documentation calling directly the post we have a COUNTRY parameter, that would allow the async job to bring the country break. Currently there is no COUNTRY parameter on the method. Is there any other way to bring the stats information with that break using the createAsyncJob method?

Cheers,

Fernando

The location breakdown should be done with segmentation_type=LOCATION

You can find the constant here:
String SEGMENTATION_TYPE_LOCATIONS = "LOCATIONS";

This is passed as an Optional to the function:

Optional twitterSegmentationType

Hope this helps!

Thanks,

John

On Fri, Aug 26, 2016 at 10:10 PM, fernhtls notifications@github.com wrote:

Hi Guys,

Just to elaborate a little a more my question, I've got to retrieve the
targetinglocations for a campaign, even tough we have some campaigns with
more than one country as targeting location / country. The stats I'm
getting using the createAsyncJob is not bringing the country
information, it's bringing a total by campaign only. According to the
documentation calling directly the post we have a COUNTRY parameter, that
would allow the async job to bring the country break. Currently there is no
COUNTRY parameter on the method. Is there any other way to bring the stats
information with that break using the createAsyncJob method?

Cheers,

Fernando


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#16 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ARc2F1IuiLrgkwzby1lG-VUroFP-1JVqks5qjuXQgaJpZM4JtBin
.

John Babich | バビッチ・ジョン | Partner Engineer, Ads Platform |
jbabich@twitter.com | @jbabichjapan https://twitter.com/JBabichJapan

Hi John,

I will have a try and lets see if it works.

Thanks a lot !

Fernando

Hi John,

That worked pretty well! Thanks for the support!

Cheers,

Fernando