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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
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.
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