hello now I have more than 20 conversions in my campaign in 45 days. When I am trying below code it is giving me error here is my code $campaignService = $this->adWordsServices->get($this->session, CampaignService::class); $campaign = new Campaign(); $campaign->setId($dbCampaign->adword_campaign_id); $biddingStrategyConfiguration = new BiddingStrategyConfiguration(); $biddingStrategyConfiguration->setBiddingStrategyType( BiddingStrategyType::TARGET_ROAS ); $targetRoasBiddingScheme = new TargetRoasBiddingScheme( 'Target Roas Scheme'); $targetRoasBiddingScheme->setTargetRoas((float)$dbCampaign->maargin ->roas_percentage * 100); $biddingStrategyConfiguration->setBiddingScheme( $targetRoasBiddingScheme); $campaign->setBiddingStrategyConfiguration( $biddingStrategyConfiguration); // Create a campaign operation and add it to the list.
$operation = new CampaignOperation(); $operation->setOperand($campaign); $operation->setOperator(Operator::SET); $operations[] = $operation; // Update the campaign on the server. $result = $campaignService->mutate($operations); logger(print_r($result->getValue()[0],true)); return $campaign = $result->getValue()[0]; below is my Request Soap XML <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201809"> <SOAP-ENV:Header> <ns1:RequestHeader> <ns1:clientCustomerId></ns1:clientCustomerId> <ns1:developerToken>REDACTED</ns1:developerToken> <ns1:userAgent>Ads Tool CLient (AwApi-PHP, googleads-php-lib/37.1.0, PHP/7.2.8, ReportDownloader/string)</ns1:userAgent> <ns1:validateOnly>false</ns1:validateOnly> <ns1:partialFailure>false</ns1:partialFailure> </ns1:RequestHeader> </SOAP-ENV:Header> <SOAP-ENV:Body> <ns1:mutate> <ns1:operations> <ns1:operator>SET</ns1:operator> <ns1:operand> <ns1:id>20*****38</ns1:id> <ns1:biddingStrategyConfiguration> <ns1:biddingStrategyType>TARGET_ROAS</ns1:biddingStrategyType> <ns1:biddingScheme> <ns1:BiddingScheme.Type>Target Roas Scheme</ns1:BiddingScheme.Type> </ns1:biddingScheme> </ns1:biddingStrategyConfiguration> </ns1:operand> </ns1:operations> </ns1:mutate> </SOAP-ENV:Body> </SOAP-ENV:Envelope> and below is my response soap xml <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <soap:Fault> <faultcode>soap:Client</faultcode> <faultstring>Unmarshalling Error: cvc-type.2: The type definition cannot be abstract for element ns1:biddingScheme. </faultstring> </soap:Fault> </soap:Body> </soap:Envelope> Kindly advise what is going wrong Thanks On Wednesday, July 3, 2019 at 3:26:03 PM UTC+5, adsapiforumadvisor wrote: > > Hi Faizan, > > Yes, you still would not be able to apply the TargetRoasBiddingScheme to > your test account's campaigns. The examples I provided was for how you > would implement the requirements into your production accounts in the event > that you haven't done so yet. > > Thanks and regards, > Peter > Google Ads API Team > > ref:_00D1U1174p._5001UCaNvx:ref -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads 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 --- You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/03360224-22d0-4e66-820f-9d70cf94d604%40googlegroups.com.