Unstable performance in response during creating PMax Assets

53 views
Skip to first unread message

Yi Song Jiang

unread,
Aug 30, 2023, 4:35:21 AM8/30/23
to Google Ads API and AdWords API Forum
Hi,

I met an issue during creating a set of Assets in Performance Max (For Travelling Goal) using GoogleAds Java API v14.
Here is the MutateOperation I used for creating an Asset:
MutateOperation.newBuilder()
 .setAssetOperation(
   AssetOperation.newBuilder()
     .setCreate(
        Asset.newBuilder()
          .setName(pmaxHotelAssetModel.getUuid().toString())
          .setTextAsset(
            TextAsset.newBuilder()
              .setText(pmaxHotelAssetModel.getContent())
        .build())))
.build()

I have set name of each the Asset Object, I use the following code for batch uploading to Google Ads Channel:
MutateGoogleAdsResponse response =
  googleAdsServiceClient.mutate(
    MutateGoogleAdsRequest.newBuilder()
      .setCustomerId(customerId.toString())
      .addAllMutateOperations(operationList
)
      .setResponseContentType(ResponseContentType.MUTABLE_RESOURCE)
    .build());


But the response list I got will have unstable behavior on 
mutateOperationResponse.getAssetResult().getAsset().getName()
, that, some will have empty value "", some will have configured asset name, as input in first block of code. All the cases are successfully uploaded with valid resourceName.

Anyone has idea why this happend and is there a method to avoid the cases?

In addition, the assetName are String value from "1", "2", "3", .... "32" without duplication. Assets that miss asset names contain "3" and  "11"

Google Ads API Forum Advisor

unread,
Aug 30, 2023, 8:35:07 AM8/30/23
to jay....@derbysoft.net, adwor...@googlegroups.com

Hello,

Greetings from the Google Ads API Team.

I understand that you are having issues when creating your PMax campaign via Java client library using the v14 API. Can you please provide us with the complete logs(request and response with request ID) generated on your end so we can investigate further and provide precise recommendations?

If you are using a Client Library and haven't enabled logging yet, it can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation(via this link https://developers.google.com/google-ads/api/docs/best-practices/logging#client_library_logging), which you can access from this link. For REST interface requests, you can enable logging via the curl command by using the -i flag.

You can provide it via Reply privately to the author option. If this option is not available, then send it instead on this email address googleadsa...@google.com

If it helps you may also refer to our API documentation for creating PMax campaigns via this link: https://developers.google.com/google-ads/api/docs/performance-max/create-campaign

This message is in relation to case "ref:_00D1U1174p._5004Q2o9PBz:ref"

Thanks,
 
Google Logo Google Ads API Team


Yi Song Jiang

unread,
Aug 30, 2023, 10:06:50 PM8/30/23
to Google Ads API and AdWords API Forum
Hi,

Thanks for reply. Sorry about my inaccurate statement on that behavior. I found that actually, those assets are the ones created before. So that when I am trying to create a new asset with same content, they return me the response with same resourceName every time I try the API.

And now I want to remove the assets I created by resourceName. If there is a method or code example?

Btw, may I confirm that if there is a documented reference for the behaviors I described above, that the Asset with same content won't be created but return the existing target?

Thanks & Best Regards,
Yisong

Google Ads API Forum Advisor

unread,
Aug 31, 2023, 6:50:29 AM8/31/23
to jay....@derbysoft.net, adwor...@googlegroups.com

Hi Yisong,

Thanks for getting back to us.

Can you confirm if you are referring to removing Assets within a Performance Max campaign? Unfortunately, we do not have a code example on how to remove assets within a Performance Max campaign. However, you may try using AssetGroupAssetService and setting the AssetGroupAssetOperation remove operation.

Btw, may I confirm that if there is a documented reference for the behaviors I described above, that the Asset with the same content won't be created but return the existing target?
>>In order for us to investigate further and provide guidance, can you provide us with the complete API logs (request and response with request-id and request header) generated on your end when the response you mentioned is returned? This is so we can check on our end as well and provide more appropriate guidance accordingly. You can provide it via the Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.

Let us know how it goes.
 

Reply all
Reply to author
Forward
0 new messages