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
![]() |
Google Ads API Team |
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.