I cannot set selective_optimization to create campaign.
In the WEB UI, it seems that it has been changed to specify the category
instead of the conversion action, but in the API, the resource name of the
conversion action is specified.
If you specify the resource name of the conversion action, it will be "he
error code is not in this version.".
Below is the run-time debug log.
(ID & CPC is masked.)
Outgoing request: Headers:
{"developer-token":"REDACTED","login-customer-id":"XXXXX","x-goog-api-client":"gl-ruby/3.0.2
gax/0.6.0 gapic/14.0.0
grpc/1.41.0","x-goog-request-params":"customer_id=XXXXX"} Payload:
{"customerId":"XXXXX","operations":[{"create":{"name":"CampaignName","status":"PAUSED","advertisingChannelType":"DISPLAY","networkSettings":{"targetGoogleSearch":false,"targetSearchNetwork":false,"targetContentNetwork":true,"targetPartnerSearchNetwork":false},"geoTargetTypeSetting":{"positiveGeoTargetType":"PRESENCE_OR_INTEREST","negativeGeoTargetType":"PRESENCE"},"campaignBudget":"customers/XXXXX/campaignBudgets/XXXXX","startDate":"2021-11-10","endDate":"2021-11-31","selectiveOptimization":{"conversionActions":["customers/XXXXX/conversionActions/XXXXX"]},"paymentMode":"CLICKS","targetSpend":{"cpcBidCeilingMicros":"xxxxxxxxxxx"}}}],"partialFailure":true}
Incoming response: Payload: {"partialFailureError":{"code":3,"message":"The
error code is not in this version., at
operations[0].create.selective_optimization.conversion_actions","details":[{"@type":"type.googleapis.com/google.ads.googleads.v8.errors.GoogleAdsFailure","errors":[{"errorCode":{"requestError":"UNKNOWN"},"message":"The
error code is not in this
version.","trigger":{"stringValue":""},"location":{"fieldPathElements":[{"fieldName":"operations","index":0},{"fieldName":"create"},{"fieldName":"selective_optimization"},{"fieldName":"conversion_actions"}]}}]}]},"results":[{}]}
Partial failure errors:
{"errors":[{"errorCode":{"requestError":"UNKNOWN"},"message":"The error
code is not in this
version.","trigger":{"stringValue":""},"location":{"fieldPathElements":[{"fieldName":"operations","index":0},{"fieldName":"create"},{"fieldName":"selective_optimization"},{"fieldName":"conversion_actions"}]}}]}
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/b1d7edcd-c98c-44e5-bec0-e50ef6b870dbn%40googlegroups.com.