# Construct keyword ad group criterion object.
keyword1 = {
'xsi_type': 'BiddableAdGroupCriterion',
'adGroupId': ad_group_id,
'criterion': {
'xsi_type': 'Keyword',
'matchType': 'BROAD',
'text': 'mars'
},
# These fields are optional.
'userStatus': 'PAUSED',
'finalUrls': {
'urls': ['http://example.com/mars']
}
}
keyword2 = {
'xsi_type': 'NegativeAdGroupCriterion',
'adGroupId': ad_group_id,
'criterion': {
'xsi_type': 'Keyword',
'matchType': 'EXACT',
'text': 'pluto'
}
}