Hello Yusuf,

 Could you please turn on SOAP logging? There are instructions on
doing this in the README that comes with the .NET client library:

  http://code.google.com/p/google-api-adwords-dotnet/source/browse/trunk/README

Once you've done that, take a look at the SOAP response XML message
for your updateCriteria() call. Could you please pass along the value
of the "requestId" SOAP header in the updateCriteria() response?

Cheers,
-Jeff Posnick, AdWords API Team


On Jun 26, 7:45 am, Yusuf Şahin <yusu...@gmail.com> wrote:
> Hi,
>   I am facing problem in updating my keywords. can you please help me
> on this matter.  It does not show any error but not update datas. my
> code are here(C#.net):
> //------------------UpDate Keyword-----------
> public static string[] UpdateKeyword(string groupId, string keywordId,
> long maxCpcNew, string keywordText, int status)
>         {
>             string[] returnValue = new string[2];
>             try
>             {
>                 CriterionService service = new CriterionService();
>                 service.emailValue = new email();
>                 service.emailValue.Text = new String[]
> { ApiUserInfo.Email };
>                 service.passwordValue = new password();
>                 service.passwordValue.Text = new String[]
> { ApiUserInfo.Password };
>                 service.clientEmailValue = new clientEmail();
>                 service.clientEmailValue.Text = new String[]
> { ApiUserInfo.ClientEmail };
>                 service.useragentValue = new useragent();
>                 service.useragentValue.Text = new String[]
> { ApiUserInfo.Useragent };
>                 service.developerTokenValue = new developerToken();
>                 service.developerTokenValue.Text = new String[]
> { ApiUserInfo.DeveloperToken };
>                 service.applicationTokenValue = new applicationToken
> ();
>                 service.applicationTokenValue.Text = new String[]
> { ApiUserInfo.ApplicationToken };  // Create new ad group structure.
>
>                 // Create new keyword structure.
>
>                 long adGroupId = long.Parse(groupId);
>
>                 Keyword keyword = new Keyword();
>                 switch (status)
>                 {
>                     case 1:
>                         keyword.status = CriterionStatus.Active;
>                         break;
>                     case 0:
>                         keyword.status = CriterionStatus.InActive;
>                         break;
>                 }
>                 keyword.adGroupId = adGroupId;
>                 keyword.criterionType = CriterionType.Keyword;
>                 keyword.criterionTypeSpecified = true;
>                 //keyword.text = keywordText;
>                 keyword.maxCpc = maxCpcNew;
>                 keyword.id = long.Parse(keywordId);
>                 keyword.type = KeywordType.Broad;  // Check new
> keyword for policy violations before adding it.
>
>                 String[] languageTarget = { "tr" };
>                 GeoTarget geoTarget = new GeoTarget();
>                 CountryTargets countryTargets = new CountryTargets();
>                 countryTargets.countries = new String[] { "TR" };
>                 geoTarget.countryTargets = countryTargets;
>
>                 ApiError[] errors = service.checkCriteria(new Criterion
> [] { keyword }, languageTarget, geoTarget);
>
>                 if (errors == null)
>                 {
>                     service.updateCriteria(new Criterion[]
> { keyword });
>                     returnValue[0] = "1";
>                     returnValue[1] = "Word updated succesfully.";
>
>                 }
>                 else
>                 {
>                     returnValue[0] = "0";
>                     returnValue[1] = "Problem occured at the time of
> updating. Please try again later.";
>                 }
>             }
>             catch
>             {
>                 returnValue[0] = "0";
>                 returnValue[1] = "Problem occured at the time of
> updating. Please try again later.";
>             }
>             return returnValue;
>         }
>  when passing throgh   ApiError[] errors  no problems occured. even
> service.updateCriteria(new Criterion[] { keyword });    completed
> without any error but it does not update actually.
> can you please have a look on it.
> thank you.
--~--~---------~--~----~------------~-------~--~----~
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