Hi Ales,
Thank you for reaching out to the Google Ads API Team.
Upon checking, this seems to be expected behavior. Setting the Ad Rotation mode at the Campaign level is indeed deprecated functionality. I'll try raising this with our team so we can make it clearer in our documentation. Please follow our blog for future updates.
Regarding the ValidateOnly=true mode, it seems that this field only tests mutate requests for missing parameters and incorrect field values. With this, it seems that the request is able to pass as the OPTIMIZE value is a valid value for AdServingOptimizationStatus.
Also, I will need to delete your initial post as it contains your actual logs. Below is a copy of your post with scrubbed information.
"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"
Regards,
|
||||||