Create campaign error

129 views
Skip to first unread message

娜娜

unread,
Nov 1, 2021, 12:15:17 PM11/1/21
to AdWords API and Google Ads API Forum
hello

When I create a campaign, I set the campaign_actions error

This operation was OK a few days ago


Error Message:
The error code is not in this version.


Request Id:
GeKemt8DFkDM9QKmMTaiKA

Google Ads API Forum Advisor

unread,
Nov 1, 2021, 5:16:50 PM11/1/21
to h5nan...@gmail.com, adwor...@googlegroups.com

Hello,

 

Thanks for reaching out to the Google Ads API support team. 

 

To investigate the issue further, could you please provide us with the complete request and response logs. Please send the requested details via the Reply privately to the author option.



Best regards,
Google Logo
Jakeia Sabrina
Google Ads API Team
 

ref:_00D1U1174p._5004Q2QGtpw:ref

娜娜

unread,
Nov 2, 2021, 3:23:53 AM11/2/21
to AdWords API and Google Ads API Forum
I have privately replied to the complete request and response information, and hope to get a reply as soon as possible. Thank you in advance

Google Ads API Forum Advisor

unread,
Nov 2, 2021, 10:33:14 AM11/2/21
to h5nan...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for providing the requested details privately.

Allow me to discuss the issue to my team to have deeper analysis here. Rest assured that we will provide updates when become available.

Regards,
Google Logo
Ernie John Blanca Tacata
Google Ads API Team
 


ref:_00D1U1174p._5004Q2QGtpw:ref

Google Ads API Forum Advisor

unread,
Nov 2, 2021, 9:51:40 PM11/2/21
to adwor...@googlegroups.com, h5nan...@gmail.com
Greetings!

It appears that you are setting selective optimization on a Display campaign. This was never documented as being supported. Setting selective optimization was meant for app-based campaigns. There was a recent upgrade in your Google Ads account that caused the API to recognize this unexpected request and reject the request since it was not formally supported in the first place.

I'm currently chatting with my fellow engineers to see what the next steps are for possibly turning selective optimization on for Search and Display campaigns even if it was not formally supported before. I'll keep you posted. 

Cheers,
Nadine Wang, Google Ads API Team

 

ref:_00D1U1174p._5004Q2QGtpw:ref

娜娜

unread,
Nov 3, 2021, 2:45:38 AM11/3/21
to AdWords API and Google Ads API Forum
Hi Nadine,
Thanks for reply.
If there is any possibility to change our optimization on a display campaign by uploading a doc. caused the API is not supported now.

Google Ads API Forum Advisor

unread,
Nov 3, 2021, 3:00:48 PM11/3/21
to h5nan...@gmail.com, adwor...@googlegroups.com
Hello,

While I'm working on trying to figure out if we can turn that on in the API, you should be able to set that value in the Google Ads UI.

Cheers,
Nadine, Google Ads API Team

ref:_00D1U1174p._5004Q2QGtpw:ref

Google Ads API Forum Advisor

unread,
Nov 3, 2021, 10:40:35 PM11/3/21
to adwor...@googlegroups.com, h5nan...@gmail.com
Hello,

I wanted to give an update. As of today, there is now a way to set conversion goals 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.

Best,
 
Google Logo
Nadine Wang
Google Ads API Team
 
Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 2021 Google Ads API and AdWords API Annual Survey

ref:_00D1U1174p._5004Q2QGtpw:ref

娜娜

unread,
Nov 15, 2021, 12:45:16 PM11/15/21
to AdWords API and Google Ads API Forum
hello

I have upgraded the google ads api to V9, but I still don’t know how to set the conversion goal of the campaign. Are there any relevant examples? Thank you very much!

The screenshot was used for my test, but it seems to be incorrect

20211115204227.png

Google Ads API Forum Advisor

unread,
Nov 16, 2021, 2:03:51 AM11/16/21
to h5nan...@gmail.com, adwor...@googlegroups.com
Hi,

To update the custom conversion goal, you'll want to send a request like the following example, with your customer, campaign, and custom goal IDs substituted.
{
operations': [
  {
    'update': {
      'resourceName': 'customers/YOUR_CUSTOMER_ID/conversionGoalCampaignConfigs/YOUR_CAMPAIGN_ID',
      'custom_conversion_goal': 'customers/YOUR_CUSTOMER_ID/customConversionGoals/YOUR_CUSTOM_CONVERSION_GOAL_ID'
    },
    'updateMask': 'custom_conversion_goal'
  }
],
}
Note that you'll want to include the updateMask as shown above to indicate to the API that your intention is to update the custom_conversion_goal field.

If you previously encountered an IMMUTABLE_FIELD error with the message "Field 'custom_conversion_goal' cannot be modified by 'UPDATE' operation", please try your request again. That error was due to an issue with the API that has since been fixed.

Cheers,
Josh, Google Ads API Team

ref:_00D1U1174p._5004Q2QGtpw:ref
Reply all
Reply to author
Forward
0 new messages