CampaignError.CANNOT_SET_SELECTIVE_OPTIMIZATION_DURING_OR_POST_UNIFIED_GOAL_MIGRATION

260 views
Skip to first unread message

Matteo Medda

unread,
Nov 3, 2021, 11:15:08 AM11/3/21
to AdWords API and Google Ads API Forum
Hello, 
we get this error when we create campaigns with TARGET_CPA. 

Error message:
 "operations [1] .operand.selectiveOptimization.conversionTypeIds => CampaignError.CANNOT_SET_SELECTIVE_OPTIMIZATION_DURING_OR_POST_UNIFIED_GOAL_MIGRATION" 

The error occurs when we go to setSelectiveOptimization on the campaign with the ConversionIds. If we don't specify conversionIds then the creation is successful. 
The error occurs on all of our accounts. We use GoogleAdwords. 

Until a few days ago everything was ok and we didn't make any changes.

Google Ads API Forum Advisor

unread,
Nov 4, 2021, 6:20:44 AM11/4/21
to m.m...@doveconviene.com, adwor...@googlegroups.com

Hi,

Thanks for reaching out to us.

Could you confirm if you are trying to set selective optimization on a search or display campaign? If so, I don't believe that should work. Note that Selective optimization is only supposed to be used with App campaigns in the API as shown here: https://developers.google.com/adwords/api/docs/guides/mobile-app-campaigns

Also, please note that the AdWords API is deprecated and will be sunset on April 27, 2022. We strongly recommend that you migrate to the Google Ads API as soon as possible.

Let us know if you have any further questions.

Regards,
Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 2021 Google Ads API and AdWords API Annual Survey
 

Google Logo
Yasar Ramjan Makandar
Google Ads API Team
 

 



ref:_00D1U1174p._5004Q2QHfA2:ref

Matteo Medda

unread,
Nov 4, 2021, 9:07:07 AM11/4/21
to AdWords API and Google Ads API Forum
Hi,
I can confirm that we have always (about 3 years) used "set selective optimization" on "display" type campaigns without any problem. We have been experiencing the problem for about a week.

Regards

Google Ads API Forum Advisor

unread,
Nov 4, 2021, 10:31:55 PM11/4/21
to m.m...@doveconviene.com, adwor...@googlegroups.com
Hi Matteo, 

Thank you for the confirmation.

At the moment, you would not be able to set selective optimization for Search and Display campaigns in the API because it was never formally supported for the said campaign types.

However, there is now a way to set conversions for a campaign. We just released v9 of the Google Ads API (https://ads-developers.googleblog.com/2021/11/announcing-v9-of-google-ads-api.html). In the release, there is a concept called Conversion Goals (https://developers.google.com/google-ads/api/docs/conversions/goals/overview) where you can set custom goals for your campaign. You would need to upgrade to this version to use the feature.

In the meantime, our team is currently looking into turning on selective optimization for Display and Search for the few people who were using it before. You can also alternatively look at v9 as an option as it will be the primary way to set custom goals going forward, and you'll need to move to that way in the future anyway.

Best regards,


Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 2021 Google Ads API and AdWords API Annual Survey
 
Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


ref:_00D1U1174p._5004Q2QHfA2:ref

Matteo Medda

unread,
Nov 5, 2021, 4:09:56 AM11/5/21
to AdWords API and Google Ads API Forum
Hi Peter, 
 ok, but at the moment we use AdWords API not GoogleAds API, will it be corrected for us too?

The AdWords API sunset is April 27 2022, and we didn't expect to have to do the migration now and in a hurry.

Regards

Google Ads API Forum Advisor

unread,
Nov 5, 2021, 12:27:55 PM11/5/21
to m.m...@doveconviene.com, adwor...@googlegroups.com
Hello Matteo,

Thanks for mentioning that you use AdWords API. If we manage to enable it for Google Ads API for those developers who were already using it, then we should be able to do that for AdWords API as well. I realize it would be stressful to have an unexpected migration, but time flies by pretty quickly, which is why we mentioned that as an option. We'll keep you posted on the outcome of enabling it for AdWords API and Google Ads API.

Best,
 
Google Logo
Nadine Wang
Google Ads API Team
 


ref:_00D1U1174p._5004Q2QHfA2:ref

Matteo Medda

unread,
Nov 8, 2021, 3:38:28 AM11/8/21
to AdWords API and Google Ads API Forum

Hi Nadine, thanks for the update, we look forward to hearing from you.

Matteo

san...@knorex.com

unread,
Nov 9, 2021, 4:32:10 AM11/9/21
to AdWords API and Google Ads API Forum
Hi,
We also used selective optimization for Search and Display campaigns for years. But recently Adwords APIs take it down without formal announcement. 
Now we are rushing to implement Google Ads. Be little disappointed.

Martin.

Google Ads API Forum Advisor

unread,
Nov 10, 2021, 1:59:47 AM11/10/21
to san...@knorex.com, adwor...@googlegroups.com
Hello Martin,

Thanks for your feedback. We'll make sure that our messages in the future are clear enough for everyone.

Best,
Thanet, Google Ads API Team

ref:_00D1U1174p._5004Q2QHfA2:ref

xuantoi....@gmail.com

unread,
Nov 10, 2021, 2:09:06 AM11/10/21
to AdWords API and Google Ads API Forum
Hi Thanet,

I can see Api v9 was released.
https://ads-developers.googleblog.com/2021/11/announcing-v9-of-google-ads-api.html
But Java Maven library still in v15.0.0.
When will it update?

Tomerpop

unread,
Nov 10, 2021, 8:44:19 AM11/10/21
to AdWords API and Google Ads API Forum
Same for Python library, is there any ETA on that?
Thanks!

Google Ads API Forum Advisor

unread,
Nov 10, 2021, 12:17:51 PM11/10/21
to tome...@gmail.com, adwor...@googlegroups.com
Hi,

I expect both the Java and Python libraries to be released by the end of this week.

Also, per my colleague Nadine's response on a related thread , we're looking into turning on selective optimization for Display and Search for the few people who were using it before. I'll provide an update here as soon as I have anything to report on that topic.

Thanks,
Josh, Google Ads API Team
 

ref:_00D1U1174p._5004Q2QHfA2:ref

Matteo Medda

unread,
Nov 12, 2021, 4:05:50 AM11/12/21
to AdWords API and Google Ads API Forum
Hi,
we use the PHP library with the ADWORDS API, is there any ETA on that?
Thanks!

Google Ads API Forum Advisor

unread,
Nov 12, 2021, 11:30:23 AM11/12/21
to m.m...@doveconviene.com, adwor...@googlegroups.com
Hi,

The Java, PHP, and Python libraries for v9 are all available now.

Matteo Medda

unread,
Nov 12, 2021, 11:37:32 AM11/12/21
to AdWords API and Google Ads API Forum
Hello, on the PHP library for ADWORDS we see the version 54 of August 2021
Regards,
Matteo

Google Ads API Forum Advisor

unread,
Nov 12, 2021, 1:22:04 PM11/12/21
to m.m...@doveconviene.com, adwor...@googlegroups.com
Hi Matteo,

The link you mentioned was the library for the AdWords API. Version v9 is for the Google Ads API, which has a separate client library. You can find the release for v9 for that library here:

https://github.com/googleads/google-ads-php/releases/tag/v12.1.0

Google Ads API Forum Advisor

unread,
Nov 17, 2021, 1:44:06 PM11/17/21
to adwor...@googlegroups.com, m.m...@doveconviene.com
Hi,

If you started encountering errors while attempting to attach a single conversion action to a Search or Display campaign using selectiveOptimization in the AdWords API or selective_optimization in the Google Ads API, we have made a change that will allow you to resubmit those requests, but only for accounts where we detected these errors recently.

Although we are allowing those requests again, the AdWords API and the Google Ads API will both start rejecting those requests in early 2022, so you should migrate to using custom goals in the Google Ads API as soon as possible.

Matteo Medda

unread,
Nov 17, 2021, 2:24:04 PM11/17/21
to AdWords API and Google Ads API Forum
Hi Josh,
just for clarity, will it be possible to reuse selectiveOptimization on all of our sub-accounts under our main agency?
or only on some of the sub-accounts where the error occurred?

Any accounts created later, but always under the agency, will have the option to use selectiveOptimization ?

I sent you the id of our agency privately.

Thanks,
Matteo

Matteo Medda

unread,
Nov 29, 2021, 3:07:02 AM11/29/21
to AdWords API and Google Ads API Forum
Hi,
do you have any news about the resolution for BatchJobs ?

Best regards,
Matteo

Google Ads API Forum Advisor

unread,
Nov 29, 2021, 10:16:11 AM11/29/21
to m.m...@doveconviene.com, adwor...@googlegroups.com
Hi Matteo,

The fix is just about done and I expect it to roll out in the next few days. I'll be sure to let you know as soon as that happens.

Best regards,

Matteo Medda

unread,
Nov 30, 2021, 7:09:41 AM11/30/21
to AdWords API and Google Ads API Forum
Hi Josh,
ok, we look forward to hearing from you.

Thx,
Matteo

Google Ads API Forum Advisor

unread,
Dec 6, 2021, 1:20:12 PM12/6/21
to m.m...@doveconviene.com, adwor...@googlegroups.com
Hi Matteo,

The fix has been deployed to both the AdWords API and the Google Ads API, so you should be able to use batch jobs to create selective optimization campaigns, provided the customer is in the list I mentioned previously.

Thanks,
Reply all
Reply to author
Forward
0 new messages