AdWords API Re: Adwords4r and mutate an AdGroupAd

2009-11-06 Thread Dan Hill
Hi, I've now fixed the problem, though I don't quite understand it...! Using the above code generates a SOAP request that contains the dissaprovalReasons set to the id number of the ad. This code, i.e. initilizing and adwords4r object first, doesn't, and thus works: ad_operand = @adwords_adservic

AdWords API Re: Adwords4r and mutate an AdGroupAd

2009-11-06 Thread Dan Hill
Hi Eric, Many thanks for the reply. I'd thought that originally, but that simply give me a ReadOnlyError.READ_ONLY @ operations[0].operand.ad.disapprovalReasons I'm not trying to set or update the disapprovalReasons at all? Even if I deliberately set it to null it still returns the same error.

AdWords API Re: Adwords4r and mutate an AdGroupAd

2009-11-05 Thread AdWords API Advisor
Hi Dan, I believe the problem is that your adservice_data object is not structured correctly. This object represents an AdGroupAd, which doesn't have an "id" field ( see http://code.google.com/apis/adwords/v2009/docs/reference/AdGroupAdService.AdGroupAd.html ). Instead, there is an "ad" field ho