Re: Protobuf PHP compiled library segmentation faults

2022-09-22 Thread TommyTek
Hi Heidi,
  done, let's see.

Thank you!

On Wednesday, September 21, 2022 at 8:17:43 PM UTC+2 adsapi wrote:

> Hi Tommy,
>
> Thank you for the reply.
>
> Yes, You may reach out to the PHP client library owners via this link 
>  , as they are more 
> equipped to provide guidance on this matter.
>
> Best regards,
> [image: Google Logo] 
> Heidi 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2eQPgf: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 
"Google Ads API and AdWords 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/5ff21e2f-0c1b-4748-aba7-08ec34d82cd5n%40googlegroups.com.


Re: Protobuf PHP compiled library segmentation faults

2022-09-21 Thread TommyTek
Hi Nirmita,
  thank you for your feedback.

Are you asking me to contact the team that has developed the Google Ads php 
client library?

Thank you

On Monday, September 19, 2022 at 7:33:55 PM UTC+2 adsapi wrote:

> Hi Tommy,
>
> Thank you for reaching out to the Google Ads API support team.
>
> We only provide support related to the AdWords API 
> /Google Ads 
> API 
>  on 
> this support channel. For the PHP client library, with this,I recommend you 
> to reach out to PHP client library owners by opening a new issue with their 
> team via issue tracker 
> , for further 
> assistance.
>
>
> Thanks,
> [image: Google Logo] 
> Nirmita 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2eQPgf: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 
"Google Ads API and AdWords 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/5174a027-2c79-426a-ad40-4d65c3bc4582n%40googlegroups.com.


Re: Protobuf PHP compiled library segmentation faults

2022-09-19 Thread TommyTek
Hi Nirmita,
  thank you for your quick reaction.

The php compiled extension is compiled and installed properly.
I use:
pecl install protobuf
I can properly download reports, but every once in a while php crashes with 
a segmentation fault.

I'm not sure this was clear, the links that you kindly provided are meant 
for people installing it the first time, I guess.

Thank you


On Monday, September 19, 2022 at 4:36:29 PM UTC+2 adsapi wrote:

> Hi Tommy,
>
> Thank you for reaching out.
>
> I would suggest referring to this document 
>  as 
> it discusses all the processes on how to configure the PHP client library 
> including about the protobuf PHP Extension that can be seen on this 
> document 
> .
>
> Let me know if you have further questions.
>
> Thanks, 
> [image: Google Logo] 
> Nirmita 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2eQPgf: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 
"Google Ads API and AdWords 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/dd0856e5-26c0-47de-b475-395748861462n%40googlegroups.com.


Protobuf PHP compiled library segmentation faults

2022-09-19 Thread TommyTek
Hello,
I've random segfaults when using protobuf php compiled extension.
Same issue with both PHP 7.4.29 and PHP 8.1.6 on
$ uname -a
Linux srv25.inartek.it 5.4.0-100-generic #113 
-Ubuntu SMP Thu Feb 3 
18:43:29 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Core was generated by `/usr/local/php81debug/bin/php 
/home/sfinartek/domains/sf.inartek.it/cron/proces'.

Program terminated with signal SIGSEGV, Segmentation fault.

#0 0x561648c65d07 in _zend_is_inconsistent (ht=0x0, file=0x5616496c7238 
"/usr/local/directadmin/custombuild/php-8.1.6/Zend/zend_hash.c", line=2469) 
at /usr/local/directadmin/custombuild/php-8.1.6/Zend/zend_hash.c:54

54 if ((HT_FLAGS(ht) & HASH_FLAG_CONSISTENCY) == HT_OK) {

[Current thread is 1 (Thread 0x7f3cb9586bc0 (LWP 3090694))]

(gdb) bt

#0 0x561648c65d07 in _zend_is_inconsistent (ht=0x0, file=0x5616496c7238 
"/usr/local/directadmin/custombuild/php-8.1.6/Zend/zend_hash.c", line=2469) 
at /usr/local/directadmin/custombuild/php-8.1.6/Zend/zend_hash.c:54

#1  0x561648c6dd71 
in zend_hash_get_current_data_ex (ht=0x0, pos=0x24) at 
/usr/local/directadmin/custombuild/php-8.1.6/Zend/zend_hash.c:2469

#2  0x561648a36502 
in zif_current (execute_data=0x7f3cb9217190, return_value=0x7f3cb92170e0) 
at /usr/local/directadmin/custombuild/php-8.1.6/ext/standard/array.c:1184

#3  0x561648c8e616 
in ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER () at 
/usr/local/directadmin/custombuild/php-8.1.6/Zend/zend_vm_execute.h:1297

#4  0x561648d036db 
in execute_ex (ex=0x7f3cb9216020) at 
/usr/local/directadmin/custombuild/php-8.1.6/Zend/zend_vm_execute.h:55756

#5  0x561648d08f2f 
in zend_execute (op_array=0x7f3cb925f3c0, return_value=0x0) at 
/usr/local/directadmin/custombuild/php-8.1.6/Zend/zend_vm_execute.h:60123

#6  0x561648c51979 
in zend_execute_scripts (type=8, retval=0x0, file_count=3) at 
/usr/local/directadmin/custombuild/php-8.1.6/Zend/zend.c:1792

#7  0x561648bae644 
in php_execute_script (primary_file=0x7ffc99f3f6b0) at 
/usr/local/directadmin/custombuild/php-8.1.6/main/main.c:2538

#8  0x561648dc5725 
in do_cli (argc=4, argv=0x56164b7c19e0) at 
/usr/local/directadmin/custombuild/php-8.1.6/sapi/cli/php_cli.c:966

#9  0x561648dc6867 
in main (argc=4, argv=0x56164b7c19e0) at 
/usr/local/directadmin/custombuild/php-8.1.6/sapi/cli/php_cli.c:1368

I can provide the coredump too (but it's > 200MB).


The segmentation faults only happen when using the compiled version of the 
library; if I include the library with Composer it's fine (but slow)

I opened the issue on the protocol buffer Forum, but they said it's an 
issue with Google APIs and not with their library:

https://github.com/protocolbuffers/protobuf/issues/10113


Do you have any advice?

This is happening with the most recent versions fo the libraries too.


Thank you


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/8950dfa3-6946-42b7-8168-c77ae3ec13dbn%40googlegroups.com.


Find objects created with "Recommendations Auto-Apply"

2022-08-02 Thread TommyTek
Hello,
  is there a way, with APIs, to find ads or keywords that were created by 
the "Recommendations Auto-Apply" process?
We've many ads created with "Recommendations Auto-Apply" that we want to 
delete, but we're struggling at finding them (we've a very large accounts 
with millions of ads).

Using https://developers.google.com/google-ads/api/fields/v11/change_event 
cannot work because I need to identify very old ads too (not only those 
created in the last 30 days)

Any help is much appreciated.

Tnx

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/5dcbbbea-311a-4f36-83b1-c1aa8acc8274n%40googlegroups.com.


Allowed characters for Display Path in Responsive Search Ads

2022-05-27 Thread TommyTek
Hello,
  in there a regexp of allowed characters for the path1 and path2 of 
Responsive Search Ads?

I see many standard characters are not allowed; eg the dot "."

Thank you!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/60927dd3-a3f7-4a39-9a10-7d9c0ba7c90fn%40googlegroups.com.


Re: Campaigns Limited by Budget

2022-05-16 Thread TommyTek
Hi All,
  any update on this request?
In May 2022 I can't see it yet.

Tnx!

On Monday, April 4, 2016 at 1:53:44 PM UTC+2 Janak Prajapati wrote:

> Hi Danial,
>
> Any news on this topic - We are looking for this in API.
>
> Thanks,
> Janak
>
>
>
> On Thursday, February 5, 2015 at 7:34:28 PM UTC+5:30, Danial Klimkin wrote:
>>
>> Hello Frank,
>>
>>
>> This is still no on the roadmap unfortunately.
>>
>>
>> -Danial, AdWords APi Team.
>>
>>
>> On Tuesday, February 3, 2015 at 12:48:20 PM UTC+3, fru...@adzlocal.de 
>> wrote:
>>>
>>> Hi Danial,
>>>
>>> are there any news on this topic - I'm also interested in getting this 
>>> value via API.
>>>
>>> Regards
>>> Frank
>>>
>>>
>>>
>>> Am Donnerstag, 5. September 2013 11:15:34 UTC+2 schrieb Danial Klimkin:

 Hello Rob,


 I've added this as a feature request but we don't have any date for it 
 yet. I don't expect it makes it to the next API version.


 -Danial, AdWords API Team.


 On Wednesday, September 4, 2013 12:21:44 PM UTC+4, Rob wrote:
>
> Thanks Danial - is there any way to know if this will be added?
>
> On Friday, 2 August 2013 10:18:53 UTC+1, Danial Klimkin wrote:
>>
>> Hello Rob,
>>
>>
>> I can't share exact calculation unfortunately but I'll check if we 
>> can add this flag in the future API versions.
>>
>>
>> -Danial, AdWords API Team.
>>
>>
>> On Friday, August 2, 2013 12:04:52 PM UTC+4, Rob wrote:
>>>
>>> Could somebody at Google please let me know how the "Limited by 
>>> Budget" status is calculated in the AdWords UI?
>>>
>>> We can guess, but our clients expect us to report things in the same 
>>> way as the UI so that's not good enough in the long term.
>>>
>>> Thanks,
>>> Rob.
>>>
>>> On Wednesday, 24 July 2013 15:54:48 UTC+1, Rob wrote:

 Hi,

 Is there a way to retrieve the "Limited by Budget" status for a 
 campaign via the API?

 If there is, I can't find it in the docs, only the usual campaign 
 status values of "ACTIVE", "PAUSED" and "DELETED".



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/7695f134-1bb5-4041-aef4-ab16bb02ef1cn%40googlegroups.com.


Re: Appealing PolicyFindingError For ExpandedTextAd by API not work

2022-04-26 Thread TommyTek
Hello,
  is there any update on this matter?

I've the same problem: I've some ads live, that are disapproved because 
seem to contain phone numbers in the headline (but it is not true, ). From 
UI I can appeal the decision, but not from API.

Perhaps in the last 2 years a such api has been developed (I'm on V10).

Thank you for your help

On Friday, June 12, 2020 at 10:35:47 PM UTC+2 Google Ads API Forum Advisor 
Prod wrote:

> Hi Guofu,
>
> I don't believe there is a plan to allow the exemption policies to be 
> included in update operations. A workaround for the moment is to delete the 
> ad and then create a new ad with the new text to go through the validation 
> flow again.
>
> Could you please share a request sample or request ID for how you changed 
> the ad content which then violated the policy?
>
>
> Thanks,
> Sasha
> The Google Ads API Team
>
> ref:_00D1U1174p._5004Q20WqvS: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 
"Google Ads API and AdWords 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/0c6073cf-7cfa-4041-8a10-5fa5f1d9774an%40googlegroups.com.


Re: Missing clicks in geographic_view

2021-11-05 Thread TommyTek
Hello Ernie,
  yes, it seems that I didn't receive one of your email (but the first 
answer was received). Now I've whitelisted both 
adwords-api@googlegroups.com and googleadsapi-supp...@google.com on my mail 
server.

I've tried to download the data using location_view and now it works 
properly (I've the same amount of clicks and just 5 impressions of 
difference on 33000)

Thank you for your support.

Best,
Tom
On Wednesday, November 3, 2021 at 4:21:48 AM UTC+1 adsapi wrote:

> Hi Tommy
>
> It appears that you did not receive the response that I've sent. 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, please see the response below that I've sent previously 
> and let me know if you have follow up questions about it:
> "
>
>
>
> *Thank you for providing further details to your concern. I am also a 
> member of the Google Ads API team and let me provide support to your 
> concern. It appears that the UI is not the correct mapping of the said 
> report type. Please note that the provided UI is to get the metrics of the 
> targeted location not the location of the presence. With this, you will 
> need to use the location_view 
>  
> instead 
> as it summarizes the performance of campaigns by Location criteria. If you 
> want to know the equivalent UI of the location of the presence, then I 
> would suggest to reach out to the product team via this link 
>  as they are more 
> knowledgeable with the UI.*"
>
> Regards,
> [image: Google Logo] 
> Ernie John Blanca Tacata 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2QFicX: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/fe1dd82d-f221-4898-bacc-883579b65159n%40googlegroups.com.


Re: Missing clicks in geographic_view

2021-11-02 Thread TommyTek
Hello,
  I privately provided the information asked last week, but got no feedback.

Do you have any update for me?

Thank you

On Thursday, October 28, 2021 at 12:19:09 PM UTC+2 adsapi wrote:

> Hi,
>
> Thanks for reaching out to us.
>
> Since you’ve noticed a discrepancy, then for us to investigate further 
> discrepancies between the UI and API, could you please provide us with the 
> following details below?
>  
>
>- For AdWords API report, provide the complete SOAP *request* 
>
> 
>  
>and *response* 
>
> 
>  
>logs generated on your end or the complete *report definition* 
>
> 
>  
>- As for Google Ads API report, you can provide the complete *request* 
>
> 
>  
>and *response* 
>
> 
>  
>logs with *request ID* 
>
> 
>  
>generated on your end 
>- Screenshots from the UI showing those discrepancies 
>- Sample comparison of the AdWords API and Google Ads API report data 
>where we can see the said discrepancies 
>
>
> For the Google Ads API, logging can be enabled by navigating to the *Client 
> libraries > Your client library (ex. Java) > Logging* documentation, 
> which you can access from this *link* 
> .
>
> For the AdWords API, you can enable logging by going to the steps 
> discussed in the respective Github documentation of your chosen *client 
> library* .
>
> You may then send the all the requested information via the *Reply 
> privately to author* option. If this option is not available, you may 
> send the details directly to our googleadsa...@google.com alias instead.
>
> Regards, 
> [image: Google Logo] 
> Yasar 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2QFicX: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/4e04653b-6774-4440-8afd-b1e9499cf474n%40googlegroups.com.


Missing clicks in geographic_view

2021-10-27 Thread TommyTek
Hello,
  I'm having issues with the data retrieved through geographic_view

This is my query with Google Ads API v8:
SELECT customer.descriptive_name, campaign.id, campaign.name, 
geographic_view.country_criterion_id, segments.date, metrics.clicks, 
metrics.conversions, metrics.conversions_value, metrics.cost_micros, 
metrics.impressions, metrics.view_through_conversions FROM geographic_view
WHERE geographic_view.location_type = LOCATION_OF_PRESENCE AND 
segments.date BETWEEN '2021-10-21' AND '2021-10-21'

I'm running the query on the Google Ads account 503-220-2150 (I guess this 
is not confidential).

>From the UI I can see 2101 clicks for the whole account on the 2021-10-21; 
using the old Google Adwords API I was able to get the same amount of 
clicks (LocationType', 'EQUALS', ['LOCATION_OF_PRESENCE'] + 
IsTargetingLocation', 'IN', ['true','false']), but from new APIs I get 2075 
clicks

Eg in the old report for the country_criteria_id = 2076 and campaign_id = 
885148015 
I've 21 clicks, while in the new one 19 (2 are missing). I've click 
discrepancies on 17 returned rows, and impression discrepancies on 344 rows.

Can you tell me what is wrong with my query? I've not found a way to pass 
the old clause IsTargetingLocation', 'IN', ['true','false']

Thank you!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/c1237ec8-35ab-46fb-98dc-c60cecaaba85n%40googlegroups.com.


Re: Missing locations in the Geo Targets API

2021-03-10 Thread TommyTek
I kindly need the country name / country codes of the country criteria id 
2192, 2736, 2760, 2408

thank you

On Wednesday, March 10, 2021 at 5:29:25 PM UTC+1 TommyTek wrote:

> Hi,
>   thank you for the link 
> https://developers.google.com/adwords/api/docs/appendix/geotargeting#non-targetable_locations
>
> Can you tell us what are the country criteria IDs of such blocked 
> countries?
>
> thank you
>
> On Thursday, September 7, 2017 at 10:33:02 PM UTC+2 Sreelakshmi Sasidharan 
> (AdWords API Team) wrote:
>
>> Hi Sean, 
>>
>> The geotargeting table 
>> <https://developers.google.com/adwords/api/docs/appendix/geotargeting> 
>> contains 
>> the criteria Ids of all locations that can be targeted using AdWords. Some 
>> countries/territories are not targetable in AdWords but may appear in 
>> reports based on the user's area of interest or physical location. Since 
>> "2364" is not available in the geotargeting table but present in your Geo 
>> Performance Report, it could be any of the countries/territories as 
>> specified here 
>> <https://developers.google.com/adwords/api/docs/appendix/geotargeting#non-targetable_locations>
>> . 
>>
>> Thanks,
>> Sreelakshmi, AdWords API Team
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/920805b3-90d5-4465-b67d-5519dfd88546n%40googlegroups.com.


Re: Missing locations in the Geo Targets API

2021-03-10 Thread TommyTek
Hi,
  thank you for the 
link 
https://developers.google.com/adwords/api/docs/appendix/geotargeting#non-targetable_locations

Can you tell us what are the country criteria IDs of such blocked countries?

thank you

On Thursday, September 7, 2017 at 10:33:02 PM UTC+2 Sreelakshmi Sasidharan 
(AdWords API Team) wrote:

> Hi Sean, 
>
> The geotargeting table 
>  
> contains 
> the criteria Ids of all locations that can be targeted using AdWords. Some 
> countries/territories are not targetable in AdWords but may appear in 
> reports based on the user's area of interest or physical location. Since 
> "2364" is not available in the geotargeting table but present in your Geo 
> Performance Report, it could be any of the countries/territories as 
> specified here 
> 
> . 
>
> Thanks,
> Sreelakshmi, AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/9ff71fec-2bd1-4cb9-9f6f-dc12a1e98a3fn%40googlegroups.com.


Re: How to find orphan TextLabels

2019-05-14 Thread TommyTek
Hello,
 yes I know that, but as said I'm trying to pull only the orphan labels; 
the labels not linked to any object.
I've found a way only with LabelReport (
https://developers.google.com/adwords/api/docs/appendix/reports/label-report) 
and setting all the counts=0; any alternative way with standard api?

thank you

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/f3f91f3c-60b4-46c3-8569-1140ab1177bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to find orphan TextLabels

2019-05-14 Thread TommyTek
Hello,
  is there a way to find all TextLabels in my account that are not linked 
to any adgroup or any campaign? So basically I would try to find all the 
orphan labels to remove them periodically to not incur in the 100.000 
labels limit.

If not possible with APIs maybe it's possible with a query

Second question: "removed" labels doesn't count toward the 100k limit, 
right?

Thank you

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/a340b6c6-bd36-4d7c-93df-ab6a74d2a8b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Clone Campaign Settings

2019-05-11 Thread TommyTek
Hello,
 I was able to extra request/response

http://schemas.xmlsoap.org/soap/envelope/; 
xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201809;>


x
REDACTED
x
false
false





Id
CampaignGroupId
Name
Status
ServingStatus
StartDate
EndDate
AdServingOptimizationStatus
Settings
AdvertisingChannelType
AdvertisingChannelSubType
Labels
CampaignTrialType
BaseCampaignId
TrackingUrlTemplate
FinalUrlSuffix
UrlCustomParameters
SelectiveOptimization

CampaignId
EQUALS
1828117917





  

https://adwords.google.com/api/adwords/cm/v201809;>
000588a233dd34b90ae9ef0ffb0c9521
CampaignService
get
1
455


https://adwords.google.com/api/adwords/cm/v201809;>

1
CampaignPage

1828117917
test campaign
PAUSED
SERVING
20190426
20371230

ROTATE_INDEFINITELY
http://www.w3.org/2001/XMLSchema-instance; 
xsi:type="GeoTargetTypeSetting">
GeoTargetTypeSetting
DONT_CARE
DONT_CARE

http://www.w3.org/2001/XMLSchema-instance; 
xsi:type="ShoppingSetting">
ShoppingSetting
10677451
NL
0

SHOPPING
BASE
1828117917





  

Could you please explain what I'm doing wrong? 

I'd like to know why I can't request budget and other fields to clone.

Thank you

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/53189a68-e481-43bb-b706-63bfed739200%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Add an OfferID to an existing partition

2019-05-11 Thread TommyTek
Hi,
 not sure it's the same question. What is the private thread?

thank you

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ac5fed54-e748-49d4-b7ed-d90fd084ed63%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Clone Campaign Settings

2019-05-10 Thread TommyTek
Hi Dave,
 the instructions you gave are exactly the ones I'm trying to follow if you 
look at my sample code.
Why I get an error if in the Selector I put Budget and the other marked 
fields?

For the don't care I don't know what I'm doing wrong, but enabling the 
logging in the file I only see a line regarding the endpoint the request 
was made to. Having the complete SOAP request and response is not working 
to me :/

Could you please help?

Thank you

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ad5e82de-cdc8-49da-b497-ab5c5b5069ed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Clone Campaign Settings

2019-05-09 Thread TommyTek
Hello,
  I would create a function to clone campaign settings (without cloning 
adgroups etc).
I've read several discussions on this topic, eg 
https://groups.google.com/forum/#!newtopic/adwords-api/adwords-api/rErEluYfpAQ 
but 
the solution proposed to first get the campaign and then adding again 
doesn't seem to work because some attributes can't be copied; eg:

function cloneCampaign(
AdWordsServices $adWordsServices,
AdWordsSession $session,
$campaignId
) {
$campaignService = $adWordsServices->get($session, 
CampaignService::class);

// 
https://developers.google.com/adwords/api/docs/samples/php/basic-operations#add-campaigns

// Create selector.
$selector = new Selector();

$selector->setFields(['Id','CampaignGroupId','Name','Status','ServingStatus','StartDate','EndDate',
//'Budget',
//'ConversionOptimizerEligibility', // This field is read only and 
will be ignored when sent to the API.
'AdServingOptimizationStatus',
//'FrequencyCap',
'Settings','AdvertisingChannelType',
'AdvertisingChannelSubType',
//'NetworkSetting',
'Labels',
//'BiddingStrategyConfiguration',
'CampaignTrialType',
'BaseCampaignId',
//'ForwardCompatibilityMap', // This Map provides a place to put 
new features and settings in older versions of the AdWords API in the rare 
instance we need to introduce a new feature in an older version. It is 
presently unused. Do not set a value.
'TrackingUrlTemplate','FinalUrlSuffix','UrlCustomParameters',
//'VanityPharma',   // Describes how unbranded pharma ads will be 
displayed.
//'UniversalAppCampaignInfo', // Stores information specific to 
Universal App Campaigns. This field may not be set.
'SelectiveOptimization'
]);

// Create predicates.
$selector->setPredicates([
new Predicate('CampaignId', 'EQUALS', array($campaignId)),
   ]);

$page = $campaignService->get($selector);

$campaign = $page->getEntries()[0];

if ($campaign->getStartDate()setStartDate(date("Ymd"));

$campaign->setName($campaign->getName().' cloned '.date("Ymd His"));

print_r($campaign);

// Create an ad group criterion operation and add it to the list.
$operation = new CampaignOperation();
$operation->setOperand($campaign);
$operation->setOperator(Operator::ADD);
$operations[] = $operation;

$ret = $campaignService->mutate($operations);   

$newCampaign = $ret->getValue()[0];

echo "New Campaign ID: ".$newCampaign->getId()."\n\n";

print_r($newCampaign);

exit;   
}

If you see the Selector there are many rows commented out:
$selector->setFields(['Id','CampaignGroupId','Name','Status','ServingStatus','StartDate','EndDate',
//'Budget',
//'ConversionOptimizerEligibility', // This field is read only and 
will be ignored when sent to the API.
'AdServingOptimizationStatus',
//'FrequencyCap',
'Settings','AdvertisingChannelType',
'AdvertisingChannelSubType',
//'NetworkSetting',
'Labels',
//'BiddingStrategyConfiguration',
'CampaignTrialType',
'BaseCampaignId',
//'ForwardCompatibilityMap', // This Map provides a place to put 
new features and settings in older versions of the AdWords API in the rare 
instance we need to introduce a new feature in an older version. It is 
presently unused. Do not set a value.
'TrackingUrlTemplate','FinalUrlSuffix','UrlCustomParameters',
//'VanityPharma',   // Describes how unbranded pharma ads will be 
displayed.
//'UniversalAppCampaignInfo', // Stores information specific to 
Universal App Campaigns. This field may not be set.
'SelectiveOptimization'
]);

All those rows can't be read, I've the following errors:
[SelectorError.INVALID_FIELD_NAME @ serviceSelector; trigger:'Budget', 
SelectorError.INVALID_FIELD_NAME @ serviceSelector; 
trigger:'ConversionOptimizerEligibility', SelectorError.INVALID_FIELD_NAME 
@ serviceSelector; trigger:'FrequencyCap', SelectorError.INVALID_FIELD_NAME 
@ serviceSelector; trigger:'NetworkSetting', 
SelectorError.INVALID_FIELD_NAME @ serviceSelector; 
trigger:'BiddingStrategyConfiguration', SelectorError.INVALID_FIELD_NAME @ 
serviceSelector; trigger:'ForwardCompatibilityMap', 
SelectorError.INVALID_FIELD_NAME @ serviceSelector; trigger:'VanityPharma', 
SelectorError.INVALID_FIELD_NAME @ serviceSelector; 
trigger:'UniversalAppCampaignInfo']

So how can I clone a campaign and clone budget and other settings too?

If I comment out those fields and I run the script I see these settings in 
one of my campaign:

[settings:protected] => Array
(
[0] => Google\AdsApi\AdWords\v201809\cm\GeoTargetTypeSetting 
Object
(
[positiveGeoTargetType:protected] => DONT_CARE

Re: Add an OfferID to an existing partition

2019-05-09 Thread TommyTek
Hi,
is there a way to filter criterions in order to pickup only the one 
with ParentCriterionId = NULL?

// Create predicates.
$selector->setPredicates([
new Predicate('AdGroupId', 'EQUALS', array($adGroupId)),// <== 
ok
new Predicate('CriterionUse', 'EQUALS', array('BIDDABLE')), // 
<== ok
new Predicate('PartitionType', 'EQUALS', array('SUBDIVISION')),  
// <== NOT ok
]);

The statement above doesn't work because I get:

[SelectorError.INVALID_PREDICATE_FIELD_NAME @ ; trigger:'PartitionType']

Where can I find the list of fields I can use in Predicate? 
By reading 
https://developers.google.com/adwords/api/docs/reference/v201809/AdGroupCriterionService.Predicate
 
I should see somewhere that selector fields are filterable or not. Perhaps 
only these fields 
https://developers.google.com/adwords/api/docs/reference/v201809/AdGroupCriterionService.AdGroupCriterion
 
can be filterable? 

When fetching Criterions is it guaranteed that the first returned result is 
the root? so I can stop at the first and request only 1 record.

Thank you,
Tom

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/c746d37b-758f-49b9-aada-1d2806d88f74%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Add an OfferID to an existing partition

2019-05-09 Thread TommyTek
Hi Ejay,
  thank you for your help.

Something is still cloudy in my mind with product partitions :/ 
Would it be possible for you to provide the PHP code to get such info 
starting from the adgroup ID?

Later I'll have to discover how to delete a ProductOfferId too from the 
partition, I hope to have less troubles

Thank you very much :)

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/2da7580a-56d8-4f5d-a9e2-25841f488a0e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Add an OfferID to an existing partition

2019-05-08 Thread TommyTek
Hello,
  I've created a product partition with 2 offers this way (it works):

// create subdivision
$operations = [];
$root = ProductPartitions::createSubdivision();
$criterion = 
ProductPartitions::asBiddableAdGroupCriterion($adGroup->getId(), $root);
$operation = ProductPartitions::createAddOperation($criterion);
$operations[] = $operation;

$ean = new ProductOfferId();
$ean->setValue('01');
$eanUnit = ProductPartitions::createUnit($root, $ean);
$criterion = ProductPartitions::asBiddableAdGroupCriterion(
$adGroup->getId(),
$eanUnit,
10*1
);
$operation = ProductPartitions::createAddOperation($criterion);
$operations[] = $operation;
   
$ean = new ProductOfferId();
$ean->setValue('02');
$eanUnit = ProductPartitions::createUnit($root, $ean);
$criterion = ProductPartitions::asBiddableAdGroupCriterion(
$adGroup->getId(),
$eanUnit,
11*1
);
$operation = ProductPartitions::createAddOperation($criterion);
$operations[] = $operation;


// Other
$ean = new ProductOfferId();
$eanUnit = ProductPartitions::createUnit($root, $ean);
$criterion = ProductPartitions::asNegativeAdGroupCriterion(
$adGroup->getId(),
$eanUnit
);
$operation = ProductPartitions::createAddOperation($criterion);
$operations[] = $operation;
   

$adGroupCriterionService->mutate($operations);  



Now I want to create a function that adds new  ProductOfferId to current 
partition, but I don't know how to retrieve the $root element without 
creating it again (and without doing a query to read the whole partition). 
What is the easiest way to get the root element of a product partition?

Thank you

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/e4dead6c-3125-4169-bc9e-e1be72f62a4e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AdGroupCriterionError.CONCRETE_TYPE_REQUIRED @ operations[0].operand

2018-02-20 Thread TommyTek
Hi,
  I've found and solved the issue.

The problem was with an "use" statament. I'm using 201710 version, but 
unbeliavable the I was using 201702 for BiddableAdGroupCriterion
use Google\AdsApi\AdWords\v201702\cm\BiddableAdGroupCriterion;

The result was that compiler and library were not complaining, but the 
object was not translated properly

Thank you for the support

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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 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/104b3621-8d27-45b2-8302-7307ed58c6eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AdGroupCriterionError.CONCRETE_TYPE_REQUIRED @ operations[0].operand

2018-02-20 Thread TommyTek
Hi,
 yes, it seems that the namespace is missing, but if you look at the php 
dump you can see that it's there in the first lines.

I'm using the examples as reference; here in short the phpcode I'm using:

$operations = array();


$keyword = new Keyword();
$keyword->setText($myKeyword->keywordText);
$keyword->setMatchType($myKeyword->matchType);

if( $myKeyword->isNegative() === false ) {

$adGroupCriterion = new BiddableAdGroupCriterion();

if( $myKeyword->maxCpc != 0 ) { 
$bid = new CpcBid();

$money = new Money();
$money->setMicroAmount($myKeyword->maxCpc * _API_GOOGLE_MONEY_DIVISOR);
$bid->setBid($money);

$biddingStrategyConfiguration = new BiddingStrategyConfiguration();
$biddingStrategyConfiguration->setBids(array($bid));


$adGroupCriterion->setBiddingStrategyConfiguration($biddingStrategyConfiguration);
}

if( $myKeyword->url != '' ) {
$adGroupCriterion->setDestinationUrl('');
$adGroupCriterion->setFinalUrls(new UrlList(array( $myKeyword->url 
)));
}

$adGroupCriterion->setUserStatus($myKeyword->onlineStatus);  

} else {
  //negative keyword
  $adGroupCriterion = new NegativeAdGroupCriterion();
}

$adGroupCriterion->setAdGroupId((double) $myKeyword->adgroudId); 
$adGroupCriterion->setCriterion($keyword); 

$operation = new AdGroupCriterionOperation();
if( $exemptionKey !== false )
$operation->setExemptionRequests(array(new ExemptionRequest( $exemptionKey 
)));
$operation->setOperand($adGroupCriterion);
$operation->setOperator('ADD'); 

 
var_dump($operation);
 
$operations[] = $operation;

$APIresult = $servizio->mutate( $operations );

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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 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/756e73b9-6536-4cb9-a4ee-a31824a34389%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


AdGroupCriterionError.CONCRETE_TYPE_REQUIRED @ operations[0].operand

2018-02-19 Thread TommyTek
Hello,
  I'm migrating to Adwords API 201710 and I'm getting this error:
GroupCriterionError.CONCRETE_TYPE_REQUIRED @ operations[0].operand

I'm using googleads-php-lib V 32.1

I've read forum about this error and usually it's associated to not 
properly setting AdGroupCriterion to BiddableAdGroupCriterion

In my case the error seems to be elsewhere and I'm not being able to find 
it.

This is the SOAP request:

http://schemas.xmlsoap.org/soap/envelope/; 
xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201710; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;>


xxx-xxx-xxx
REDACTED
x (AwApi-PHP, googleads-php-lib/32.1.0, 
PHP/5.6.33)
false
false





ADD

53774068962

keyword 1
BROAD







As you can see info about url and cpc are missing (while I set them in the 
code).


Here the SOAP response (not nicely formatted):

http://schemas.xmlsoap.org/soap/envelope/;>
https://adwords.google.com/api/adwords/cm/v201710;>
00056558587da1490ae9e852da0a77b9AdGroupCriterionServicemutate1
379soap:Client[AdGroupCriterionError.CONCRETE_TYPE_REQUIRED
 
@ operations[0].operand]
https://adwords.google.com/api/adwords/cm/v201710;>[AdGroupCriterionError.CONCRETE_TYPE_REQUIRED
 
@ operations[0].operand]
ApiExceptionhttp://www.w3.org/2001/XMLSchema-instance; 
xsi:type="AdGroupCriterionError">operations[0].operandoperations
0operandAdGroupCriterionError.CONCRETE_TYPE_REQUIREDAdGroupCriterionError
CONCRETE_TYPE_REQUIRED


This is a dump of the $operation object before adding it to array 
$operators[] I pass to mutate  ( class type AdGroupCriterionService )

object(Google\AdsApi\AdWords\v201710\cm\AdGroupCriterionOperation)#12 (5) {
  ["operand":protected]=>
  object(Google\AdsApi\AdWords\v201702\cm\BiddableAdGroupCriterion)#47 (25) 
{
["userStatus":protected]=>
string(7) "ENABLED"
["systemServingStatus":protected]=>
NULL
["approvalStatus":protected]=>
NULL
["disapprovalReasons":protected]=>
NULL
["destinationUrl":protected]=>
string(0) ""
["firstPageCpc":protected]=>
NULL
["topOfPageCpc":protected]=>
NULL
["firstPositionCpc":protected]=>
NULL
["qualityInfo":protected]=>
NULL
["biddingStrategyConfiguration":protected]=>

object(Google\AdsApi\AdWords\v201710\cm\BiddingStrategyConfiguration)#25 (7)
 {
  ["biddingStrategyId":protected]=>
  NULL
  ["biddingStrategyName":protected]=>
  NULL
  ["biddingStrategyType":protected]=>
  NULL
  ["biddingStrategySource":protected]=>
  NULL
  ["biddingScheme":protected]=>
  NULL
  ["bids":protected]=>
  array(1) {
[0]=>
object(Google\AdsApi\AdWords\v201710\cm\CpcBid)#13 (4) {
  ["bid":protected]=>
  object(Google\AdsApi\AdWords\v201710\cm\Money)#29 (3) {
["microAmount":protected]=>
int(3)
["ComparableValueType":protected]=>
NULL

["parameterMap":"Google\AdsApi\AdWords\v201710\cm\ComparableValue":private]=>
array(1) {
  ["ComparableValue.Type"]=>
  string(19) "ComparableValueType"
}
  }
  ["cpcBidSource":protected]=>
  NULL
  ["BidsType":protected]=>
  NULL
  ["parameterMap":"Google\AdsApi\AdWords\v201710\cm\Bids":private]=>
  array(1) {
["Bids.Type"]=>
string(8) "BidsType"
  }
}
  }
  ["targetRoasOverride":protected]=>
  NULL
}
["bidModifier":protected]=>
NULL
["finalUrls":protected]=>
object(Google\AdsApi\AdWords\v201710\cm\UrlList)#24 (1) {
  ["urls":protected]=>
  array(1) {
[0]=>
string(47) "http://www.MYDOMAIN.COM?src=cc=13345;
  }
}
["finalMobileUrls":protected]=>
NULL
["finalAppUrls":protected]=>
NULL
["trackingUrlTemplate":protected]=>
NULL
["urlCustomParameters":protected]=>
NULL
["adGroupId":protected]=>
float(53774068962)
["criterionUse":protected]=>
NULL
["criterion":protected]=>
object(Google\AdsApi\AdWords\v201710\cm\Keyword)#59 (6) {
  ["text":protected]=>
  string(9) "keyword 1"
  ["matchType":protected]=>
  string(5) "BROAD"
  ["id":protected]=>
  NULL
  ["type":protected]=>
  NULL
  ["CriterionType":protected]=>
  NULL
  
["parameterMap":"Google\AdsApi\AdWords\v201710\cm\Criterion":private]=>
  array(1) {
["Criterion.Type"]=>
string(13) "CriterionType"
  }
}
["labels":protected]=>
NULL
["forwardCompatibilityMap":protected]=>
NULL
["baseCampaignId":protected]=>
NULL
["baseAdGroupId":protected]=>
NULL
["AdGroupCriterionType":protected]=>
NULL

["parameterMap":"Google\AdsApi\AdWords\v201702\cm\AdGroupCriterion":private]
=>
array(1) {
  ["AdGroupCriterion.Type"]=>
  string(20) "AdGroupCriterionType"
}
  }
  ["exemptionRequests":protected]=>