adding images failed when creating an adaptive ad AdgroupAd.

26 views
Skip to first unread message

余涛

unread,
May 6, 2024, 4:48:36 AM5/6/24
to Google Ads API and AdWords API Forum
Hello,
I encountered a problem where adding images failed when creating an adaptive ad AdgroupAd. The image meets the standard size and proportion. May I ask what caused the failure. Thank you in advance for your reply.
API logs:

2024-04-30 10:18:51.736|-|obd-ad-server|-|grpc-default-executor-2|-|WARN|-|com.google.ads.googleads.lib.request.summary:159|-||-||-|FAILURE REQUEST SUMMARY.
Method: google.ads.googleads.v16.services.AdGroupAdService/MutateAdGroupAds, Endpoint: googleads.googleapis.com:443,
CustomerID: 9533424793, RequestID: 2c0my-jZ1zphGvQicTKWsg, ResponseCode: INVALID_ARGUMENT, Fault: Request contains an invalid argument..
2024-04-30 10:18:51.736|-|obd-ad-server|-|grpc-nio-worker-ELG-4-4|-|DEBUG|-|io.grpc.netty.shaded.io.grpc.netty.NettyClientHandler:214|-||-||-|
[id: 0x05080e40, L:/10.86.111.69:51053 - R:googleads.googleapis.com/142.250.66.106:443] OUTBOUND PING: ack=true bytes=826

Request
-------
MethodName: google.ads.googleads.v16.services.AdGroupAdService/MutateAdGroupAds
Headers: {developer-token=REDACTED, x-goog-api-client=gl-java/1.8.0_201__Oracle-Corporation gccl/30.0.0 gapic/30.0.0 gax/2.45.0 grpc/1.55.1}
Body: [FAILED toString()]

Response
--------
Headers: Metadata(content-type=application/grpc,request-id=2c0my-jZ1zphGvQicTKWsg,date=Tue, 30 Apr 2024 02:18:51 GMT,alt-svc=h3=":443"; ma=2592000,h3-29=":443"; ma=2592000)
Body: null
Failure message: [FAILED toString()]
Status: Status{code=INVALID_ARGUMENT, description=Request contains an invalid argument., cause=null}.

Google Ads API Forum Advisor

unread,
May 6, 2024, 10:10:14 AM5/6/24
to jta...@foxmail.com, adwor...@googlegroups.com
Hi,

Based on the information provided, I understand that you have encountered INVALID_ARGUMENT error while creating an adaptive AdGroupAd using Google Ads API. Kindly note that error occurs when you have passed something wrong or invalid in your request body. Also, note that you have not shared the request body of what you are passing in your API request.

In order to investigate your issue further, kindly provide us with the complete API logs (request and response with request-id and request header) generated at your end.

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java.NetPHPPythonRuby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02tIswx:ref" (ADR-00233752)

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages