Hi 

I have used v8 and I want to try to block  IP Addresses. (use 
Google\Ads\GoogleAds\V8\Services\CustomerClientLinkOperation;
) 
Here is my code. 
use Google\Protobuf\BoolValue;
use Google\Protobuf\StringValue;
use Google\Protobuf\Int64Value;
use Google\Protobuf\EnumValue;
use Google\Protobuf\DoubleValue;
use Google\ApiCore\ApiException; 

$campaignCriterion = new CampaignCriterion([ 
 'negative' => new BoolValue(['value' => true]), 
 'campaign' => new StringValue(['value' => $campaignResourceName]),
 'type' => CriterionType::IP_BLOCK, 
 'ip_block' => new IpBlockInfo(['ip_address' => new StringValue(['value' => 
$ipAddress2])])
]);

I'm getting this error 

code: 0
file: 
"/home/theclicksaver/public_html/adwords/google-ads-php/vendor/google/protobuf/src/Google/Protobuf/Internal/GPBUtil.php"
line: 96
message: "Expect string."
name: "Exception"
stack-trace: [,…]
type: "InvalidArgumentException"

Thanks & regards
Harikesh Kumar

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/6831d2c9-4893-4679-90e0-9998bc034763n%40googlegroups.com.
  • Ip... Harikesh Kumar
    • ... Harikesh Kumar
      • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum

Reply via email to