AddGmailAdd.java APIException

14 views
Skip to first unread message

Ignacio Guillermo Martinez

unread,
Sep 17, 2019, 7:06:47 PM9/17/19
to AdWords API and Google Ads API Forum

Hello, I need to create a GmailAd. However, when modifying the code example in:


https://github.com/googleads/googleads-java-lib/blob/967957cc4f6076514e3a7926fe653e4f1f7cc9c9/examples/adwords_axis/src/main/java/adwords/axis/v201809/advancedoperations/AddGmailAd.java


Adding my own AdGroupId, I get the following exception:

Request failed due to ApiException. Underlying ApiErrors:
Error 0: NullError{apiErrorType=NullError, errorString=NullError.NULL_CONTENT, fieldPath=media[0].data, fieldPathElements=[FieldPathElement{field=media, index=0}, FieldPathElement{field=data}], reason=NULL_CONTENT, trigger=}


I have investigated about the NullError exception: https://developers.google.com/adwords/api/docs/reference/v201809/ReportDefinitionService.NullError

However the code example doesn't seem to have any issues (nothing seems to be null when printing it).


Appreciate any help at this point.

Google Ads API Forum Advisor Prod

unread,
Sep 17, 2019, 11:17:58 PM9/17/19
to adwor...@googlegroups.com
Hi Ignacio,

Thanks for reaching out to our support team.

So I can better assist you, could you provide a copy of your code and the complete SOAP request and response logs that were generated when the error occurred? If you haven't enabled SOAP logging yet, you can refer to this guide for the Java client library as to how.

You may then send the details using the Reply privately to author option.

Best regards,
Peter
Google Ads API Team

ref:_00D1U1174p._5001UHH8Fu:ref
Reply all
Reply to author
Forward
0 new messages