I insert a negative criterial
---------------
customer_negative_criterion_service = client.GetService(
'CustomerNegativeCriterionService', version='v201809')
criteria = [
# Exclude a specific placement.
{
'xsi_type': 'Placement',
'url': url
}
]
operations = [{
'operator': 'ADD',
'operand': {
'criterion': criterion
}
} for criterion in criteria]
result = customer_negative_criterion_service.mutate(operations)
----------
and insert de negative criterial!
when i search the insert
---------
selector = {
'fields': ['Id'],
'predicates': [{
'field': 'CriteriaType',
'operator': 'IN',
'values': ['PLACEMENT']
}],
'paging': {
'startIndex': str(offset),
'numberResults': str(PAGE_SIZE)
}
}
# Make the mutate request.
page = campaign_criterion_service.get(selector)
--------------
return null
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/31138041-f004-45a4-8f7a-6ad7992034ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.