I've created topic negative for campaign criterion but when I mutated
operation, I got error with message: Invalid path
My Code:
def create_topic_operation(client,campaign_resource):
campaign_criterion_operation_topic =
client.get_type('CampaignCriterionOperation',
version='v2')
campaign_criterion_topic = campaign_criterion_operation_topic.create
campaign_criterion_topic.type = client.get_type('CriterionTypeEnum').TOPIC
campaign_criterion_topic.campaign.value = campaign_resource
campaign_criterion_topic.negative.value =True
temp = ["Apparel & Accessories"]
for item in temp :
topic_path = campaign_criterion_topic.topic.path.add()
topic_path.value = item.strip()
return campaign_criterion_operation_topic
My Error:
message: "Invalid topic path."
trigger {
string_value: "[Apparel & Accessories]"
}
location {
field_path_elements {
field_name: "operations"
index {
value: 14
}
}
field_path_elements {
field_name: "create"
}
field_path_elements {
field_name: "topic"
}
}
}
Please help me! Thank you in advance
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/1dc5b25d-a078-4538-9965-5481abe5a1a3%40googlegroups.com.