CallToActionTypeEnum missing

79 views
Skip to first unread message

Dang Duc Truong

unread,
Nov 13, 2023, 2:45:52 AM11/13/23
to Google Ads API and AdWords API Forum
Hello,
I'm using API v14 (google-ads-stubs-v14-26.0.0) and faced exception caused by missing enum constants of VISIT_SITE and WATCH_NOW. I went thru the docs and saw that these value are supported in google-ads-stubs-v14-27.0.0.

I tried to migrate to google-ads-stubs-v14-27.0.0 but there is another conflict where an imported class seems to be unsupported on the newer version:
com.google.ads.googleads.v12.common.ExplorerAutoOptimizerSetting

How can I have access to both VISIT_SITE and WATCH_NOW enum values of CallToActionTypeEnum and also be able to use ExplorerAutoOptimizerSetting class?

Thanks

Google Ads API Forum Advisor

unread,
Nov 15, 2023, 12:51:05 AM11/15/23
to truon...@knorex.com, adwor...@googlegroups.com
Hi Dan,

Thank you for reaching out to the Google Ads API support team.

Please find the response below for your query:

How can I have access to both VISIT_SITE and WATCH_NOW enum values of CallToActionTypeEnum and also be able to use the ExplorerAutoOptimizerSetting class?

To access both VISIT_SITE and WATCH_NOW enum values, you can either downgrade the version of the Google Ads API client library that you are using or use a different version of the library that includes both features.

Option 1: Downgrade the Google Ads API client library

You can downgrade the version of the Google Ads API client library that you are using to 14.26.0.0. This version of the library includes the ExplorerAutoOptimizerSetting class and does not require you to use the VISIT_SITE and WATCH_NOW enum values.

Option 2: Use a different version of the Google Ads API client library

You can use a different version of the Google Ads API client library that includes both the VISIT_SITE and WATCH_NOW enum values and the ExplorerAutoOptimizerSetting class. This version of the library is currently in development, but it is expected to be released soon.

I hope this helps. Kindly get back to us if you have any further queries.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02qBx9z:ref"

Thanks,
 
Google Logo Google Ads API Team


Dang Duc Truong

unread,
Nov 15, 2023, 3:00:03 AM11/15/23
to Google Ads API and AdWords API Forum
If I upgrade the API version to v15, would it solve my problem?

Google Ads API Forum Advisor

unread,
Nov 17, 2023, 3:27:46 PM11/17/23
to truon...@knorex.com, adwor...@googlegroups.com
Hi, 

Thank you for getting back to us.

Kindly note that, instead of using the deprecated ExplorerAutoOptimizerSetting class, which is deprecated in V12 itself, you can achieve the same functionality by utilizing the ad_group.optimized_targeting_enabled property from the  ad_group resource. This property allows you to enable optimized targeting settings, providing the equivalent service as the deprecated class.

I would recommend you check Deprecation and sunset to know more about deprecation and Sunset dates for each available version. Also, please check out Upgrade to the latest version documentation to upgrade and release notes of new features and updates that were introduced in the V15 Google Ads API.

If the issue persists, please provide the complete API logs (request and response with request-id and request header) generated at your end to better assist you.

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java.NetPHPPythonRuby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.



This message is in relation to case "ref:!00D1U01174p.!5004Q02qBx9z:ref"

Reply all
Reply to author
Forward
0 new messages