Include / Exclude Product Partitions in Adgroups (Shopping Campaigns)

104 views
Skip to first unread message

Marco Küthe

unread,
Aug 18, 2020, 5:20:14 AM8/18/20
to AdWords API and Google Ads API Forum
Hello, 

I'm a developer in a Startup Company, and we are interacting with the Google Ads API to Controll Google Ads with a Python Application. 

We are now searching for a solution, to include and exclude Product Partions in Adgroups. 

The following Sample Code shows the Operand:

operations = [{
'operator': 'SET',
'operand': {
'adGroupId': ADGROUP_ID,
'criterion': {
'id': CRITERION_ID
},
'AdGroupCriterion.Type': 'NegativeAdGroupCriterion',
'criterionUse': 'NEGATIVE'
}
}]

adgroup_criterion_service.mutate(operations)


I also looked at other questions in this forums, but they are i bit older, so maybe something changed. (https://groups.google.com/forum/?pli=1#!msg/adwords-api/vVWNF2kAVXo/bTF0FpHbAAAJ)
Am I still right, that you cant include/exclude Product Partitions over the Ads API, because the Field is Read Only? 

We could also remove the Product Partition and create a knew one, but in this case we lose track of data. 

Maybe somebody can supply me with some Informations, or another idea to archive including/excluding Product Partions without the use of the Ads Frontend. 

Thanks in advance, 
Marco. 

Google Ads API Forum Advisor Prod

unread,
Aug 18, 2020, 1:05:48 PM8/18/20
to marco....@gmail.com, adwor...@googlegroups.com
Hi Marco,

It is possible to target and exclude product partitions at the ad group level using the API. Here is a guide and example of product groups. When setting your AdGroupCriterion, you can set negative to true to exclude criteria.

Regards,
Anthony
Google Ads API Team 

ref:_00D1U1174p._5004Q23L3lW:ref

marco....@gmail.com

unread,
Aug 19, 2020, 5:11:40 AM8/19/20
to AdWords API and Google Ads API Forum
Hey, thanks for the quick answer. 
We are currently working with the Google AdWords API v201809. 
Is there also a solution for the AdGroupCriterion with the AdWords API v201809 ( https://developers.google.com/adwords/api/docs/reference/v201809/AdGroupCriterionService.AdGroupCriterion?hl=ru ) 

Thanks in advance, 
Marco. 

Google Ads API Forum Advisor Prod

unread,
Aug 19, 2020, 9:47:05 AM8/19/20
to marco....@gmail.com, adwor...@googlegroups.com
Hi Marco,

Through AdWords API, you will also use the AdGroupCriterionService. Your AdGroupCriterion will need to be a NegativeAdGroupCriterion. I'd recommend looking at this example as a reference as it shows both how to target and exclude a criteria at the ad group level. 

marco....@gmail.com

unread,
Aug 19, 2020, 10:23:54 AM8/19/20
to AdWords API and Google Ads API Forum
Hey, 

I may formulated the question incorrectly. 
The Example your shared, shows how to add a AdGroupCriterion to a Adgroup. (I used the Path, but for the Python development documentation https://developers.google.com/adwords/api/docs/samples/python/targeting?hl=ru#add-demographic-critera-to-an-ad-group)
We want to change a existing Criterion after the Creation with the SET Operator, without deleting the Criterion and add a new one.
.
Greetings, Marco. 

Google Ads API Forum Advisor Prod

unread,
Aug 19, 2020, 12:15:11 PM8/19/20
to marco....@gmail.com, adwor...@googlegroups.com
Hey Marco,

You can use this example as a reference. It shows how to update a keyword, which is also an AdGroupCriterion.

marco....@gmail.com

unread,
Aug 20, 2020, 8:38:09 AM8/20/20
to AdWords API and Google Ads API Forum
We use this Examples allready for Keywords and other Criterions. In this Case the Operation we try to Mutate over The service has no influence. 

operations = [{
'operator': 'SET',
'operand': {
'adGroupId': adgroup_id,
'criterion': {
'id': criterion_id

},
'AdGroupCriterion.Type': 'NegativeAdGroupCriterion',
'criterionUse': 'NEGATIVE'
}
}]  

I get a Result Set from the AdgroupCriterion, with no Errors. But the criterionUse looks like to be ignored from the Api. 

Google Ads API Forum Advisor Prod

unread,
Aug 20, 2020, 1:25:35 PM8/20/20
to marco....@gmail.com, adwor...@googlegroups.com
Hi Marco,

The example I provided previously shows how to add both a keyword and negative keyword. The field criterionUse is read only. If you are trying to convert a criteria from biddable to negative, you will need to remove it then re-add it.

marco....@gmail.com

unread,
Aug 26, 2020, 4:32:14 AM8/26/20
to AdWords API and Google Ads API Forum
Would this be possible of we change to the new Ads Api? When we first delete and then readd a criterion we lose track of data. Is there any solution to do this automaticly without the Ads Frontend Applikation?

Regards, Marco

Google Ads API Forum Advisor Prod

unread,
Aug 26, 2020, 11:03:35 AM8/26/20
to marco....@gmail.com, adwor...@googlegroups.com
Hi Marco,

Unfortunately, Google Ads API works the same way as AdWords API with criteria. You will need to remove the criteria then re-add it as negative.


Regards,
Anthony
Google Ads API Team

Google Logo
Anthony
Google Ads API Team
 


ref:_00D1U1174p._5004Q23L3lW:ref
Reply all
Reply to author
Forward
0 new messages