Hi Anthony,
Thank you for the information.
During my research , I found the following thread from the forum
https://groups.google.com/forum/#!search/customIntentId|sort:date/adwords-api/_sEkj5vYIMs/v4PJeob_DAAJ
and
tried it out.
I was able to successfully add the custom audiences data into the Add
manger(please find the attached screenshot).But while trying to link it to
the ad-group, it failed with "EntityNotFound.INVALID_ID" error.
Below is the data being passed to CustomAffinityService
let custom_intent_obj = {
'xsi:type' : 'CustomAffinity',
name : custom_audience.name,
CustomAffinityType : 'CUSTOM_INTENT'
}
Below is the data being passed to criterion creation of the custom audience
using the id returned from the CustomAffinityService.
criterion = {
'xsi:type' : 'CriterionCustomIntent',
customIntentId : parseInt(custom_intent.entries[0].id)
}
Below is the soap error.
'<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><ResponseHeader
xmlns="https://adwords.google.com/api/adwords/cm/v201809"><requestId>00059493ca5368e50a37a0c81c086208</requestId><serviceName>AdGroupCriterionService</serviceName><methodName>mutate</methodName><operations>64</operations><responseTime>219</responseTime></ResponseHeader></soap:Header><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>[EntityNotFound.INVALID_ID
@ operations[59].operand.criterion.customIntentId; trigger:\'54487943\',
EntityNotFound.INVALID_ID @
operations[60].operand.criterion.customIntentId; trigger:\'54948595\',
EntityNotFound.INVALID_ID @
operations[61].operand.criterion.customIntentId; trigger:\'54487358\',
EntityNotFound.INVALID_ID @
operations[62].operand.criterion.customIntentId; trigger:\'54513110\',
EntityNotFound.INVALID_ID @
operations[63].operand.criterion.customIntentId;
trigger:\'54487418\']</faultstring><detail><ApiExceptionFault xmlns="
https://adwords.google.com/api/adwords/cm/v201809"><message>[EntityNotFound.INVALID_ID
@ operations[59].operand.criterion.customIntentId; trigger:\'54487943\',
EntityNotFound.INVALID_ID @
operations[60].operand.criterion.customIntentId; trigger:\'54948595\',
EntityNotFound.INVALID_ID @
operations[61].operand.criterion.customIntentId; trigger:\'54487358\',
EntityNotFound.INVALID_ID @
operations[62].operand.criterion.customIntentId; trigger:\'54513110\',
EntityNotFound.INVALID_ID @
operations[63].operand.criterion.customIntentId;
trigger:\'54487418\']</message><ApplicationException.Type>ApiException</ApplicationException.Type><errors
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="EntityNotFound"><fieldPath>operations[59].operand.criterion.customIntentId</fieldPath><fieldPathElements><field>operations</field><index>59</index></fieldPathElements><fieldPathElements><field>operand</field></fieldPathElements><fieldPathElements><field>criterion</field></fieldPathElements><fieldPathElements><field>customIntentId</field></fieldPathElements><trigger>54487943</trigger><errorString>EntityNotFound.INVALID_ID</errorString><ApiError.Type>EntityNotFound</ApiError.Type><reason>INVALID_ID</reason></errors><errors
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="EntityNotFound"><fieldPath>operations[60].operand.criterion.customIntentId</fieldPath><fieldPathElements><field>operations</field><index>60</index></fieldPathElements><fieldPathElements><field>operand</field></fieldPathElements><fieldPathElements><field>criterion</field></fieldPathElements><fieldPathElements><field>customIntentId</field></fieldPathElements><trigger>54948595</trigger><errorString>EntityNotFound.INVALID_ID</errorString><ApiError.Type>EntityNotFound</ApiError.Type><reason>INVALID_ID</reason></errors><errors
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="EntityNotFound"><fieldPath>operations[61].operand.criterion.customIntentId</fieldPath><fieldPathElements><field>operations</field><index>61</index></fieldPathElements><fieldPathElements><field>operand</field></fieldPathElements><fieldPathElements><field>criterion</field></fieldPathElements><fieldPathElements><field>customIntentId</field></fieldPathElements><trigger>54487358</trigger><errorString>EntityNotFound.INVALID_ID</errorString><ApiError.Type>EntityNotFound</ApiError.Type><reason>INVALID_ID</reason></errors><errors
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="EntityNotFound"><fieldPath>operations[62].operand.criterion.customIntentId</fieldPath><fieldPathElements><field>operations</field><index>62</index></fieldPathElements><fieldPathElements><field>operand</field></fieldPathElements><fieldPathElements><field>criterion</field></fieldPathElements><fieldPathElements><field>customIntentId</field></fieldPathElements><trigger>54513110</trigger><errorString>EntityNotFound.INVALID_ID</errorString><ApiError.Type>EntityNotFound</ApiError.Type><reason>INVALID_ID</reason></errors><errors
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="EntityNotFound"><fieldPath>operations[63].operand.criterion.customIntentId</fieldPath><fieldPathElements><field>operations</field><index>63</index></fieldPathElements><fieldPathElements><field>operand</field></fieldPathElements><fieldPathElements><field>criterion</field></fieldPathElements><fieldPathElements><field>customIntentId</field></fieldPathElements><trigger>54487418</trigger><errorString>EntityNotFound.INVALID_ID</errorString><ApiError.Type>EntityNotFound</ApiError.Type><reason>INVALID_ID</reason></errors></ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>'
}
could you please let me know what is the issue here?.
Also , If the above used method is invalid, could you please let me know
what userlist type I have to use to create the custom audience.
There are LOGICAL,EXTERNAL_REMARKETING,RULE_BASED, SIMILAR and CRM_BASED
,BASIC types.
Regards,
Kavitha
On Thursday, October 10, 2019 at 2:04:00 PM UTC-4, adsapiforumadvisor wrote:
>
> Hi Kavitha,
>
> In order to create the custom intent audience, you must first create a
> custom user list using AdWordUserListService
> <https://developers.google.com/adwords/api/docs/reference/v201809/AdwordsUserListService>.
>
> The name that you give the user list will be the text that shows up in the
> field that you were asking about. Also, the ID you pass will be the ID of
> the custom user list you created. The UI equivalent is going to Tools &
> Settings -> Audience Manager if you would like to try it out in the UI
> first (the ID to pass to the criterion will be the list ID).
>
> Regards,
> Anthony
> Google Ads API Team
>
>
> ref:_00D1U1174p._5001UKMjKs:ref
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/3de62dd6-2996-4d1a-9f7f-814df99bb005%40googlegroups.com.