Okay,
It looks like I managed to create a sandbox by using this map:
authProps.put("email", "EMAIL");
> authProps.put("password", "PASSWORD");
> authProps.put("useragent", "bla");
> authProps.put("developerToken", "EMAIL++USD");
> authProps.put("useSandbox", "true");
as mentioned here:
https://groups.google.com/forum/?fromgroups#!topic/adwords-api/MRO2hJBSuRY
I am trying to get the client id for the supposedly newly created 5
accounts:
client_1+EMAIL to client_5+EMAIL
I used the GetAccountHierarchy.java example, again using the above
authentication properties,
and I am getting XML that does list 5 client accounts, however all their
id's are 0, and the id's the XML lists in its links tag are also all 0's.
Any thoughts about what I'm doing wrong?
On Sunday, March 4, 2012 7:52:27 PM UTC+2, bloodcell wrote:
>
> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en