clearTrackingTemplate() Method invalid

39 views
Skip to first unread message

keji dianfei

unread,
Mar 27, 2023, 6:29:23 AM3/27/23
to Google Ads API and AdWords API Forum
Hi, I'm trying to use the clearTrackingTemplate() method to fix the clearTrackingTemplate for the AD series, but it doesn't work.  the return value is the Updated campaign with resourceName: customers / 5883563550 / campaigns / 19576428380.
Looking forward to your answer

Google Ads API Forum Advisor

unread,
Mar 27, 2023, 10:44:49 AM3/27/23
to dianf...@gmail.com, adwor...@googlegroups.com

Hi Keji,

Thanks for reaching out to the Google Ads API Forum. I hope you are doing well today.

I understand that you are having issue with clearTrackingTemplate() method to fix the clearTrackingTemplate for the AD series”, however, for our team to further compare, investigate, and validate why you are encountering issues, can you provide more information with regards to your concern or issues?
 

  • Provide the complete (request and response with request-id) logs with request ID generated as shown in the respective links.
  • Complete screenshots (without cropping) from the Google Ads UI, if possible.


If you haven't enabled logging yet, it can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link. For REST interface requests, you can enable logging via the curl command by using the -i flag. 

This will cause the tool to include the HTTP response headers in the output.

Have a great day.

Regards,

Google Logo Google Ads API Team


ref:_00D1U1174p._5004Q2kBsGU:ref

keji dianfei

unread,
Mar 27, 2023, 9:10:14 PM3/27/23
to Google Ads API and AdWords API Forum
Hello, thanks for your answer. The following is my log, hope it can help you
2023-03-28 08:18:00.106 INFO 10228 --- [ault-executor-0] c.g.ads.googleads.lib.request.summary : SUCCESS REQUEST SUMMARY. Method: google.ads.googleads.v11.services.GoogleAdsService /SearchStream, Endpoint: googleads.googleapis.com:443, CustomerID: 5883563550, RequestID: w7-teMFokCeOvoqCsJN3Wg, ResponseCode: OK, Fault: null.
2023-03-28 08:18:00.589 INFO 10228 --- [ault-executor-0] c.g.ads.googleads.lib.request.summary : SUCCESS REQUEST SUMMARY. Method: google.ads.googleads.v11.services.CampaignService /MutateCampaigns, Endpoint: googleads.googleapis.com:443, CustomerID: 5883563550, RequestID: n_IIphIZf855Q-RR549_eQ, ResponseCode: OK, Fault: null.
Updated campaign with resourceName: customers/5883563550/campaigns/19576428380.
Below is my request:
// Creates a Campaign object with the proper resource name and any other changes.
             Campaign campaign =
                     Campaign. newBuilder()
                             .setResourceName(ResourceNames.campaign(customerId, campaignId))
                             .setStatus(CampaignStatusEnum.CampaignStatus.PAUSED)
                             .clearTrackingUrlTemplate()
                             .build();
             // Constructs an operation that will update the campaign, using the FieldMasks utility to
             // derive the update mask. This mask tells the Google Ads API which attributes of the
             // campaign you want to change.
             CampaignOperation operation =
                     CampaignOperation. newBuilder()
                             .setUpdate(campaign)
                             .setUpdateMask(FieldMasks.allSetFieldsOf(campaign))
                             .build();
             // Sends the operation in a mutate request.
             MutateCampaignsResponse response =
                     campaignServiceClient.mutateCampaigns(
                             customerId.toString(), Collections.singletonList(operation));

keji dianfei

unread,
Mar 27, 2023, 9:11:19 PM3/27/23
to Google Ads API and AdWords API Forum
I expect to be able to use this method to clear the campaign's tracking template

在2023年3月27日星期一 UTC+8 22:44:49<Google Ads API Forum Advisor> 写道:

Google Ads API Forum Advisor

unread,
Mar 28, 2023, 4:07:56 AM3/28/23
to dianf...@gmail.com, adwor...@googlegroups.com

Hi Keji,

Thank you for the reply.

Upon seeing your provided logs, I noticed that this was not enough. I can see that you provided some, but I’m afraid that these are not the API logs we are looking for. That said, could you please provide the complete API logs (request and response with request-id) generated on your end in debug level (text format) so our team can identify the exact issue and provide possible recommendations?

 For you to provide the complete API logs, note that this can be requested or provided to the developer handling the Google Ads API transactions when logging of the API requests has been enabled. If it hasn't been enabled yet, then refer to the specific client library guide below:

You may then send the requested information via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

Best regards,

Reply all
Reply to author
Forward
0 new messages