Thank you for the help.now,I am able to add single placement url.Can I add 
multiple urls at a time? 

On Saturday, March 17, 2018 at 12:30:29 AM UTC+5:30, Sreelakshmi Sasidharan 
(AdWords API Team) wrote:
>
> Hi, 
>
> The Placements criterion can only be targeted at an AdGroup level. At a 
> campaign level, this can only be excluded. Please check here 
> <https://developers.google.com/adwords/api/docs/appendix/criteria-usage> for 
> more details about criteria usage. To add a negative campaign criterion, 
> please refer to AddCampaignTargetingCriteria 
> <https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201802/Targeting/AddCampaignTargetingCriteria.php#L111-L123>
>  sample. 
> The sample adds a negative keyword. In your case, you will need to set the 
> attributes of a placement 
> <https://developers.google.com/adwords/api/docs/reference/v201802/CampaignCriterionService.Placement>
>  instead. 
> To retrieve the campaign level negative criterion, you could use the 
> CampaignCriterionService.get() 
> <https://developers.google.com/adwords/api/docs/reference/v201802/CampaignCriterionService#get>
>  and 
> filter by CriteriaType 
> <https://developers.google.com/adwords/api/docs/reference/v201802/CampaignCriterionService.Criterion#type>
>  "PLACEMENT". 
> Please check the GetCampaignTargetingCriteria 
> <https://developers.google.com/adwords/api/docs/samples/php/targeting#get-all-campaign-targeting-criteria>
>  sample 
> for reference. You will need to include PlacementUrl 
> <https://developers.google.com/adwords/api/docs/reference/v201802/CampaignCriterionService.Placement#url>
>  and 
> any other fields 
> <https://developers.google.com/adwords/api/docs/appendix/selectorfields#v201802-CampaignCriterionService>
>  of 
> your choice in your selector. 
>
> If you are having trouble getting the results for 
> CampaignCriterionService, could you please share the campaign ID which has 
> the placement and not being returned? Please note that, if the placement is 
> added at the AdGroup level, you will have to use the 
> AdGroupCriterionService.get() 
> <https://developers.google.com/adwords/api/docs/reference/v201802/AdGroupCriterionService#get>
>  
> instead. If you need a sample for this, please check GetKeywords 
> <https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201802/BasicOperations/GetKeywords.php>
>  which 
> uses AdGroupCriterionService to get the keywords. 
>
> Thanks,
> Sreelakshmi, AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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].
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/06aef6a3-9e56-4469-866b-6f3e9854f042%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Add mult... soundarya sparks
    • Re:... 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum
      • ... soundarya sparks
        • ... 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum

Reply via email to