googleads / googleads-java-lib

Google Ad Manager SOAP API Client Library for Java
Apache License 2.0
226 stars 360 forks source link

AddGmailAdd.java APIException #187

Closed jasperan closed 5 years ago

jasperan commented 5 years ago

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.

nwbirnie commented 5 years ago

Hey, since this isn't specific to the Java client, please ask on the forum where our support team will take a look shortly.

Best wishes, Nick