Can create MaximizeConversionValue bid strategy without any target return.

83 views
Skip to first unread message

chandra Shekhar

unread,
Feb 2, 2023, 6:40:27 AM2/2/23
to Google Ads API and AdWords API Forum
Hi team , I am trying to update the bid from one strategy to another , the bid strategy changing is working fine when we give values with bid strategy type(i.e. target_roas value for MaximizeConversionValue).
The issue arises when we are trying to update the bid strategy without target_roas value.
i.e. in AW UI MaximizeConversionValue is not getting reflected without target roas (attached).

my update mask is :- resource_name: "customers/8035292425/campaigns/19631729427"bidding_strategy_type: MAXIMIZE_CONVERSION_VALUE
maximize_conversion_value {
}
id: 19631729427

and the result is:-detail -> {Campaign@18087} "resource_name: "customers/8035292425/campaigns/19631729427"status: ENABLED
ad_serving_optimization_status: OPTIMIZE
advertising_channel_type: SEARCH
network_settings {
target_google_search: true
target_search_network: true
target_content_network: false
target_partner_search_network: false
}
experiment_type: BASE
serving_status: SERVING
bidding_strategy_type: MAXIMIZE_CONVERSION_VALUE
maximize_conversion_value {
target_roas: 11.0
}
geo_target_type_setting {
positive_geo_target_type: PRESENCE_OR_INTEREST
negative_geo_target_type: PRESENCE_OR_INTEREST
}
payment_mode: CLICKS
base_campaign: "customers/8035292425/campaigns/19631729427"
name: "TEST AW Campaign - Feb 1 2023 Bid Strategy"
id: 19631729427
campaign_budget: "customers/8035292425/campaignBudgets/12326201730"
start_date: "2023-02-01"
end_date: "2023-02-26"
"
Screenshot 2023-02-02 at 17.07.42.png

chandra Shekhar

unread,
Feb 2, 2023, 6:45:39 AM2/2/23
to Google Ads API and AdWords API Forum
note: the campaign was already with bid strategy MaximizeConversionValue and target_raos , with update I wanted wanted MaximizeConversionValue only without target_raos.

chandra Shekhar

unread,
Feb 2, 2023, 8:49:28 AM2/2/23
to Google Ads API and AdWords API Forum
if I give update mask :- something like this >
resource_name: "customers/8035292425/campaigns/19631729427"
bidding_strategy_type: TARGET_ROAS
maximize_conversion_value {

}
name: "TEST AW Campaign - Feb 1 2023 Bid Strategy"
id: 19631729427
Then I am getting this error>
full_message -> errors {
  error_code {
    field_mask_error: FIELD_HAS_SUBFIELDS
  }
  message: "The field mask updated a field with subfields: \'maximize_conversion_value\'."
  location {
    field_path_elements {
      field_name: "operations"
      index: 0
    }
  }
}
request_id: "zd6QCFl8du6TrCPcyQhhMA"

Google Ads API Forum Advisor

unread,
Feb 2, 2023, 3:59:09 PM2/2/23
to chandra...@knorex.com, adwor...@googlegroups.com

Hi chandra, 

Thanks for reaching out to the Google Ads API forum. I hope you are doing well today.

With regards to your concern, upon checking the provided logs. We see that you encountered an error "FIELD_HAS_SUBFIELDS" in Google Ads API documentation this error means "The field mask updated a field with subfields. Fields with subfields may be cleared, but not updated. To fix this, the field mask should select all the subfields of the invalid field".

If you want to know more about this error you can check this documentation FieldMaskError for more information on this.

Please see and check the below client library guides which are for clearing fields :


If issues still persist, please provide us with the complete logs (request and response with request-id) for us to further investigate.

For more information for logging and monitoring work, see Google Ads API Logging documentation.

Please let us know if you have other concerns. Have a great day.

Regards,

Google Logo
Marjorie
Google Ads API Team
 


ref:_00D1U1174p._5004Q2iUykd:ref

chandra Shekhar

unread,
Feb 2, 2023, 10:58:28 PM2/2/23
to Google Ads API and AdWords API Forum
please ignore the FIELDMASKERROR for a while , that I was getting in v11, but for now I am doing this update request >>
customer_id: "8035292425"
operations {
  update {
    resource_name: "customers/8035292425/campaigns/19631729427"
    bidding_strategy_type: MAXIMIZE_CONVERSION_VALUE
    id: 19631729427
  }
  update_mask {
    paths: "resource_name"
    paths: "id"
    paths: "bidding_strategy_type"
  }
}

and the changes does not get reflected in AW UI

the mutatecampaignresponse response is >>
results {
  resource_name: "customers/8035292425/campaigns/19631729427"
}

after update request I am fetching my campaign and this is returning bid strategy type with maximize_conversion_value>>

resource_name: "customers/8035292425/campaigns/19631729427"
status: ENABLED
ad_serving_optimization_status: OPTIMIZE
advertising_channel_type: SEARCH
network_settings {
  target_google_search: true
  target_search_network: true
  target_content_network: false
  target_partner_search_network: false
}
experiment_type: BASE
serving_status: SERVING
bidding_strategy_type: MAXIMIZE_CONVERSION_VALUE
maximize_conversion_value {
  target_roas: 0.01

}
geo_target_type_setting {
  positive_geo_target_type: PRESENCE_OR_INTEREST
  negative_geo_target_type: PRESENCE_OR_INTEREST
}
payment_mode: CLICKS
base_campaign: "customers/8035292425/campaigns/19631729427"
name: "TEST AW Campaign - Feb 1 2023 Bid Strategy"
id: 19631729427
campaign_budget: "customers/8035292425/campaignBudgets/12326201730"
start_date: "2023-02-01"
end_date: "2023-02-26"

hope u r clear now.

chandra Shekhar

unread,
Feb 2, 2023, 11:03:34 PM2/2/23
to Google Ads API and AdWords API Forum
You can see the campaign response is having target_roas value, my request clearly define I want bidding_strategy_type: MAXIMIZE_CONVERSION_VALUE without maximize_conversion_value.

Google Ads API Forum Advisor

unread,
Feb 3, 2023, 11:17:34 AM2/3/23
to chandra...@knorex.com, adwor...@googlegroups.com
Hi Chandar,

Thank you for your reply. I'm also a member of the Google Ads API support team and allow me to assist you here.

Upon checking on my end, I was able to remove the target_roas value with the provided request below:

Request
-------
MethodName: google.ads.googleads.v12.services.CampaignService/MutateCampaigns
Endpoint: googleads.googleapis.com:443

operations {
  update {
     resource_name: "customers/(customerId)/campaigns/(campaignId)"
  }
  update_mask {
    paths: "resource_name"
    paths: "maximize_conversion_value.target_roas"
  }
}


Response
--------
results {
  resource_name: "customers/(customerId)/campaigns/(campaignId)"
}

To test the target_roas value is removed, you may try the below query:

SELECT campaign.id,
       campaign.maximize_conversion_value.target_roas,
       campaign.bidding_strategy,
       campaign.bidding_strategy_type,
       campaign.target_roas.cpc_bid_ceiling_micros,
       campaign.target_roas.cpc_bid_floor_micros,
       campaign.target_roas.target_roas,
       campaign.maximize_conversions.target_cpa_micros,
       campaign.target_cpa.target_cpa_micros
FROM   campaign
WHERE  campaign.id=campaignid.

Best regards,
Google Logo
Jinky
Google Ads API Team
 


 

ref:_00D1U1174p._5004Q2iUykd:ref
Reply all
Reply to author
Forward
0 new messages