"One or more input elements failed validation." API V12 creating Campaign
7 views
Skip to first unread message
Siddharth
unread,
Jun 12, 2008, 11:47:05 AM6/12/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to AdWords API Forum
Hi I am trying to create a SEM Campaign by passing the minimum
required parameters to addCampaign method.
Sometime the code doesnot throw error but doesn't create a campaign
Most of time it throws an error "One or more input elements failed
validation."
I would appreciate if you can review the following .NET code and help
me solving this problem. Please note that I am using appropriat
passwords and Token. I have not furnished the same with Code due to
security reasons.
Let me know if you need the same.
public void AddGoogleCampaign(decimal decDailyBudget)
{
CampaignService service=new CampaignService();
// Define SOAP headers.
service.emailValue = new email();
service.emailValue.Text = new String[]
{"chris.at.p...@gmail.com"};
service.passwordValue = new password();
service.passwordValue.Text = new String[] {"password"};
service.clientEmailValue = new clientEmail();
service.clientEmailValue.Text = new String[]
{"chris.at.p...@gmail.com"};
service.useragentValue = new useragent();
service.useragentValue.Text = new String[] {"Prospectics"};
service.developerTokenValue = new developerToken();
service.developerTokenValue.Text = new String[] {"Developer
Token"};
service.applicationTokenValue = new applicationToken();
service.applicationTokenValue.Text = new String[] {"Application
Token"};
Campaign InputCampaignList = new Campaign();
InputCampaignList.name="Test V12 New Campaign 1";
//Convert daily budget from $ value to micro-units of $
long lngdailyBudget = Convert.ToInt64(decDailyBudget) * 1000000;
//first Parameter to add campaign Method
InputCampaignList.budgetAmount = lngdailyBudget;
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to AdWords API Forum
Hello Siddharth,
I'd need to see a log of the SOAP request and response messages (with
any password/token information removed) in order to determine what's
going on here. The SOAP fault that led to the exception is very
generic.
Cheers,
-Jeff Posnick, AdWords API Team
On Jun 12, 11:47 am, Siddharth <siddharthmac...@gmail.com> wrote:
> Hi I am trying to create a SEM Campaign by passing the minimum
> required parameters to addCampaign method.
> Sometime the code doesnot throw error but doesn't create a campaign
> Most of time it throws an error "One or more input elements failed
> validation."
>
> I would appreciate if you can review the following .NET code and help
> me solving this problem. Please note that I am using appropriat
> passwords and Token. I have not furnished the same with Code due to
> security reasons.
>
> Let me know if you need the same.
>
> public void AddGoogleCampaign(decimal decDailyBudget)
> {
>
> CampaignService service=new CampaignService();
> // Define SOAP headers.
> service.emailValue = new email();
> service.emailValue.Text = new String[]
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to AdWords API Forum
Can you dump out and show us the rest of the XML that ws returned with
the error? It should spell out in detail the element that failed
validation, and the value of that element that the API choked on?
Siddharth
unread,
Jun 12, 2008, 2:01:06 PM6/12/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
Google update the V12 Documentation because now 4 parameters are
mandatary
I appreciate your time and Help on solving this issue.
Thanks
> > Siddharth- Hide quoted text -
AdWords API Advisor
unread,
Jun 12, 2008, 3:16:29 PM6/12/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to AdWords API Forum
Hello Siddharth,
I'm glad the community was able to resolve the issue.
The *Specified attributes in .NET aren't actually parameters that get
passed in the SOAP messages and therefore aren't part of the API.
The .NET SOAP libraries are a bit quirky and require that you set
those attributes on the request parameters before they'll send over
the values.