Hi Faizan,

I'm afraid we currently have no exact sample code of what you are looking for. 
Moving forward, in order to change the bidding strategy of your campaign to 
TargetRoasBiddingScheme, you can follow this AddCampaigns example (also 
available in other languages), except you would need to use the SET operator 
instead of the ADD one. You should also only pass the campaign fields you wish 
to modify.

In your code, you can add something similar to the Java code below :

BiddingStrategyConfiguration biddingStrategyConfiguration = new 
BiddingStrategyConfiguration();
biddingStrategyConfiguration.setBiddingStrategyType(BiddingStrategyType.TARGET_ROAS);

TargetRoasBiddingScheme targetRoasBiddingScheme = new TargetRoasBiddingScheme();
targetRoasBiddingScheme.setTargetRoas((double)50); // this is required
biddingStrategyConfiguration.setBiddingScheme(targetRoasBiddingScheme);
campaign.setBiddingStrategyConfiguration(biddingStrategyConfiguration);

As for using this bidding scheme in test accounts, I'm afraid that this is not 
possible due to the eligibility requirements.

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 [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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/w836T000000000000000000000000000000000000000000000PU068O00ieHvLfr7T-CmoMzxhJk49Q%40sfdc.net.

Reply via email to