why doesn't this work:

    public static Map<String, Object> authProps = new HashMap<String, 
> Object>();
>     static {
>         authProps.put("email", "EMAIL");
>         authProps.put("password", "PASSWORD");
>         authProps.put("useragent", "bla");
>         authProps.put("developerToken", "EMAIL++USD");
>     }
>     
>     public static void main(String[] args) {
>         
>         try {
>             // Log SOAP XML request and response.
>             AdWordsServiceLogger.log();
>             
>             AdWordsUser user = new AdWordsUser(authProps);
>             
>             // Get the CampaignService.
>             CampaignServiceInterface campaignService =
>                 user.getService(AdWordsService.V201109.CAMPAIGN_SERVICE);
>             
>             // Create selector.
>             Selector selector = new Selector();
>             selector.setFields(new String[] {"Id", "Name"});
>             selector.setOrdering(new OrderBy[] {new OrderBy("Name", 
> SortOrder.ASCENDING)});
>             
>             // Get all campaigns.
>             CampaignPage page = campaignService.get(selector);
> ...


Where EMAIL and PASSWORD are replaced with real ones, of course.
What authentication am I supposed to use in order to create the SandBox ?
I've also tried it with the added property:

authProps.put("developerToken", "EMAIL++USD");

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

Reply via email to