Hi John,
Thank you for reaching out to Google Ads API Forum. Please see responses to your questions below.
Which fields are basic and required to create a common and simple Ads?
Which endpoint is provided to set the specific Audience-Dimension(Age/Gender/Area/Interest etc).
Please let us know if you have further questions.
![]() |
Google Ads API Team |
Hi John,
For your first concern, I'm afraid that it would depend on your use-case as well as which type of campaign you're using. Kindly note that audience targeting is supported for performance max and discovery campaigns:
For creating an audience with audience segments, you would need to use the AudienceService <https://developers.google.com/google-ads/api/reference/rpc/v14/AudienceService> and specify your AudienceDimension <https://developers.google.com/google-ads/api/reference/rpc/v14/AudienceDimension> into AudienceSegmentDimension <https://developers.google.com/google-ads/api/reference/rpc/v14/AudienceSegmentDimension> with segments[] <https://developers.google.com/google-ads/api/reference/rpc/v14/AudienceSegment>.
Let us know if you have any clarifications.
Hi John,
Thank you for getting back to us.
It appears that you have encountered criterion errors. With regards to "INVALID_USER_INTEREST" error, please note that as stated in this guide (see UserInterestInfo), when retrieving UserInterest to set in UserInterestInfo, verify the availabilities[] 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", 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:
Hi John,
Thanks for getting back to us.
However, aside from the request-id, kindly note we will be needing the complete API logs (request and response with request-id and request header) in this format in order for us to check if there were any issues from your API request that caused the errors you encountered.
Reference links included in this email:
Hi,
Thank you for coming back to us and for providing additional information. I hope you are doing well today.
As mentioned before the error, FIELD_INCOMPATIBLE_WITH_NEGATIVE_TARGETING means 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 being said, please note that if the ‘negative’ field is set as ‘false’, we are creating positive / standard keywords. Refer to the KeywordsInfo section in the Campaign Criteria documentation, which states you can only exclude keywords at the campaign level.
Thus, the API request call worked and created a negative keyword when the negative field was set to ‘TRUE’ and you received an error when the negative field was set to ‘FALSE’. The field is not allowed to be set when the negative field is set to true, e.g. we don't allow bids in negative Adgroup or campaigns like what I said earlier. Let me know if you have further questions.
In your case, since you didn’t set any, kindly note that if you are using the gender or userlist it needs to explicitly set "negative" to true. With that, could you please try to add “negative”: “true” on your query, like shown below?
"operations": [
{
"create": {
"campaign": "customers/9115134537/campaigns/20532740378",
“negative”: “true”,
"bid_modifier": 1,
"gender": {
"type": "MALE"
}
}
}
]
}
Let us know how it goes on your end.
Have a great day.