I've added 2 userIdentifiers objects, now I'm seeing 400 error with message: Invalid JSON payload received. Expected a value.\n true\r\n}\n^ and status: INVALID_ARGUMENT. Can you please tell me what I'm doing wrong here? { "validateOnly": true, "operations": [ { "create": { "consent": { "adPersonalization": "GRANTED", "adUserData": "GRANTED" }, "userIdentifiers": [ { "hashedEmail": "" }, { "hashedPhoneNumber": "" } ] } } ], "enablePartialFailure": true, "enableWarnings": true }
On Monday, December 23, 2024 at 6:03:30 PM UTC+5:30 Google Ads API Forum Advisor wrote: > Hi, > > Thank you for reaching out to the Google Ads API support team. > > In the Google Ads API, the "user_identifier" field can only > contain one user identification field, like a hashed email, hashed phone > number, or mobile ID. Providing multiple identification fields within the > "user_identifier" will result in an invalid entry. If you > have more than one UserIdentifier > <https://developers.google.com/google-ads/api/reference/rpc/v18/UserIdentifier#:~:text=identifier.%20Exactly%20one,of%20the%20following%3A> > for > the userlist. Add a separate UserIdentifier > <https://developers.google.com/google-ads/api/reference/rpc/v18/UserIdentifier#:~:text=identifier.%20Exactly%20one,of%20the%20following%3A> > object > for each identifier. For example, a record with an email address and a > phone number results in a UserData object with two UserIdentifier objects. > I would recommend you to check the documentation Design your integration > <https://developers.google.com/google-ads/api/docs/remarketing/audience-segments/customer-match/get-started#design-integration> > for > more information. > > This message is in relation to case > "ref:!00D1U01174p.!5004Q02vGqD4:ref" (ADR-00279600) > > Thanks, > > [image: Google Logo] Google Ads API Team > Feedback > How was our support today? > > [image: rating1] > <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=1&entry.295079254=5004Q00002vGqD4> > > [image: rating2] > <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=2&entry.295079254=5004Q00002vGqD4> > > [image: rating3] > <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=3&entry.295079254=5004Q00002vGqD4> > > [image: rating4] > <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/formResponse?usp=pp_url&entry.141427034=4&entry.295079254=5004Q00002vGqD4> > > [image: rating5] > <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/formResponse?usp=pp_url&entry.141427034=5&entry.295079254=5004Q00002vGqD4> > > > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 visit https://groups.google.com/d/msgid/adwords-api/fbffe431-327f-4287-b66e-caf47bebd398n%40googlegroups.com.