Hello. I am trying to set up a callout in the following request, but it does not work. What could be the problem?
-request-
Request
Method: /google.ads.googleads.v8.services.GoogleAdsService/Mutate
Host: googleads.googleapis.com
Headers: {
"developer-token": "REDACTED",
"x-goog-api-client": "gl-python/3.8.10 grpc/1.36.1 gax/1.26.1
gapic/13.0.0",
"x-goog-request-params": "customer_id=9007301272"
}
Request: customer_id: "9007301272"
mutate_operations {
campaign_budget_operation {
create {
resource_name: "customers/9007301272/campaignBudgets/-1"
name: "local"
amount_micros: 404000000
}
}
}
mutate_operations {
campaign_operation {
create {
resource_name: "customers/9007301272/campaigns/-2"
status: ENABLED
advertising_channel_type: SEARCH
network_settings {
target_google_search: true
target_search_network: false
target_content_network: false
target_partner_search_network: false
}
name: "local_\345\260\217\351\207\221\344\272\225"
campaign_budget: "customers/9007301272/campaignBudgets/-1"
bidding_strategy: "customers/9007301272/biddingStrategies/8109229421"
}
}
}
mutate_operations {
extension_feed_item_operation {
create {
resource_name: "customers/9007301272/extensionFeedItems/-3"
callout_feed_item {
callout_text: "aa"
}
}
}
}
mutate_operations {
extension_feed_item_operation {
create {
resource_name: "customers/9007301272/extensionFeedItems/-4"
callout_feed_item {
callout_text: "bb"
}
}
}
}
mutate_operations {
campaign_extension_setting_operation {
create {
extension_type: CALLOUT
device: DESKTOP
campaign: "customers/9007301272/campaigns/-2"
extension_feed_items: "customers/9007301272/extensionFeedItems/-3"
extension_feed_items: "customers/9007301272/extensionFeedItems/-4"
}
}
}
validate_only: true
Response
-------
Headers: {
"google.ads.googleads.v8.errors.googleadsfailure-bin":
"\n\u0001\n\u0003\u0002\u0002\u0012\u0012Duplicate
element.\u001a\u0016*\u0014TempFeedItemId{id=3}\"S\u0012\u0015\n\u0011mutate_operations\u0018\u0004\u0012&\n$campaign_extension_setting_operation\u0012\b\n\u0006create\u0012\b\n\u0006device\n\u0001\n\u0003\u
0002\u0002\u0012\u0012Duplicate
element.\u001a\u0016*\u0014TempFeedItemId{id=4}\"S\u0012\u0015\n\u0011mutate_operations\u0018\u0004\u0012&\n$campaign_extension_setting_operation\u0012\b\n\u0006create\u0012\b\n\u0006device\u0012\u0016d7I_oV0ipDjJHysNxVel6Q",
"grpc-status-details-bin": "\b\u0003\u0012%Request contains an invalid
argument.\u001a\u0002\nCtype.googleapis.com/google.ads.googleads.v8.errors.GoogleAdsFailure\u0012\u0002\n\u0001\n\u0003\u0002\u0002\u0012\u0012Duplicate
element.\u001a\u0016*\u0014TempFeedItemId{id=3}\"S\u0012\u0015\n\u0011mutate_operations\u
0018\u0004\u0012&\n$campaign_extension_setting_operation\u0012\b\n\u0006create\u0012\b\n\u0006device\n\u0001\n\u0003\u0002\u0002\u0012\u0012Duplicate
element.\u001a\u0016*\u0014TempFeedItemId{id=4}\"S\u0012\u0015\n\u0011mutate_operations\u0018\u0004\u0012&\n$campaign_extension_setting_operation\u0012\b\n\u0006crea
te\u0012\b\n\u0006device\u0012\u0016d7I_oV0ipDjJHysNxVel6Q",
"request-id": "d7I_oV0ipDjJHysNxVel6Q"
}
Fault: errors {
error_code {
distinct_error: DUPLICATE_ELEMENT
}
message: "Duplicate element."
trigger {
string_value: "TempFeedItemId{id=3}"
}
location {
field_path_elements {
field_name: "mutate_operations"
index: 4
}
field_path_elements {
field_name: "campaign_extension_setting_operation"
}
field_path_elements {
field_name: "create"
}
field_path_elements {
field_name: "device"
}
}
}
errors {
error_code {
distinct_error: DUPLICATE_ELEMENT
}
message: "Duplicate element."
trigger {
string_value: "TempFeedItemId{id=4}"
}
location {
field_path_elements {
field_name: "mutate_operations"
index: 4
}
field_path_elements {
field_name: "campaign_extension_setting_operation"
}
field_path_elements {
field_name: "create"
}
field_path_elements {
field_name: "device"
}
}
}
request_id: "d7I_oV0ipDjJHysNxVel6Q"
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/a2223b50-f76e-42bb-9605-0aa21fba26a2n%40googlegroups.com.
