Does anyone have any working sample code they can share in Java using the new SDK? Not getting anywhere at the minute.
Here’s what I want to do
//Get user’s oauth_token (I’ve got this working)
//Get users’s oauth_verifier (I’ve got this working)
//Get a list of campaigns for this user using the oauth_token and oauth_verifier information or their advertiser account ID or however you get their data
//List these campaigns for the use to see
It’s not clear how/where the different bits of information are used for us as a platform VS the user’s data. Specifically where/when is all of the following used;
- .setOAuthConsumerSecret("—") (API Account)
- .setOAuthConsumerKey("—") (API Account)
- .setOAuthAccessToken("—") (API Account)
- .setOAuthAccessTokenSecret("—") (API Account)
- oauth_token (User’s Ad Account)
- oauth_verifier (User’s Ad Account)
Once I get this basic structure working then hopefully I figure the rest out.
I’ve no idea why this discussion was closed. The solution provided by @JBabichJapan isn’t a full solution.
We’re looking to integrate the Twitter Ads API into a platform - so not a single account. Thus hard coding the account ID into the code isn’t going to work.
How do we get this information programatically? Other than our API Account data, everything else needs to be fully API driven for this to work.
Does anyone have any sample code for that?