Update Ad

44 views
Skip to first unread message

Dan

unread,
Aug 9, 2019, 3:57:17 AM8/9/19
to AdWords API and Google Ads API Forum

I try to update an ad using AdService/MutateAds
if the ad type is EXTENDED_TEXT_AD the service works correctly.
if the ad type is GMAIL_AD the service fails.
By the following the request and the response:

Request

MethodName: google.ads.googleads.v2.services.AdService/MutateAds
Endpoint: googleads.googleapis.com:443
Headers: {developer-token=REDACTED, login-customer-id=XXXXXX, x-goog-api-client=gl-java/1.8.0_201 gapic/ gax/ grpc/}
Body: customer_id: "XXXXXX"
operations {
update {
final_urls {
value: "XXXXXX"
}
type: GMAIL_AD
tracking_url_template {
value: "XXXXXX"
}
resource_name: "customers/XXXXXX/ads/XXXXXX"
}
update_mask {
paths: "resource_name"
paths: "final_urls"
paths: "tracking_url_template"
paths: "type"
}
}

Response

Headers: Metadata(content-type=application/grpc,request-id=r1ZL8RaOBYJpVdl-3dvpEA,date=Thu, 08 Aug 2019 14:54:14 GMT,alt-svc=quic=":443"; ma=2592000; v="46,43,39")
Body: null
Failure message: errors {
error_code {
ad_error: INVALID_AD_TYPE
}
message: "Invalid Ad type. A specific type of Ad is required."
trigger {
string_value: ""
}
location {
field_path_elements {
field_name: "operations"
index {
}
}
field_path_elements {
field_name: "update"
}
field_path_elements {
field_name: "resource_name"
}
}
}

Google Ads API Forum Advisor Prod

unread,
Aug 9, 2019, 10:21:49 AM8/9/19
to d.ago...@gmail.com, adwor...@googlegroups.com
Hi Dan, 

Thank you for reaching out to support. The AdService supports mutability of ads for the Ad types that are available here. The Gmail ads are not yet supported for this feature. Please keep an eye on our blog for more updates. 

Regards,
Bharani, Google Ads API Team

ref:_00D1U1174p._5001UEIUmo:ref
Reply all
Reply to author
Forward
0 new messages