Hi,

you can use Sandbox Account Viewer:

http://code.google.com/p/google-api-adwords-java/wiki/SandboxAccountViewer

There is no MCC interface for sandbox

Tamás

On aug. 13, 08:24, APIMCC yihaodian <yihaodianapi...@gmail.com> wrote:
> Hi all,
>
> I use the example API to add Campaign. no exceptions are thrown. I
> also can see the output information in the Eclipse console.
>
> As I know, I can see the campaigns under one client, But how to see
> the new capaigns added by  me via web MCC interface?
> I have a client name is "Test". I can see campaigns under it account
> by web page. What is the relationship between "Test" and
> "client_1+yihao....@gmail.com"?
>
> public class AddCampaign {
>         public static void main(String[] args) {
>                 try {
>                         // Log SOAP XML request and response.
>                         AdWordsServiceLogger.log();
>
>                         // Get AdWordsUser from "~/adwords.properties".
>                         AdWordsUser user = new AdWordsUser();
>
>                         // Get the CampaignService.
>                         CampaignServiceInterface campaignService = user
>                                         
> .getService(AdWordsService.V201003.CAMPAIGN_SERVICE);
>
>                         // Create campaign.
>                         Campaign campaign = new Campaign();
>                         campaign.setName("Yihaodian"
>                                         + System.currentTimeMillis());
>                         campaign.setStatus(CampaignStatus.ACTIVE);
>                         campaign.setBiddingStrategy(new ManualCPC());
>
>                         // Create budget.
>                         Budget budget = new Budget();
>                         budget.setPeriod(BudgetBudgetPeriod.DAILY);
>                         budget.setAmount(new Money(null, 50000000L));
>                         
> budget.setDeliveryMethod(BudgetBudgetDeliveryMethod.STANDARD);
>                         campaign.setBudget(budget);
>
>                         // Create operations.
>                         CampaignOperation operation = new CampaignOperation();
>                         operation.setOperand(campaign);
>                         operation.setOperator(Operator.ADD);
>
>                         CampaignOperation[] operations = new 
> CampaignOperation[]
> { operation };
>
>                         // Add campaign.
>                         CampaignReturnValue result = 
> campaignService.mutate(operations);
>
>                         // Display campaigns.
>                         if (result != null && result.getValue() != null) {
>                                 for (Campaign campaignResult : 
> result.getValue()) {
>                                         System.out.println("Campaign with 
> name \""
>                                                         + 
> campaignResult.getName() + "\" and id \""
>                                                         + 
> campaignResult.getId() + "\" was added.");
>                                 }
>                         } else {
>                                 System.out.println("No campaigns were 
> added.");
>                         }
>                 } catch (Exception e) {
>                         e.printStackTrace();
>                 }
>         }}
>
> --------------
> email=yihaodian...@gmail.com
> password=Password1
> clientid=client_1+yihaodian...@gmail.com
> useragent=\u4e0a\u6d77\u76ca\u5b9e\u591a
> \u7535\u5b50\u5546\u52a1\u6709\u9650\u516c\u53f8
> developerToken=.....
> useSandbox=true

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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