I tried today to follow this direction.

(I'd like to exclude the placement for all adGroups, so I use 
NegativeCampaignCriterion)
here: 
https://developers.google.com/adwords/api/docs/reference/v201306/CampaignCriterionService.NegativeCampaignCriterion
and: 
 
https://developers.google.com/adwords/api/docs/reference/v201306/CampaignCriterionService.Placement

1. Here's my code. I tried many variations, but i can't figure out how to 
set the criteria - All my tests gave errors:

operations = [{
     'operator': 'ADD',
     'operand': {
          'type': 'NegativeCampaignCriterion',
          'campaignId': campaign_id,
          'criterion': {
               #'xsi_type': 'placement',
               #'Criterion.Type': 'placement',
               'type': 'placement',
               'url': placement_url,                    # appears in the 
docs, but gives an error:  Field 'url' is not in type 'Criterion'
               #'placementUrl': placement_url,
               #'id': placement_url,
          }
     }
}]

I can't find an example for this kind of criteria.

2. Also, if criteria.Type is an enumaration, shouldn't PLACEMENT be defined 
somewhere?
(I grep'ed the code but couldn't find it)

3. Should the the whole operation be "SET" or "ADD"?
i'm confused since i'm ADDing a criteria, but i'm also SETting a campaign.


Thanks, Berry


On Tuesday, November 26, 2013 1:39:12 PM UTC+2, Paul Matthews (AdWords API 
Team) wrote:
>
> Hi Barry,
>
> It seems that you're looking to create a negative ad group 
> criterion<https://developers.google.com/adwords/api/docs/reference/v201309/AdGroupCriterionService.NegativeAdGroupCriterion>.
>  
> In the particular instance, it looks like you're looking for a placement 
> criterion<https://developers.google.com/adwords/api/docs/reference/v201309/AdGroupCriterionService.Placement>
> .
>
> Regards,
>
> - Paul, AdWords API Team.
>
> On Monday, 25 November 2013 12:58:09 UTC, Berry Tsakala wrote:
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> *So far I found this 
>> discussionhttps://groups.google.com/forum/#!topic/adwords-api/lzqA8W1w7F0 
>> <https://groups.google.com/forum/#!topic/adwords-api/lzqA8W1w7F0>which 
>> points to this page in the 
>> documentation:http://code.google.com/apis/adwords/docs/developer/CriterionService.html#setCampaignNegativeCriteria
>>  
>> <http://code.google.com/apis/adwords/docs/developer/CriterionService.html#setCampaignNegativeCriteria>
>>  - 
>> but it doesn't exist (404)There's also this 
>> discussionhttps://groups.google.com/forum/#!msg/adwords-api/MpHClRBcLoQ/kzm4WkxY3F0J
>>  
>> <https://groups.google.com/forum/#!msg/adwords-api/MpHClRBcLoQ/kzm4WkxY3F0J> 
>>  
>> leads to below sourceforge docs:setCampaignNegativeCriteriawhich describes 
>> Java, and is hosted in sourceforge 
>> <http://www.google.com/url?q=http%3A%2F%2Fgoog-ad-api-cli.sourceforge.net%2Fjavadoc%2Fcom%2Fgoogle%2Fapi%2Fadwords%2Fv11%2FCriterionInterface.html&sa=D&sntz=1&usg=AFQjCNEiiORlj9pmHChRRMUUWHJbXRlGiA>Where
>>  
>> is  the official google-adwords-API documentation about it?(p.s. i'm using 
>> python)*
>>
>>
>> On Monday, November 25, 2013 2:36:22 PM UTC+2, Berry Tsakala wrote:
>>>
>>> I want to exclude specific placements by URLs or other means.
>>> I receive the placements and all metadata from an AWQL query.
>>>
>>> I'm looking for documentation or example.
>>>
>>> I know how to edit a campaign, but i don't know which object need to be 
>>> altered for placement exclusion,
>>> and which documentation to find this information at.
>>>
>>> Thank you 
>>> Berry
>>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to