Hello! I'm trying to setup an automated asset uploader via the API, however I'm getting stuck at the same error:
*Environment* - Integration tool: n8n (HTTP Request node) - API: Google Ads API *v21* (REST) - Endpoint: POST https://googleads.googleapis.com/v21/customers/{CUSTOMER_ID}/assets:mutate - Auth: OAuth2 (scope https://www.googleapis.com/auth/adwords) - Headers: - developer-token: <DEV_TOKEN> - login-customer-id: <MCC_ID> (when applicable) - Customer/MCC IDs sent *without dashes* *What I’m doing* - I download an image from Google Drive in n8n (binary). - I send the image to AssetService as *base64-encoded bytes in JSON*: { "operations": [ { "create": { "name": "Marketing Image", "type": "IMAGE", "imageAsset": { "data": "{{ $json.image_b64 }}"} } } ] } - Same payload structure as the client library sample (which uses ImageAsset.data bytes), but via REST/JSON. *Result* - The request fails with *HTTP 413 – Request Entity Too Large*. - HTML response from Google front end (GFE) with the standard 413 page. - The file I'm testing with is a 1200x1200 image with a 1MB Size I would appreciate some help on what I'm doing wrong, or what I didn't take into consideration :) Thank you, Marcell -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 "Google Ads API and AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/adwords-api/0b5d9123-9486-4399-abae-cce765b80ff6n%40googlegroups.com.
