I would like to create new campaign, but every time after calling
"addCampaign" i get an error "The requested version is no longer
supported.  Please upgrade your application to a more recent version
of the API."

I have confused because i use "v13"  and AccountService work and i see
(10) my client accounts. Why AccountService works while
CampaignService requires newest version???? what should I do to avoid
this error???


code for example:


            AccountService acservice = new AccountService();
            acservice.emailValue = new email();
            acservice.emailValue.Text = new String[]
{ LoginInfo.Email };
            acservice.passwordValue = new password();
            acservice.passwordValue.Text = new String[]
{ LoginInfo.Password };
            //acservice.clientEmailValue = new clientEmail();
            //acservice.clientEmailValue.Text = new String[]
{ LoginInfo.ClientEmail };
            acservice.useragentValue = new useragent();
            acservice.useragentValue.Text = new String[]
{ LoginInfo.UserAgent };
            acservice.developerTokenValue = new developerToken();
            acservice.developerTokenValue.Text = new String[]
{ LoginInfo.DeveloperToken };
            string[] account =  acservice.getClientAccounts();

            CampaignService service = new CampaignService();
            service.emailValue = new email();
            service.emailValue.Text = new String[]
{ LoginInfo.Email };
            service.passwordValue = new password();
            service.passwordValue.Text = new String[]
{ LoginInfo.Password };
            //service.clientEmailValue = new clientEmail();
            //service.clientEmailValue.Text = new String[]
{ LoginInfo.ClientEmail };
            service.useragentValue = new useragent();
            service.useragentValue.Text = new String[]
{ LoginInfo.UserAgent };
            service.developerTokenValue = new developerToken();
            service.developerTokenValue.Text = new String[]
{ LoginInfo.DeveloperToken };

            Campaign campaign = new Campaign();
            campaign.name = campaignname;    // "Sample Indigo-Studio
Campaign";
            campaign.budgetAmount = budgetAmount; // 100000L;
            campaign.budgetAmountSpecified = true;
            campaign.budgetPeriod = BudgetPeriod.Daily;
            campaign.budgetPeriodSpecified = true;

campaign = service.addCampaign(campaign);

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