Hi Mat,

Thank you for reaching out. The INVALID_VALUE error occurs if you try to
fit an incorrect value into a field. As per the documentation,
cpc_bid_micros
<https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v1.resources#adgroupcriterion> should
be an Int64Value
<https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Int64Value>.
Upon checking the examples you provided, it seems like you are not passing
an Int64Value into cpc_bid_micros. This being said, can you try passing an
Int64Value and retry your request? Feel free to write back if the error
persists

Regards,
Dave
Google Ads API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

On 05/17/19 21:30:44 m...@keyword-experte.de wrote:

Hi,

how can we remove a cpcBid from a keyword (or any
other ad_group_criterion), to make the adGroup cpcBid the source of the
cpcBid, using the Google Ads API with the Python library?

In the legacy AdWords API, we used to set the criterion cpcBid = 0, but
this does not seem to work anymore.

Based on this example
<https://developers.google.com/google-ads/api/docs/samples/update-keyword#python>,
I've tried several approaches, but none ot them worked:

ad_group_criterion.cpc_bid_micros.value = 0:

errors {
  error_code {
    field_error: INVALID_VALUE
  }
  message: "The field\'s value is invalid."
  trigger {
    int64_value: 0
  }
  location {
    field_path_elements {
      field_name: "operations"
      index {
        value: 12
      }
    }
    field_path_elements {
      field_name: "update"
    }
    field_path_elements {
      field_name: "cpc_bid_micros"
    }
  }
}



ad_group_criterion.cpc_bid_micros.value = int():

errors {
  error_code {
    field_error: INVALID_VALUE
  }
  message: "The field\'s value is invalid."
  trigger {
    int64_value: 0
  }
  location {
    field_path_elements {
      field_name: "operations"
      index {
        value: 12
      }
    }
    field_path_elements {
      field_name: "update"
    }
    field_path_elements {
      field_name: "cpc_bid_micros"
    }
  }
}


ad_group_criterion.cpc_bid_micros.value = None:

TypeError: None has type NoneType, but expected one of: int, long


Can you help me?

Regards
Mat

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/0aedf22e-c5ab-40c1-be59-7a1d22f7a102%40googlegroups.com
<https://groups.google.com/d/msgid/adwords-api/0aedf22e-c5ab-40c1-be59-7a1d22f7a102%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/1btflug000000000o3d08e000etio0z74mjce1l6so30c1g68r3acpl%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
  • Google ... Mat
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
    • RE... Google Ads API Forum Advisor Prod
    • RE... Google Ads API Forum Advisor Prod

Reply via email to