Hi Danial, Can you tell me why the API is returning an error saying that type is required then? It happens even when I specify the type field and the type field matches the bidding scheme.
On Monday, June 23, 2014 2:39:30 AM UTC-7, Danial Klimkin wrote: > > Hello Scott, > > > You can specify either BiddingStrategyType > <https://developers.google.com/adwords/api/docs/reference/v201402/BiddingStrategyService.BiddingStrategyType.html> > or BiddingScheme > <https://developers.google.com/adwords/api/docs/reference/v201402/BiddingStrategyService.BiddingScheme.html> > or > both (they must match). That's why neither of them is marked as required. > > > -Danial, AdWords API Team. > > > On Monday, June 23, 2014 8:18:57 AM UTC+4, Scott Luther wrote: >> >> The documentation doesn't say that the type field is required; if it is, >> how do I set it? The code below returns an error saying type is required >> (even though I'm setting it) >> >> $biddingStrategy = new \SharedBiddingStrategy(); >> $biddingStrategy->name = $gCampaign->name . uniqid(); >> $biddingStrategy->type = 'TARGET_CPA'; >> $biddingStrategy->biddingScheme = $scheme; >> $operation = new \BiddingStrategyOperation(); >> $operation->operand = $biddingStrategy; >> $operation->operator = 'ADD'; >> $operations[] = $operation; >> $result = $biddingStrategyService->mutate($operations)->value[0]; >> >> Any ideas why I get the following error? >> >> SoapFault: [RequiredError.REQUIRED @ operations[0].operand.type] >> > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 --- You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
