Hi There! The *request-id *was *already provided* in my previous message. You can get it so easily if you read it carefully.
Best regards, John 在2023年8月25日星期五 UTC+8 18:13:00<Google Ads API Forum Advisor> 写道: > Hi John, > > Thank you for getting back to us. > > It appears that you have encountered criterion errors. With regards to > *"INVALID_USER_INTEREST" * > <https://developers.google.com/google-ads/api/reference/rpc/v14/CriterionErrorEnum.CriterionError#invalid_user_interest>error, > > please note that as stated in this *guide* > <https://developers.google.com/google-ads/api/docs/targeting/criteria?hl=en#campaign_criteria> > (see *UserInterestInfo*), when retrieving *UserInterest* > <https://developers.google.com/google-ads/api/reference/rpc/v14/UserInterest> > to > set in UserInterestInfo, verify the *availabilities[]* > <https://developers.google.com/google-ads/api/reference/rpc/v14/UserInterest?hl=en#availabilities%5B%5D> > are > compatible with the campaign type. Some UserInterest options are only > available for specific campaign types. With this, kindly consider this > recommendation before setting the USER_INTEREST. > > Additionally, regarding the *"FIELD_INCOMPATIBLE_WITH_NEGATIVE_TARGETING"* > <https://developers.google.com/google-ads/api/reference/rpc/v14/CriterionErrorEnum.CriterionError#field_incompatible_with_negative_targeting>, > > this error indicates that the field is not allowed to be set when the > negative field is set to true, for example, we don't allow bids in negative > ad group or campaign criteria. > > That said, could you provide us with the complete API logs *(**request* > * and **response** with **request-id **and **request header**) *generated > on your end? This is so we could further investigate and provide more > appropriate guidance. > > If you haven't enabled the logging yet, for REST interface requests, you > can enable logging via the curl command by using the -i flag. > > *Reference Links:* > > - *request* - > > *https://developers.google.com/google-ads/api/docs/concepts/field-service#request* > > > <https://developers.google.com/google-ads/api/docs/concepts/field-service#request> > > - *response* - > > *https://developers.google.com/google-ads/api/docs/concepts/field-service#response* > > > <https://developers.google.com/google-ads/api/docs/concepts/field-service#response> > > - *request ID* - > > *https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id* > > > <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id> > > - *request header* - > > *https://developers.google.com/google-ads/api/docs/concepts/call-structure#request_headers* > > > <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request_headers> > > > This message is in relation to case "ref:_00D1U1174p._5004Q2nquf7:ref" > > Thanks, > > [image: Google Logo] Google Ads API Team > > > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 "Google Ads API and AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/fb87ab4b-3978-440f-8720-9b918217ce2fn%40googlegroups.com.