Hello Jonathan,

You may use the CampaignService
<https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v0.services#google.ads.googleads.v0.services.CampaignService> and
perform the MutateCampaignsRequest
<https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v0.services#google.ads.googleads.v0.services.MutateCampaignsRequest> to
set the Bidding strategy. Please find the code snippet below as an example:

Campaign campaign =
Campaign.newBuilder()
.setName(StringValue.of("Interplanetary Cruise #" +
System.currentTimeMillis()))
.setAdvertisingChannelType(AdvertisingChannelType.SEARCH)
.setStatus(CampaignStatus.PAUSED)
.setMaximizeConversions(MaximizeConversions.newBuilder().build())
.setCampaignBudget(StringValue.of(budgetResourceName))
.setNetworkSettings(networkSettings)
.setStartDate(StringValue.of(new
DateTime().plusDays(1).toString("yyyyMMdd")))
.setEndDate(StringValue.of(new
DateTime().plusDays(30).toString("yyyyMMdd")))
.build();

CampaignOperation op =
CampaignOperation.newBuilder().setCreate(campaign).build();
operations.add(op);

The code snippet is for testing in Java. Could you please give this a try
and let me know if you have any issues?

Thanks,
Bharani, Google Ads API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ijlio23td00000008gj8qm001a6mfax6gmj8dhl74o30c1g68qjge1h%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
  • Setting... Jonathan Faircloth
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
      • ... Jonathan Faircloth
        • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
          • ... Jonathan Faircloth

Reply via email to