Hi Mitchell,
I did receive your message on the 30th and I did reply to it. In my private
reply I included full creds / account numbers. I can include those again
privately if needed.
Here was my response:
------------------------
Hi Mitchell,
I think we may be crossing streams a bit in our correspondence here.
We are attempting to set a Campaign bidding strategy to
MAXIMIZE_CONVERSIONS, not MAXIMIZE_CONVERION_VALUE
In addition, I believe that we are setting the proper field on the Google
campaign ie. we're not setting bidding_strategy directly:
case MAXIMIZE_CONVERSIONS:
googleCampaign.setBiddingStrategyType(
BiddingStrategyTypeEnum.BiddingStrategyType.MAXIMIZE_CONVERSIONS );
googleCampaign.setMaximizeConversions(
MaximizeConversions.newBuilder().build() );
break;
case MAXIMIZE_CONVERSION_VALUE:
googleCampaign.setBiddingStrategyType(
BiddingStrategyTypeEnum.BiddingStrategyType.MAXIMIZE_CONVERSION_VALUE );
googleCampaign.setMaximizeConversionValue(
getMaximizeConversionValueBiddingScheme( fluentCampaignPlan ) );
break;
We realize that setBiddingStrategyType is read only but the API allows us
to set it so we do, as well as the bidding scheme, which we understand to
be what actually alters the strategy
Here's a full request + response:
Request
-------
MethodName: google.ads.googleads.v3.services.CampaignService/MutateCampaigns
Endpoint: googleads.googleapis.com:443
Headers: {developer-token=REDACTED, login-customer-id=***,
x-goog-api-client=gl-java/1.8.0_161 gapic/ gax/1.50.1 grpc/1.25.0}
Body: customer_id: "***"
operations {
update {
resource_name: "customers/***/campaigns/9648895439"
name {
value: "XYZ"
}
status: ENABLED
campaign_budget {
value: "customers/***/campaignBudgets/***"
}
tracking_url_template {
value:
"{lpurl}?keyword={keyword}&campaign={campaignid}&device={device}"
}
network_settings {
target_google_search {
value: true
}
target_search_network {
}
target_content_network {
}
target_partner_search_network {
}
}
bidding_strategy_type: MAXIMIZE_CONVERSIONS
maximize_conversions {
}
geo_target_type_setting {
positive_geo_target_type: PRESENCE
negative_geo_target_type: PRESENCE_OR_INTEREST
}
}
update_mask {
paths: "resource_name"
paths: "name"
paths: "status"
paths: "tracking_url_template"
paths: "network_settings.target_google_search"
paths: "network_settings.target_search_network"
paths: "network_settings.target_content_network"
paths: "network_settings.target_partner_search_network"
paths: "geo_target_type_setting.positive_geo_target_type"
paths: "geo_target_type_setting.negative_geo_target_type"
paths: "campaign_budget"
paths: "bidding_strategy_type"
}
}
partial_failure: true
Response
--------
Headers:
Metadata(content-disposition=attachment,content-type=application/grpc,request-id=kuHgaCpnz-F2Omneu_xm0g,date=Mon,
30 Mar 2020 14:52:05 GMT,alt-svc=quic=":443"; ma=2592000;
v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443";
ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443";
ma=2592000,h3-Q043=":443"; ma=2592000,h3-T050=":443"; ma=2592000)
Body: results {
resource_name: "customers/***/campaigns/***"
}
Failure message: null
Status: Status{code=OK, description=null, cause=null}.
One peculiar thing is that since the MaximizeConversion strategy is an
automated strategy, there's no values to set,
ie. MaximizeConversions.newBuilder().build(), which results in
maximize_conversions {
}
I wonder if the API is not recognizing that this is a change in bidding
strategy
If you have any interest in hopping on a call or hangout let me know.
Thanks
Pete
On Thursday, April 2, 2020 at 3:56:28 PM UTC-4, adsapiforumadvisor wrote:
>
> Hi Pete,
>
> I responded to your private message on March 30th. Did you not receive it?
> I apologize if it did not go through. Either way, here was my response:
>
> Please see here
> <https://developers.google.com/google-ads/api/docs/campaigns/bidding/assign-strategies>
>
> for information on setting the bidding strategy type. As it mentions,
> setting the bidding_strategy field directly won't work as expected. You
> will have to set the MAXIMIZE_CONVERSIONS_VALUE instead to change the
> bidding strategy of your campaign.
>
> Regards,
> Mitchell
> Google Ads API Team
>
> ref:_00D1U1174p._5001UXWuZC: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/39671fd0-fe08-4868-9ead-ee220edf77ea%40googlegroups.com.