Re: Java ads api: device enum to device constant?

2021-10-24 Thread 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
Hi Don,

I understand the inconvenience of the additional requests you are performing. 
Since this involves the Java client library, I would recommend that you reach 
out as well to the Java library owners via this link, for further guidance if 
there are ways to access the enums directly at the code level.

That said, allow me as well to create a feature request, subject for review, 
for this to be available directly via the API's services / resources. For now, 
you may keep an eye on our blog for updates and / or announcements.

Best regards,

Peter Laurence Napa Oliquino
Google Ads API Team
ref:_00D1U1174p._5004Q2QE62P:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/42-590R1ILCM00xAYdIYNDQT2I4Fv6KOdHJQ%40sfdc.net.


Re: Add Filter in generateKeywordIdeas

2021-10-24 Thread Oleg Disrupt
can you help me? This is urgent.
Any suggestion will help me.
Thanks

On Monday, October 25, 2021 at 11:00:45 AM UTC+9 Oleg Disrupt wrote:

> Hi
> I want to add filter (for example competiton is high) to call
> generateKeywordIdeas.
>
> How can i do this?
> Thanks
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/a77f210e-85c1-4266-baf0-3fa510457065n%40googlegroups.com.


RE: External conversion source APP_UNSPECIFIED filter value broken

2021-10-24 Thread 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
Hello Tiana,

Thank you for raising this to us.

So our team can better check on this, can you share to us the following details 
below?

Customer ID
login-customer-id
complete GAQL
complete logs (request and response with request-id)

Please send the requested details via the Reply privately to author option. If 
this option is not available, you may send the details directly to our 
googleadsapi-supp...@google.com alias instead.

As aside, I tried using the Query builder with your provided sample query and 
it returns an invalid query message (Field 
'segments.external_conversion_source' in the WHERE clause is causing an error. 
Segments other than core date segments ('segments.date', 'segments.week', 
'segments.month', 'segments.quarter', 'segments.year') must be present in the 
SELECT clause before being added to the WHERE clause.).

Regards,

Mark Kevin Albios
Google Ads API Team
ref:_00D1U1174p._5004Q2QEMRv:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/xPeIM0R1IKIH00TcYUgC9YQlWmZRZ8s4pmPQ%40sfdc.net.


Re: Questions about CustomerExtensionSetting

2021-10-24 Thread 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
Hello,

Thank you for getting back to us.

Can you share to us the complete API logs (request and response with 
request-id) in text format instead of an image? In addition, can you try making 
a get/search request confirming if that feed is indeed existing?

Please send the requested details via the Reply privately to author option. If 
this option is not available, you may send the details directly to our 
googleadsapi-supp...@google.com alias instead.

As an aside, I will be removing your recent response as it contains your image 
logs.

Regards,

Mark Kevin Albios
Google Ads API Team
ref:_00D1U1174p._5004Q2PKloL:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/XH3Xg0R1IK9800FitbM3itTqGnzsxsCHe0BA%40sfdc.net.


Re: micros to dollar

2021-10-24 Thread Oleg Disrupt
I fixed it

On Saturday, October 23, 2021 at 10:36:23 AM UTC+9 Oleg Disrupt wrote:

> In google ads keywordplanner I tried to search with my keywords and 
> customer id, language us(1000), location : united state
> But as I mentioned above it was different result between my app and google 
> keywordplans
>
> On Saturday, October 23, 2021 at 7:07:45 AM UTC+9 Oleg Disrupt wrote:
>
>> Hi Matt,
>> Thank you for your help.
>> I have one thing to ask you.
>> when i call  
>> generateKeywordIdeas method
>> in this KeywordPlanIdeaServiceGrpcClient, it requires 
>> geoTargetConstants (locations array).
>> I got the all locations from geotarget.csv and created the array.
>> It required max 10 value in array but I can see 60 locations id(Parent 
>> ID) so I created 6 vars in array. like this
>> private const LOC_IDS = array(
>> array(21132,21133,21135,21136,21137,21138,21139,21140,21141),
>> array(21142,21143,21144,21145,21146,21147,21148,21149,21150),
>> array(21151,21152,21153,21154,21155,21156,21157,21158,21159),
>> array(21160,21161,21162,21163,21164,21165,21166,21167,21168),
>> array(21169,21170,21171,21172,21173,21174,21175,21176,21177),
>> array(21178,21179,21180,21182,21183,21184)
>> );
>> I run 
>> generateKeywordIdeas
>>  function with above location ids, it shows a little different with 
>> google keywordideas.
>> for example when I enter the keyword("rare books"), google shows (avg 
>> month search: 6,600,  High bid — $0.41)
>> but my app shows 
>> avg month search :7390, high bid: $6.24(micro value is 6248351)
>> I got the result after tried to sum each it's value from 6 times 
>> searching.
>> foreach ($response->iterateAllElements() as $result) {
>> $avg = (is_null($result->getKeywordIdeaMetrics()) ? 0 
>> : $result->getKeywordIdeaMetrics()->getAvgMonthlySearches());
>> $bid = (is_null($result->getKeywordIdeaMetrics()) ? 0 
>> : $result->getKeywordIdeaMetrics()->getHighTopOfPageBidMicros());
>> $comp = (is_null($result->getKeywordIdeaMetrics()) ? 
>> 0 : $result->getKeywordIdeaMetrics()->getCompetition());
>> 
>> if ($comp > 3 && $bid > 0) {
>> for ($j=0; $j<$cnt; $j++) {
>> if ($res[$j]["keyword"] == $result->getText()) 
>> {
>> $flag = true;
>> break;   
>> }
>> }
>>
>> if ($flag) {
>> $res[$j]["avgmonth"] += $avg;
>> $res[$j]["highbid"] += $bid;
>> $flag = false;
>> } else {
>> ...
>> }
>> }
>> }
>> what is my issue?
>> Thanks
>>
>>
>> On Saturday, October 23, 2021 at 1:55:38 AM UTC+9 adsapi wrote:
>>
>>> Hi Oleg,
>>>
>>> Thanks for reaching out. I assume you are referring to 
>>> either low_top_of_page_bid_micros or high_top_of_page_bid_micros fields in 
>>> the KeywordPlanHistoricalMetrics 
>>> .
>>>  
>>> These fields can only return values in terms of micros, not account 
>>> currency. Micros are defined as the account currency multiplied by 
>>> 1,000,000. 
>>>
>>> Regards,
>>> Matt
>>> Google Ads API Team
>>>
>>> [image: Google Logo] 
>>> Matt 
>>> Google Ads API Team 
>>>   
>>>
>>> ref:_00D1U1174p._5004Q2QEIU5:ref
>>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/17153fa5-0c41-43f2-827e-65da3bb42117n%40googlegroups.com.


When I try to add a UserInterest, I am getting the Invalid user interest criterion error

2021-10-24 Thread Binu Mathew
Hello

When I try to add a UserInterest, I am getting the following error

61700784, RequestId: "Vcrte0UiVrR6n5GS6cTNeg", IsFault: 0, FaultMessage: 
"None"
[2021-10-23T16:18:53.166929+00:00] google-ads.WARNING: Request made: Host: "
googleads.googleapis.com", Method: 
"/google.ads.googleads.v7.services.CampaignCriterionService/MutateCampaignCriteria",
 
CustomerId: 1861700784, RequestId: "ib6vx9wry5cy7LynWcrgiA", IsFault: 1, 
FaultMessage: "["Invalid user interest criterion."]"
[2021-10-23T16:18:53.170816+00:00] google-ads.NOTICE: Request
---
Method Name: 
/google.ads.googleads.v7.services.CampaignCriterionService/MutateCampaignCriteria
Host: googleads.googleapis.com
Headers: {
"x-goog-api-client": "gl-php\/7.4.19 gapic\/ gax\/1.7.1 grpc\/1.38.0",
"x-goog-request-params": "customer_id=1861700784",
"developer-token": "REDACTED",
"login-customer-id": "4888128700"
}
Request:
{"customerId":"1861700784","operations":[{"create":{"campaign":"customers\/1861700784\/campaigns\/
15043066062
","negative":true,"userInterest":{"userInterestCategory":"customers\/1861700784\/userInterests\/730"}}}]}

Response
---
Headers: {
"request-id": "ib6vx9wry5cy7LynWcrgiA",
"date": "Sat, 23 Oct 2021 16:18:53 GMT",
"alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; 
ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; 
ma=2592000,h3-Q043=\":443\"; ma=2592000"
}

Fault
---
Status code: 3
Details: Request contains an invalid argument.
Failure: 
{"errors":[{"errorCode":{"criterionError":"INVALID_USER_INTEREST"},"message":"Invalid
 
user interest 
criterion.","trigger":{"int64Value":"730"},"location":{"fieldPathElements":[{"fieldName":"operations","index":0},{"fieldName":"create"},{"fieldName":"user_interest"},{"fieldName":"user_interest_category"}]}}],"requestId":"ib6vx9wry5cy7LynWcrgiA"}


I developing the app using PHP
$userInterestName = 'customers/1861700784/userInterests/730';
$campaignCriterion = new CampaignCriterion([
'user_interest' => new UserInterestInfo([
'user_interest_category' => $userInterestName
]),
'negative' => true, 
'campaign' => $campaignResourceName
]);
 $campaignCriterionOperation = new CampaignCriterionOperation();
$campaignCriterionOperation->setCreate($campaignCriterion);
$campaignCriterionServiceClient = 
$googleAdsClient->getCampaignCriterionServiceClient();

$response = $campaignCriterionServiceClient->mutateCampaignCriteria( 
1861700784  , $operations);

Any Idea why?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/fa9811e2-e62a-45af-98c2-36a9bc11ef69n%40googlegroups.com.


Add Filter in generateKeywordIdeas

2021-10-24 Thread Oleg Disrupt
Hi
I want to add filter (for example competiton is high) to call
generateKeywordIdeas.

How can i do this?
Thanks

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/2e0a29f5-5ad7-4416-b5f6-b3944e321addn%40googlegroups.com.


Re: How to get the landing page address of Google ads from Google ads api

2021-10-24 Thread 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
Hello,

Thank you for getting back to us.

Here are some of the reasons why a refresh token expires. In the Google Ads 
API's perspective, since an OAuth2 access expires after a limited time, an 
OAuth2 refresh token is used to automatically renew OAuth2 access. Please check 
on this guide for more details instead.

Regards,

Mark Kevin Albios
Google Ads API Team
ref:_00D1U1174p._5004Q2PHtnw:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/maDUh0R1IG3U00TgyIywx3RSmq9iX44pvhPw%40sfdc.net.


Re: Sitelink limit exceeded error though not too many sitelinks

2021-10-24 Thread 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
Hi Markus,

Thank you for your follow up.

Please note that our API team would need the complete request and response 
logs, along with the request-id, in order for us to investigate and 
troubleshoot the issue with the sitelinks limits.

That said, since you mentioned that the logs are currently turned off, I would 
recommend that you enable them by navigating to the Client libraries > Your 
client library (ex. Java) > Logging documentation, which you can access from 
this link, then retry your request to replicate the error. Once available, you 
may send the details to our team via the Reply privately to author option or 
directly to our googleadsapi-supp...@google.com alias.

Best regards,

Peter Laurence Napa Oliquino
Google Ads API Team
ref:_00D1U1174p._5004Q2PKftZ:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/P-zMK0R1IF0100K2Ryty3LQD2kwMK5ecdNVg%40sfdc.net.


Re: Determine Account-Id for Offline Conversion Upload?

2021-10-24 Thread 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
Hi Martin,

Thank you for commenting on this forum post. Allow me to provide support here.

You may try to set up the cross-account conversion tracking for your use case 
and upload conversions moving forward using API by following the specific 
guides below:
https://developers.google.com/google-ads/api/docs/conversions/upload-clicks
https://developers.google.com/google-ads/api/docs/conversions/upload-calls

If you have further questions on how the cross-account conversion tracking 
works, then I would suggest to reach out to the product team via this link.

As for the part of the email below, please note that the click_view will get 
the clicks of the account ID you've specified in your API request.
It seems to me that I can use the Google Ads API Click View query to retrieve 
the account id of the click - did you try this?

Let me know if you have further questions.

Regards,

Ernie John Blanca Tacata
Google Ads API Team
ref:_00D1U1174p._5004Q27szNj:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/-iug40R1IEZ200Qq3BhFtdQ9iqvTp5m_tjDw%40sfdc.net.


Re: not able place ads on youtube video via REST interface

2021-10-24 Thread 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
Hi Ismail,

Thanks for the confirmation.

If you're having trouble receiving private replies from us, please check your 
Spam folder. Additionally, please add the 'From address' on that email to your 
contact list to ensure we aren't flagged as Spam in future messages. If you 
don't see a message from us in your Spam folder, please email us directly at 
[googleadsapi-supp...@google.com] referring to your forum case.

Moving forward to your current question, if you are looking for the workaround 
in the API, then I am afraid that this is currently not possible. However, if 
what you are asking is if there is a workaround other than the API, then you 
can reach out to the product team via this link.

Regards,

Ernie John Blanca Tacata
Google Ads API Team
ref:_00D1U1174p._5004Q2OTkP6:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/v_SVP0R1IDX500mulQkJ2XTSyV91Us-Ib1Hw%40sfdc.net.


IpBlockInfo

2021-10-24 Thread Harikesh Kumar
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.


IpBlockInfo

2021-10-24 Thread Harikesh Kumar
$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])])
]);

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"

Please help me 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/c8fe6bb6-1963-462f-a262-3510174b7451n%40googlegroups.com.