BiddingIssue

75 views
Skip to first unread message

ruban selva

unread,
Apr 2, 2022, 12:47:50 PM4/2/22
to Google Ads API and AdWords API Forum
Hi,
 We have Migrated Adwords to GoogleAds api . In Google Ads api we used      'DISPLAY_SMART_CAMPAIGN  ' as campaign Type.  In this campaignType we used TargetCPA(defaultOne) as bidStrategy.Instead of TargetCPA I need to use Maximum conversions.How to use bidstrategy as Maximum conversions.

I have attached the code below for your reference

Code:
   Campaign campaign = Campaign.newBuilder().setName(campaignName)
.setStatus(CampaignStatus.ENABLED)
.setAdvertisingChannelType(AdvertisingChannelType.DISPLAY)
.setTargetCpa(TargetCpa.newBuilder().setTargetCpaMicros(5000000).build()
.setCampaignBudget(budgetResourceName)
.setStartDate(startDate).setEndDate(endDate).build();

Thanks&Regards
Rubanselva v

Google Ads API Forum Advisor

unread,
Apr 4, 2022, 5:27:29 AM4/4/22
to rubans...@gmail.com, adwor...@googlegroups.com

Hi Rubanselva,

Thanks for reaching out to the Google Ads API Forum.

Note that Smart Display campaign requires the TargetCpa bidding strategy. You may check this guide for more information. However, could you provide us with the complete request and response logs with the request-id, so our team can better check?

For the Java client library, logging can be enabled by navigating to the Client libraries > Your client library (Select Java) > Logging documentation, which you can access from this link. You may then send the requested information via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias by referring this thread.

Regards,

Google Logo
Yasar
Google Ads API Team
 


ref:_00D1U1174p._5004Q2ZJAj5:ref

ruban selva

unread,
Apr 4, 2022, 9:59:38 AM4/4/22
to Google Ads API Forum Advisor, adwor...@googlegroups.com
Hi,

    Here I  sent the request and Response Of this campaign.

Request:

 Campaign campaign =
     Campaign.newBuilder()
         .setName(campaignName)
         .setAdvertisingChannelType(AdvertisingChannelType.DISPLAY)
         .setBiddingStrategyType(BiddingStrategyType.MAXIMIZE_CONVERSIONS)
         .setCampaignBudget(budgetResourceName)
         .setStartDate(new DateTime().plusDays(1).toString("yyyyMMdd"))
         .setEndDate(new DateTime().plusMonths(1).toString("yyyyMMdd"))
         .build();

 // Creates the operation.
 CampaignOperation operation = CampaignOperation.newBuilder().setCreate(campaign).build();

Response:

message:errors {
  error_code {
    field_error: REQUIRED
  }
  message: "The required field was not present."
  trigger {
    string_value: ""
  }
  location {
    field_path_elements {
      field_name: "operations"
      index: 0
    }
    field_path_elements {
      field_name: "create"
    }
    field_path_elements {
      field_name: "campaign_bidding_strategy"
    }
  }
}
request_id: "q0aORqSijyUinItVue3RLw"


Google Ads API Forum Advisor

unread,
Apr 4, 2022, 5:00:20 PM4/4/22
to rubans...@gmail.com, adwor...@googlegroups.com
Hi rubin,

I work with Yasar. Thank you for the log and code. Instead of
.setBiddingStrategyType(BiddingStrategyType.MAXIMIZE_CONVERSIONS)

you can use 
.setMaximizeConversions(MaximizeConversions.newBuilder())

 

You cannot set bidding strategy type directly.

​​​​​​​
Regards,

Google Logo
Aryeh
Google Ads API Team
 


ref:_00D1U1174p._5004Q2ZJAj5:ref

ruban selva

unread,
Apr 5, 2022, 11:38:59 AM4/5/22
to Google Ads API Forum Advisor, adwor...@googlegroups.com
Hi,

Instead of
.setBiddingStrategyType(BiddingStrategyType.MAXIMIZE_CONVERSIONS)

I used 
.setMaximizeConversions(MaximizeConversions.newBuilder())

but i received error.Here I will sent the error response

Response:

message:errors {
  error_code {
    bidding_error: BIDDING_STRATEGY_TYPE_INCOMPATIBLE_WITH_SHARED_BUDGET
  }
  message: "Bidding strategy type is incompatible with shared budget."

  trigger {
    string_value: ""
  }
  location {
    field_path_elements {
      field_name: "operations"
      index: 0
    }
    field_path_elements {
      field_name: "create"
    }
    field_path_elements {
      field_name: "campaign_budget"
    }
  }
}
request_id: "AQpZ6I_Pv90IkwrKyL38RA"

Reply all
Reply to author
Forward
0 new messages