Hi Anthony.

Thanks for your answer.

When i try to create the group i get the following

[2020-03-16 14:45:16] google-ads.WARNING: Request made: Host: 
"googleads.googleapis.com", Method: 
"/google.ads.googleads.v2.services.AdGroupService/MutateAdGroups", 
ClientCustomerId: [customer_id], RequestId: "LBZObh-LWizCoQ_XKH5axQ", 
IsFault: 1, FaultMessage: "["The supplied TargetingSetting contains an 
invalid CriterionTypeGroup. See CriterionTypeGroup documentation for 
CriterionTypeGroups allowed in Campaign or AdGroup TargetingSettings."]"  
[2020-03-16 14:45:16] google-ads.NOTICE: Request
-------
Method Name: /google.ads.googleads.v2.services.AdGroupService/MutateAdGroups
Host: googleads.googleapis.com
Headers: {
    "x-goog-api-client": "gl-php\/7.1.33-13+0~20200224.34+debian9~1.gbp2471e1 
gapic\/ gax\/1.3.0 grpc\/1.27.0",
    "x-goog-request-params": "customer_id=[customer_id]",
    "developer-token": "REDACTED",
    "login-customer-id": "[login_customer_id]"
}
Request: {"customerId":"[customer_id]","operations":[{"create":{"name":"group 
text0.01890000 1584369913","status":"PAUSED","type":"SEARCH_STANDARD",
"campaign":"customers\/[customer_id]\/campaigns\/[campaign_id]",
"targetingSetting":{"targetRestrictions":[{"targetingDimension":"KEYWORD",
"bidOnly":true},{"targetingDimension":"AUDIENCE","bidOnly":true}]}}}]}

Response
-------
Headers: {
    "request-id": "LBZObh-LWizCoQ_XKH5axQ",
    "date": "Mon, 16 Mar 2020 14:45:16 GMT",
    "alt-svc": "quic=\":443\"; ma=2592000; v=\"46,43\",h3-Q050=\":443\"; 
ma=2592000,h3-Q049=\":443\"; ma=2592000,h3-Q048=\":443\"; 
ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000"
}

Fault
-------
Status code: 3
Details: Request contains an invalid argument.
Failure: {"errors":[{"errorCode":{"settingError":
"TARGETING_SETTING_CONTAINS_INVALID_CRITERION_TYPE_GROUP"},"message":"The 
supplied TargetingSetting contains an invalid CriterionTypeGroup. See 
CriterionTypeGroup documentation for CriterionTypeGroups allowed in 
Campaign or AdGroup TargetingSettings.","trigger":{"stringValue":"KEYWORD"},
"location":{"fieldPathElements":[{"fieldName":"operations","index":"0"},{
"fieldName":"create"},{"fieldName":"targeting_setting"}]}}]}

I tried to use the example from this link 
<https://developers.google.com/adwords/api/docs/guides/remarketing#targeting_settings_for_remarketing>,
 
but it doesn't work because I use the new google ads api.

Please, could you give me some example of use with the new api?

Thanks for your help

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ffb410a9-9710-4a5f-9f6e-f7b021435153%40googlegroups.com.

Reply via email to