Unable to set maximize_converions bidding strategy

83 views
Skip to first unread message

Techsupport L2L

unread,
Aug 26, 2022, 12:35:59 PM8/26/22
to Google Ads API and AdWords API Forum
Hello,

I am trying to set maximize conversion as bidding strategy of campaign using PHP library  but it is throwing an exception 'UnexpectedValueException' with error message 'Invalid message property: maximize_converions'.

Please let me know how to fix this.

Thanks.
Message has been deleted

Google Ads API Forum Advisor

unread,
Aug 26, 2022, 12:48:02 PM8/26/22
to techs...@listingstoleads.com, adwor...@googlegroups.com
Hi there,

Thank you for reporting your error to us. Could you send us a 'DEBUG' log level request and response log of raw API communications that got this error?

The request and response appears similar to the JSON Mappings in our REST documentation with additional headers and information such as request Id. Here are logging instructions for our PHP Ads API Client Library.

You may send the requested information via "Reply to author" or via googleadsa...@google.com with a link to this forum post added to the new thread.

Regards,

Google Logo
Aryeh
Google Ads API Team
 


ref:_00D1U1174p._5004Q2do2qM:ref
Message has been deleted

Techsupport L2L

unread,
Aug 29, 2022, 12:18:09 PM8/29/22
to Google Ads API and AdWords API Forum
I've tried logging but it seems like error is occurring before executing request so I could not log request and response details.

Techsupport L2L

unread,
Aug 29, 2022, 12:33:27 PM8/29/22
to Google Ads API and AdWords API Forum
Here is what  I am getting in my laravel's log file in case if this can help.

"ERROR: Invalid message property: maximize_converions {"userId":197333,"exception":"[object] (UnexpectedValueException(code: 0): Invalid message property: maximize_converions at vendor/google/protobuf/src/Google/Protobuf/Internal/Message.php:1063)"

Google Ads API Forum Advisor

unread,
Aug 30, 2022, 1:28:35 AM8/30/22
to techs...@listingstoleads.com, adwor...@googlegroups.com

Hi,

Thank you for the reply. Allow me to assist you here.

Unfortunately, our team is unable to investigate further since complete request and response logs are needed for further investigation.

Also, Could you confirm that you followed the guidelines provided by my colleague Aryeh? if yes, could you please provide the complete request and response logs, with the request-id? Since you are using the Python client library, you may use this PHP client library logging guide so that a complete request and response will be generated on your end. Once you get the complete request and response logs, then you may send them to us so we can continue our investigation.

 

Best regards,

Google Logo
Anthony Cyril
Google Ads API Team
 


ref:_00D1U1174p._5004Q2do2qM:ref

Techsupport L2L

unread,
Aug 30, 2022, 1:50:37 AM8/30/22
to Google Ads API and AdWords API Forum
I've checked https://developers.google.com/google-ads/api/docs/client-libs/php/logging guide and add custom logger with my  GoogleAdsClientBuilder() but it's not logging anything. That I think is because error occurred before request execute.

If possible please provide example code for logging request and response.

Google Ads API Forum Advisor

unread,
Aug 30, 2022, 4:27:13 AM8/30/22
to techs...@listingstoleads.com, adwor...@googlegroups.com

Hello,

Thank you for the reply. It appears that this concern is more specific in the client library so we will recommend that you reach out to PHP client library owners via posting an issue on this github tracker as they are more equipped to provide guidance on this issue.


Best regards,

Reply all
Reply to author
Forward
0 new messages