Hi all,

This question boils down to: "Are final urls of Image Ads mutable?"

According to this documentation it says that Image Ads are mutable 
: 
https://developers.google.com/google-ads/api/docs/ads/ad-types#description_of_each_ad_type

However here it says that ImageAdInfo is immutable 
: https://developers.google.com/google-ads/api/reference/rpc/v9/Ad

We're not attempting to mutate the data of the Image Ad, just the Final URL 
of the Ad.

Here is the full request and response with some customer sensitive data 
removed.

The request id is : bcB1aFU7Q_KMLaQZWRXmFQ

Request
-------
MethodName: google.ads.googleads.v9.services.AdService/MutateAds
Endpoint: googleads.googleapis.com:443
Headers: {developer-token=REDACTED, login-customer-id=ABC, 
x-goog-api-client=gl-java/11.0.13 gccl/16.0.2 gapic/16.0.2 gax/2.5.0 
grpc/1.40.1}
Body: customer_id: "XYZ"
operations {
  update {
    type: IMAGE_AD
    resource_name: "customers/ABC/ads/573016978749"
    id: 573016978749
    final_urls: "https://www.eample.com/";
  }
  update_mask {
    paths: "resource_name"
    paths: "id"
    paths: "final_urls"
    paths: "type"
  }
}


Response
--------
Headers: 
Metadata(content-type=application/grpc,request-id=bcB1aFU7Q_KMLaQZWRXmFQ,date=Wed,
 
12 Jan 2022 21:40:09 GMT,alt-svc=h3=":443"; ma=2592000,h3-29=":443"; 
ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; 
ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43")
Body: null
Failure message: errors {
  error_code {
    ad_error: CANNOT_MODIFY_AD
  }
  message: "Cannot modify an ad."
  trigger {
    string_value: ""
  }
  location {
    field_path_elements {
      field_name: "operations"
      index: 0
    }
    field_path_elements {
      field_name: "update"
    }
    field_path_elements {
      field_name: "resource_name"
    }
  }
}
request_id: "bcB1aFU7Q_KMLaQZWRXmFQ"

Thanks
Pete

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/aab96bb0-8a15-4bac-b779-0b7068686f77n%40googlegroups.com.
  • IM... Pete Lavetsky (AdWords API Guru)
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... Pete Lavetsky (AdWords API Guru)
        • ... Pete Lavetsky (AdWords API Guru)
          • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
            • ... Pete Lavetsky (AdWords API Guru)

Reply via email to