target_cpa_micros seems to be required?

23 views
Skip to first unread message

Vee D.

unread,
Jan 11, 2021, 9:16:29 PM1/11/21
to AdWords API and Google Ads API Forum
Hello.

I'm trying to duplicate two Google Ads campaigns through the Google Ads API (using google-ads-ruby), but the gRPC server returns me the following error (output by my code):

Google Ads Error:
Error #1: The field's value is invalid.
Location: mutate_operations.ad_group_operation.create.target_cpa_micros
Value: {:boolean_value=>false, :int64_value=>0, :float_value=>0.0, :double_value=>0.0, :string_value=>""}
Error #2: The field's value is invalid.
Location: mutate_operations.ad_group_operation.create.target_cpa_micros
Value: {:boolean_value=>false, :int64_value=>0, :float_value=>0.0, :double_value=>0.0, :string_value=>""}

It is worth mentioning the ad group objects in question are being fetched from Google Ads directly.
If target_cpa_micros is set to a value, everything then works, but since cpc_bid_micros and cpm_bid_micros are already set, also setting target_cpa_micros may produce a completely separate outcome, which I'm trying to avoid.

The Ruby framework is fairly buggy, but this error is being returned from the gRPC server.
Would you be able to point me in the right direction here?

Thanks!


Google Ads API Forum Advisor Prod

unread,
Jan 12, 2021, 2:05:05 AM1/12/21
to vit...@outlook.com, adwor...@googlegroups.com
Hi,

Thanks for posting your concern.

To take a closer look at the issue, could you provide instead the complete API request and response logs with request ID, generated on your end, where we can see the issue?

If you haven't enabled the logging of API transactions for Ruby client library, then you may follow this guide.

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


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