Hello,

We would like to change the AD_ROTATION_MODE on campaigns through the API, 
but getting the following error:


*{ "errorCode": { "campaignError": "CANNOT_SET_AD_ROTATION_MODE" }, 
"message": "Setting ad rotation mode for a campaign is not allowed. Ad 
rotation mode at campaign is deprecated.", }*

I'm not sure why it is deprecated since I can make the change in the Google 
Ads UI on the same campaigns. Is there anywhere any article about this?

Also I noticed that when we do the same API change in *ValidateOnly=true* mode 
then that call actually doesn't fail. That also shouldn't happen, right?

Attached you can find logs for both queries.


Best,
 Ales

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/6d246cf2-63a2-448d-84ce-719b6c6bc6cen%40googlegroups.com.
GoogleAds.DetailedRequestLogs Verbose: 1 : [2021-10-26 17:38:04Z] - 
---------------BEGIN API CALL---------------

Request
-------

Method Name: /google.ads.googleads.v8.services.GoogleAdsService/Mutate
Host: https://googleads.googleapis.com
Headers: {
  "x-goog-api-client": "gl-dotnet/5.0.0 gapic/10.0.0 
gax/3.2.0+002f6637d17e4170f5db7ec7ca6f0163e6df1481 grpc/2.36.4",
  "developer-token": "REDACTED",
  "login-customer-id": "7545111282",
  "x-goog-request-params": "customer_id=6379058725"
}

{ "customerId": "6379058725", "mutateOperations": [ { "campaignOperation": { 
"update": { "resourceName": "customers/6379058725/campaigns/12959309205", 
"status": "ENABLED", "adServingOptimizationStatus": "OPTIMIZE", "name": 
"XX-AT-CampaignNegatives_3", "id": "12959309205" }, "updateMask": 
"adServingOptimizationStatus" } } ], "partialFailure": true, "validateOnly": 
true, "responseContentType": "MUTABLE_RESOURCE" }

Response
--------
Headers: {
  "content-disposition": "attachment",
  "request-id": "Lf74jNf-qXy4JDZfGuNlbw",
  "date": "Tue, 26 Oct 2021 17:38:03 GMT",
  "alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; 
ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; 
ma=2592000,h3-Q043=\":443\"; ma=2592000"
}

{ }
----------------END API CALL----------------

GoogleAds.DetailedRequestLogs Verbose: 1 : [2021-10-26 17:36:07Z] - 
---------------BEGIN API CALL---------------

Request
-------

Method Name: /google.ads.googleads.v8.services.GoogleAdsService/Mutate
Host: https://googleads.googleapis.com
Headers: {
  "x-goog-api-client": "gl-dotnet/5.0.0 gapic/10.0.0 
gax/3.2.0+002f6637d17e4170f5db7ec7ca6f0163e6df1481 grpc/2.36.4",
  "developer-token": "REDACTED",
  "login-customer-id": "7545111282",
  "x-goog-request-params": "customer_id=6379058725"
}

{ "customerId": "6379058725", "mutateOperations": [ { "campaignOperation": { 
"update": { "resourceName": "customers/6379058725/campaigns/12959309205", 
"status": "ENABLED", "adServingOptimizationStatus": "OPTIMIZE", "name": 
"XX-AT-CampaignNegatives_3", "id": "12959309205" }, "updateMask": 
"adServingOptimizationStatus" } } ], "partialFailure": true, 
"responseContentType": "MUTABLE_RESOURCE" }

Response
--------
Headers: {
  "content-disposition": "attachment",
  "request-id": "-A4-41aOl-CtUFEzLUFrcw",
  "date": "Tue, 26 Oct 2021 17:36:06 GMT",
  "alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; 
ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; 
ma=2592000,h3-Q043=\":443\"; ma=2592000"
}

{ "mutateOperationResponses": [ { "campaignResult": { } } ], 
"partialFailureError": { "code": 3, "message": "Setting ad rotation mode for a 
campaign is not allowed. Ad rotation mode at campaign is deprecated., at 
mutate_operations[0].campaign_operation.update.ad_serving_optimization_status", 
"details": [ { "@type": 
"type.googleapis.com/google.ads.googleads.v8.errors.GoogleAdsFailure", 
"@value": 
"CsgBCgJ4IhJjU2V0dGluZyBhZCByb3RhdGlvbiBtb2RlIGZvciBhIGNhbXBhaWduIGlzIG5vdCBhbGxvd2VkLiBBZCByb3RhdGlvbiBtb2RlIGF0IGNhbXBhaWduIGlzIGRlcHJlY2F0ZWQuGgIqACJZEhUKEW11dGF0ZV9vcGVyYXRpb25zGAASFAoSY2FtcGFpZ25fb3BlcmF0aW9uEggKBnVwZGF0ZRIgCh5hZF9zZXJ2aW5nX29wdGltaXphdGlvbl9zdGF0dXM="
 } ] } }

Partial failures: { "errors": [ { "errorCode": { "campaignError": 
"CANNOT_SET_AD_ROTATION_MODE" }, "message": "Setting ad rotation mode for a 
campaign is not allowed. Ad rotation mode at campaign is deprecated.", 
"trigger": { "stringValue": "" }, "location": { "fieldPathElements": [ { 
"fieldName": "mutate_operations", "index": 0 }, { "fieldName": 
"campaign_operation" }, { "fieldName": "update" }, { "fieldName": 
"ad_serving_optimization_status" } ] } } ] }
----------------END API CALL----------------

  • CA... Ales Sturala
    • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum

Reply via email to