Hello Yusuf, If that's .NET code that you're writing, you may need to set
adGroup.statusSpecified = true; in your code, due to a quirk in the way the .NET WSDL to class library parser works. If that's not the issue, then you should enable SOAP logging in your code and take a look at the request and response messages. Does the SOAP request message look like it should, i.e. is the ad group id and status elements included in your request? Cheers, -Jeff Posnick, AdWords API Team On Jul 1, 3:35 am, Yusuf Şahin <[email protected]> wrote: > Hi ; > > I am facing problem with updating Ad group. > I want to Pause, Delete or Resume AdGroups .. Here is my class. not > showing any error but not doing any task. i mean the status remain > unchanged. > > here is my code releted with update group > > AdGroup adGroup = new AdGroup(); > > adGroup.id = > long.Parse(groupId); > > adGroup.name = adGroupName; > > switch (groupStatus) > > { > > case 1: > > adGroup.status = > AdGroupStatus.Enabled; > > break; > > case 2: > > adGroup.status = > AdGroupStatus.Paused; > > break; > > case 0: > > adGroup.status = > AdGroupStatus.Deleted; > > break; > > } > > service.updateAdGroup(adGroup); > > no error messages but i coul not change status. please suggest me, what is > the problem of my code. > > 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 [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 -~----------~----~----~----~------~----~------~--~---
