Hello Deepak,

 First off, there's no need to set the clientCustomerId header in the
Sandbox (or in Production, if you're already setting the clientEmail
header).

 But we need more details to determine what's causing your error. The
SOAP fault associated with a "One or more input elements failed
validation" error should always include an extra detail element which
explain exactly which parameters you're passing in are causing the
problem.

 The most helpful way of debugging this would be if you could get a
log of the request and response SOAP messages that your application is
sending so that we can see exactly what parameters you're passing in,
and exactly what the full SOAP fault is that you're getting.

Cheers,
-Jeff Posnick, AdWords API Team


On Dec 2, 7:27 am, Deepak <[EMAIL PROTECTED]> wrote:
> Hi,
> I am trying to run the sample code in sandbox environment.
> It's showing error "One or more input elements failed validation" at
> line..
>
> newCampaign = campaignService.addCampaign(newCampaign);
>
> The values passed for the account are...
>
> headerst.Add("email", "[EMAIL PROTECTED]");
> headerst.Add("clientEmail", "[EMAIL PROTECTED]");
> headerst.Add("clientCustomerId", "12345");
> headerst.Add("password", "irunpass**");
> //headerst.Add("applicationToken", "171-997-0172");
> headerst.Add("developerToken", "[EMAIL PROTECTED]");
> headerst.Add("useragent", "Irun Demo Application1");
>
> I commented application token because it is not required in sandbox
> testing.
> AdWordsUser user = new AdWordsUser();
> user.useSandbox();  // use sandbox
>
> Please advice...
> Thanks,
> Deepak.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to