How to update tracking_url_template for AdGroupAd using new Google Ads API V1

66 views
Skip to first unread message

Sergei Kim

unread,
Mar 7, 2019, 12:56:36 PM3/7/19
to AdWords API and Google Ads API Forum

Dear Google Ads Team,

We would like to use JSON API but can't update fields.

POST https://googleads.googleapis.com/v1/customers/{customer_id}/googleAds:mutate/
Content-Type: application/json
Authorization: Bearer foo
developer-token: bar

{
"mutate_operations":
[
{
"ad_group_ad_operation": {
"update": {
"resource_name": "customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_group_ad_id}",
"ad": {
"tracking_url_template": "{lpurl}&foo=bar"
}
},
"update_mask": "ad.tracking_url_template"
}
}
]
}


But request failed

{
  "error": {
    "code": 400,
    "message": "Request contains an invalid argument.",
    "status": "INVALID_ARGUMENT",
    "details": [
      {
        "errors": [
          {
            "errorCode": {
              "requestError": "IMMUTABLE_FIELD"
            },
            "message": "Field 'ad.tracking_url_template' cannot be modified by 'UPDATE' operation.",
            "location": {
              "fieldPathElements": [
                {
                  "fieldName": "mutate_operations",
                  "index": "0"
                },
                {
                  "fieldName": "ad_group_ad_operation"
                },
                {
                  "fieldName": "update"
                },
                {
                  "fieldName": "ad"
                },
                {
                  "fieldName": "tracking_url_template"
                }
              ]
            }
          }
        ]
      }
    ]
  }
}

Thanks,
Sergei

googleadsapi...@google.com

unread,
Mar 7, 2019, 6:34:42 PM3/7/19
to AdWords API and Google Ads API Forum
Hello Sergei, 

I'm checking this internally with the team. We will get back to you with an update on this.

Thanks,
Bharani, Google Ads API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

googleadsapi...@google.com

unread,
Mar 8, 2019, 6:21:51 PM3/8/19
to AdWords API and Google Ads API Forum
Hello Sergei,

Regret the delay. It looks like you're mutating the ad within the ad_group_ad. AdGroup Ads are immutable and it is not yet supported through the Google Ads API. The equivalent for this service would be AdService.mutate() which is not yet supported through the Google Ads API. Please keep an eye on our blog for more updates.

Thanks,
Bharani, Google Ads API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey

Sergei Kim

unread,
Mar 11, 2019, 1:51:47 AM3/11/19
to AdWords API and Google Ads API Forum
Could you please provide any estimates on AdService availability?

googleadsapi...@google.com

unread,
Mar 11, 2019, 10:49:51 AM3/11/19
to AdWords API and Google Ads API Forum
Hello Sergei,

Currently, we will not be able to share a definite timeline on this. Please keep an eye on our blog for more updates.

Thanks,
Bharani, Google Ads API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Reply all
Reply to author
Forward
0 new messages