I Required the same in php language but i have checked both the links you 
provided its not in the code samples for php

On Wednesday, 23 January 2019 02:45:28 UTC+5:30, googleadsapi-forumadvisor 
wrote:
>
> Hello Rajit,
>
> Using the GoogleAdsAPI 
> <https://developers.google.com/google-ads/api/reference/rpc/> you could 
> use the CampaignCriteriaonService 
> <https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v0.services#campaigncriterionservice>
>  
> and set the CampaignCriterion 
> <https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v0.resources#google.ads.googleads.v0.resources.CampaignCriterion>
>  
> to negative to exclude (true) the criterion and can add IpBlockInfo 
> <https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v0.common#google.ads.googleads.v0.common.IpBlockInfo>
>  
> to exclude the IP's from your targeting. You could use the code sample 
> AddCampaignTargetingCriteria.java 
> <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fgoogleads%2Fgoogle-ads-java%2Fblob%2Fmaster%2Fgoogle-ads-examples%2Fsrc%2Fmain%2Fjava%2Fcom%2Fgoogle%2Fads%2Fgoogleads%2Fexamples%2Ftargeting%2FAddCampaignTargetingCriteria.java%23L171&sa=D&sntz=1&usg=AFQjCNEqAd89LnmqrJi8nBa-zCSzm3fcMw>
>  
> and follow the same pattern to exclude the IP's. Code samples in other 
> languages can be found here 
> <https://developers.google.com/google-ads/api/docs/client-libs>. 
>
> You would be able to exclude IP's using AdWords API 
> <https://developers.google.com/adwords/api/docs/reference/release-notes/v201809>
>  
> as well. You have to use CampaignCriterionService 
> <https://developers.google.com/adwords/api/docs/reference/v201809/CampaignCriterionService>
>  
> and set the NegativeCampaignCriterion 
> <https://developers.google.com/adwords/api/docs/reference/v201809/CampaignCriterionService.NegativeCampaignCriterion>
>  
> to 
> IpBlock 
> <https://developers.google.com/adwords/api/docs/reference/v201809/CampaignCriterionService.IpBlock>.
>  
> please let me know if you have any further questions. You could use the 
> code sample AddCampaignTargetingCriteria.java 
> <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fgoogleads%2Fgoogleads-java-lib%2Fblob%2Fmaster%2Fexamples%2Fadwords_axis%2Fsrc%2Fmain%2Fjava%2Fadwords%2Faxis%2Fv201809%2Ftargeting%2FAddCampaignTargetingCriteria.java%23L207&sa=D&sntz=1&usg=AFQjCNF4usviE7xAVwsLUyF0qBmJtnnFbA>
>  
> and follow the same pattern to exclude the IP's. Code samples in other 
> languages can be found here 
> <https://developers.google.com/adwords/api/docs/clientlibraries>.
>
>
> Regards,
> Sai Teja, AdWords API Team
>
>
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Also find us on our blog and discussion group:
>     http://googleadsdeveloper.blogspot.com/search/label/adwords_api
>     https://developers.google.com/adwords/api/community/
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>
> Was your question answered? Please rate your experience with us by taking 
> a short survey.
> If not -- reply to this email and tell us what else we can do to help.
>
> Take Survey 
> <https://support.google.com/google-ads/contact/survey_transactional?caseid=8-3217000025213&hl=en&ctx=1>
>
> Also find us on our blog and discussion group:
> http://googleadsdeveloper.blogspot.com/search/label/adwords_api
> https://developers.google.com/adwords/api/community/
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
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/14ec1811-4db2-4fab-8ebf-1cda62289616%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Google ... rajit bansal
    • Re... 'Teja Makani' via AdWords API and Google Ads API Forum
      • ... rajit bansal
        • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
          • ... rajit bansal
            • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum

Reply via email to