Thanks for the followup Peter.
This is why I originally posted the bug to the Java Client Library forum
because the solution you state, *which I had tried*, "Therefore, you need
to explicitly set display_url ( on the Ad resource ) to be an empty
string", does not work with the Java Client Library:
request_id: "zb-yJMOVAG8IYoU0hOAfQg"
Request
-------
MethodName: google.ads.googleads.v8.services.AdService/MutateAds
Endpoint: googleads.googleapis.com:443
Headers: {developer-token=REDACTED, login-customer-id=REDACTED,
x-goog-api-client=gl-java/1.8.0_161 gapic/ gax/1.65.1 grpc/1.37.0}
Body: customer_id: "REDACTED"
operations {
update {
type: CALL_AD
resource_name: "customers/REDACTED/ads/REDACTED"
id: REDACTED
final_urls: "REDACTED"
display_url: ""
call_ad {
REDACTED
}
}
update_mask {
paths: "resource_name"
paths: "id"
paths: "final_urls"
paths: "display_url"
paths: "type"
paths: "call_ad.country_code"
paths: "call_ad.phone_number"
paths: "call_ad.business_name"
paths: "call_ad.description1"
paths: "call_ad.description2"
paths: "call_ad.call_tracked"
paths: "call_ad.phone_number_verification_url"
}
}
Response
--------
Headers:
Metadata(content-type=application/grpc,request-id=zb-yJMOVAG8IYoU0hOAfQg,date=Wed,
30 Jun 2021 13:49:21 GMT,alt-svc=h3=":443"; ma=2592000,h3-29=":443";
ma=2592000,h3-T051=":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 {
field_error: VALUE_MUST_BE_UNSET
}
message: "The field cannot be set."
location {
field_path_elements {
field_name: "operations"
index: 0
}
field_path_elements {
field_name: "update"
}
field_path_elements {
field_name: "display_url"
}
}
}
request_id: "zb-yJMOVAG8IYoU0hOAfQg"
Status: Status{code=INVALID_ARGUMENT, description=Request contains an
invalid argument., cause=null}.
Should I push this back to the Java Client Library bug board?
Pete
On Wednesday, June 30, 2021 at 2:06:13 AM UTC-4 adsapi wrote:
> Hi Pete,
>
> Relaying the feedback we received from our team :
>
>
>
> *The creative itself, an old call-only ad, already has the display_url
> set. Therefore, you need to explicitly set display_url (on the Ad
> resource)
> <https://developers.google.com/google-ads/api/reference/rpc/v8/Ad#display_url>
> to
> be an empty string. This is the new requirement of the call ad, also what
> VALUE_MUST_BE_UNSET means.*
>
> I hope this helps and let us know if you have additional clarifications.
>
> Best regards,
>
> [image: Google Logo]
> Peter Laurence Napa Oliquino
> Google Ads API Team
>
>
> ref:_00D1U1174p._5004Q2IxmDo:ref
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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
"AdWords API and Google Ads 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/6690f218-1850-45b8-bca0-4fa0f0b968den%40googlegroups.com.