how to use enablePartialFailure or enableWarnings in uploadUserData

73 views
Skip to first unread message

yassine zayane

unread,
Mar 16, 2023, 11:22:35 AM3/16/23
to Google Ads API and AdWords API Forum

Hello Google Ads team,

I  am trying to  use uploadUserData https://developers.google.com/google-ads/api/rest/reference/rest/v12/customers/uploadUserData?hl=fr


When i use this request . Everything is fine


Capture d’écran du 2023-03-16 16-00-50.jpg


But when I add enablePartialFailure or enableWarnings, I got the following error

Is there no way to verify if my request (payload) in operations is correct?

Capture d’écran du 2023-03-16 16-05-20.jpg

{

"error": {

"code": 400,

"message": "Invalid JSON payload received. Unknown name \"enableWarnings\": Cannot find field.",

"status": "INVALID_ARGUMENT",

"details": [

{

"@type": "type.googleapis.com/google.rpc.BadRequest",

"fieldViolations": [

{

"description": "Invalid JSON payload received. Unknown name \"enableWarnings\": Cannot find field."

}

]

}

]

}

}


Other questions :

In some cases I send partial parameters into addressInfo

for example :

all fields except the firstName Or i have only information postalCode


Question : I can send this request in payload ? Or I exclude addressInfo section

Example : 

    "customerMatchUserListMetadata": { 

        "userList": "customers/XXXXXXX/userLists/XXXXXXXX" 

    }, 

    "operations": [ 

        { 

            "create": { 

                "userIdentifiers": [ 

                    { 

                        "hashedEmail": "e233d4a29013e9d87150c6237c6777bedf379ebf1acdc5d6126fec7e8bb74fb5" 

                    }, 

                    { 

                        "addressInfo": { 

                            "postalCode": "10011" 

                        } 

                    } 

                ] 

            } 

        } 

    ] 

} 


Thx, 

Google Ads API Forum Advisor

unread,
Mar 16, 2023, 6:13:14 PM3/16/23
to yassine...@gmail.com, adwor...@googlegroups.com

Hello,

Thank you for reaching out to Google Ads API Support.

With regards to your concern, you are getting an error when adding enablePartialFailure or enableWarnings because the request method you are using does not support these fields as referred in this documentation. Please see responses below for each question.

"Is there no way to verify if my request (payload) in operations is correct?"

--> You need to use query explorer that can be seen on the right side of this page to verify your payload.

"I can send this request in payload ? Or I exclude addressInfo section"

--> Note that your request does impacts on the Matching process. If user has firstName and address then you may specify both.

Please let us know if you have additional questions.

 

Regards,

Google Logo Google Ads API Team


ref:_00D1U1174p._5004Q2jzgSi:ref

yassine zayane

unread,
Mar 16, 2023, 6:28:57 PM3/16/23
to Google Ads API Forum Advisor, adwor...@googlegroups.com
Hello Google Ads team,
Thank you for your quick response 

About the last question . it is clear but if I don't have the firstName info I can send only postalCode like this

{ 

 "addressInfo": { 

  "postalCode": "10011" 

   } 

   } 


Thx

--
zayane yassine
Tél :  0662151260
about.me/yassine.zayane

yassine zayane

unread,
Mar 16, 2023, 6:29:12 PM3/16/23
to Google Ads API and AdWords API Forum
Hello Google Ads team,
Thank you for your quick response 

About the last question . it is clear but if I don't have the firstName info I can send only postalCode like this

{ 

 "addressInfo": { 

  "postalCode": "10011" 

   } 

   } 


Thx


Google Ads API Forum Advisor

unread,
Mar 17, 2023, 6:16:58 AM3/17/23
to yassine...@gmail.com, adwor...@googlegroups.com
Hi Yassine,

Thank you for getting back to us.

Yes it is fine because it is not mentioned in this document that all of the fields should be filled out for the address info. In addition, I tried it also on my end and it works.

Kind regards,
Reply all
Reply to author
Forward
0 new messages