Saturday, 30 April 2016

[firebird-support] Migrating from Super Classic FB 2.5.2 to SuperServer FB 3.0 could have a problems

 

Hi all,

Just migrating from SC FB 2.5.2 to SS FB 3.0 (both in Win x64), i found a few problems :

1) Query that runs about 2-3 secs in SC FB 2.5.2, runs minutes in SS FB 3.0
Query is something like this :

Select a.col1,b.col1 from tbl1 a, tbl2 b where a.id = b.id and b.id in (select c.id from tbl3 c)

SS FB 3.0 uses different query plan that not use indices, no wonder it was so slow.

Changed query to :
Select a.col1,b.col1 from tbl1 a, tbl2 b, tbl3 c where a.id = b.id and b.id= c.id

Runs around 1-2 secs in SS FB 3.0, but runs minutes in SC FB 2.5.2

2) Since in FB 3.0, SS is able to use SMP & shared Db Cache, I tried to set Db Cache to 512 MB via gfix. It was without error.

First connection is OK & I could saw that the actual Db cache size is around 300 MB. But after connection closed & tried to connect again, FB raised an error, something like connection lost.

Changed Db Cache to 256 MB fixed the problem. I think, for modern computer, 256 MB is too small.

Regards,
Anto.





__._,_.___

Posted by: trskopo@yahoo.com
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (1)

Upgrade your account with the latest Yahoo Mail app
Get organized with the fast and easy-to-use Yahoo Mail app. Upgrade today!

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Visit http://www.firebirdsql.org and click the Documentation item
on the main (top) menu.  Try FAQ and other links from the left-side menu there.

Also search the knowledgebases at http://www.ibphoenix.com/resources/documents/

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

.

__,_._,___

GEO_PERFORMANCE_REPORT error "String could not be parsed as XML".


In some cases I get an error when I run the GEO_PERFORMANCE_REPORT, the error is "String could not be parsed as XML".
The result of the report is an empty string.
I guess the error is due to the fact that this report does not support zero impressions.
How can I solve this error?

Thank you,

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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+unsubscribe@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+unsubscribe@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/38355153-abe2-4b62-a296-a62c20cf5cfa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Friday, 29 April 2016

Re: Script - Google Shopping Campaign - Auto CPC Bid



Hi,
working code for setting cpc bids for Shopping product partitions, I hope this will help you.

        operation = {
                        'xsi_type':'AdGroupCriterionOperation',
                        'operator': 'ADD',
                        'operand': {
                                    'xsi_type': 'BiddableAdGroupCriterion',
                                    'adGroupId': ad_group_id,
                                    'criterion': {
                                                    'xsi_type': 'ProductPartition',
                                                    'id': criterion_id
                                                },
                                    'biddingStrategyConfiguration': {
                                                                     'bids': [{
                                                                               'xsi_type': 'CpcBid',
                                                                               'bid': {
                                                                                         'microAmount': str(bid_modifier)
                                                                                       },
                                                                               }]
                                                                    }
                                    }
                        }

Let me know if you need more help in this!

NOTE : your shopping product partition structure should be proper

Thank You!
Anup Pathak

On Saturday, 30 April 2016 05:58:05 UTC+5:30, Josh Radcliff (AdWords API Team) wrote:
Hi,

It looks like you're missing the intermediate ProductPartition object. You'll want to create one of those with UNIT partition type and set its caseValue to the ProductOfferId. The BiddableAdGroupCriterion.criterion should point to that ProductPartition object instead of directly to the ProductOfferId.

I realize this can be a bit confusing. :) I'd definitely recommend looking at the createUnit function I mentioned earlier, as that handles most of this for you.

Cheers,
Josh, AdWords API Team

On Friday, April 29, 2016 at 5:39:46 PM UTC-4, Kevin Weitzner wrote:
Hi -- I think I am getting closer...


ad_group_id = '21********63'
criterion_id = '2523931-rou-6'

Function now looks like this -
def main(client):
    adgroup_criterion_service = client.GetService('AdGroupCriterionService', version='v201603')


    bid_modifier = '1.5'
    operations =  [{
                          'xsi_type':'AdGroupCriterionOperation',
                          'operator': 'SET',
                          'operand': {
                                      'xsi_type': 'BiddableAdGroupCriterion',
                                      'adGroupId': ad_group_id,
                                      'criterion': {
                                                    'xsi_type': 'ProductOfferId',
                                                    'value': criterion_id
                                                    },
                                       'bidModifier': bid_modifier

                            }
                          }]
    result = adgroup_criterion_service.mutate(operations)
--

I want to set an absolute CPC bid (variable name bid_modifier from earlier, $1.5) on an individual product ID -
I get this error:
suds.WebFault: Server raised fault: 'Unmarshalling Error: cvc-elt.4.3: Type 'ns0:ProductOfferId' is not validly derived from the type definition, 'Criterion', of element 'ns0:criterion'. '
-

Any ideas on what I have done wrong here




On Friday, April 29, 2016 at 4:07:34 PM UTC-5, Josh Radcliff (AdWords API Team) wrote:
Hi Kevin,

You can set bids at the product/item ID level by creating BiddableAdGroupCriterion objects with:

Cheers,
Josh, AdWords API Team

On Friday, April 29, 2016 at 4:31:51 PM UTC-4, Kevin Weitzner wrote:
Hi -- I am not certain how the last step should be executed --I am not getting any errors, however CPC for productID is not being set.

See script below:

ad_group_id = '**************'
criterion_id = '******'

def main(client):
    adgroup_criterion_service = client.GetService('AdGroupCriterionService', version='v201603')

    bid_modifier = '15'

    operations =  [{
                          'xsi_type':'AdGroupCriterionOperation',
                          'operator': 'SET',
                          'operand': {
                                      'xsi_type': 'BiddableAdGroupCriterion',
                                      'adGroupId': ad_group_id,
                                      'criterion': {
                                                    'xsi_type': 'ProductPartition',
                                                    'id': criterion_id
                                                    },
                                       'bidModifier':bid_modifier

                            }
                          }]

if __name__ == '__main__':
  adwords_client = adwords.AdWordsClient.LoadFromStorage('******.yaml')
  main(adwords_client)

--

I would like to be able to set the CPC of product Ids themselves by passing the appropriate product ID in the Criterion_ID --- I have thousands of products that I want to try a strategy on.  I believe the last step in the explanation is what I am missing here.

Thanks,
Kevin

On Thursday, September 25, 2014 at 12:00:28 PM UTC-5, Josh Radcliff (AdWords API Team) wrote:
Hi Steve,

Just to clarify - by "script" I'm assuming you mean code that executes methods in the AdWords API, and not AdWords Scripts. All management of product groups in the AdWords API is done via AdGroupCriterionService. The Shopping Guide contains a useful introduction to the concepts involved.

Once you have your product groups set up, you can modify a given product group's CPC bid by sending an AdGroupCriterionService.mutate call containing an AdGroupCriterionOperation where the operator is SET and the operand is a BiddableAdGroupCriterion with:
To monitor the performance of each product group (ProductPartition), you can use the API's Product Partition Report.

Cheers,
Josh, AdWords API Team

On Wednesday, September 24, 2014 10:41:29 AM UTC-4, Steve Berg wrote:
Hello,

I would like in my 30 Shopping Campaigns
the offer and the management of the CPC from the Product Groups automate.
For example, the CPC should be low in a low CTR
be in good conversion correspondingly higher.

How would a possible script look like?

Best Regards
- Steve -

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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+unsubscribe@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+unsubscribe@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/4615392f-99ba-4200-b25f-bd195927adbe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Re: Script - Google Shopping Campaign - Auto CPC Bid

Hi,

It looks like you're missing the intermediate ProductPartition object. You'll want to create one of those with UNIT partition type and set its caseValue to the ProductOfferId. The BiddableAdGroupCriterion.criterion should point to that ProductPartition object instead of directly to the ProductOfferId.

I realize this can be a bit confusing. :) I'd definitely recommend looking at the createUnit function I mentioned earlier, as that handles most of this for you.

Cheers,
Josh, AdWords API Team

On Friday, April 29, 2016 at 5:39:46 PM UTC-4, Kevin Weitzner wrote:
Hi -- I think I am getting closer...


ad_group_id = '21********63'
criterion_id = '2523931-rou-6'

Function now looks like this -
def main(client):
    adgroup_criterion_service = client.GetService('AdGroupCriterionService', version='v201603')


    bid_modifier = '1.5'
    operations =  [{
                          'xsi_type':'AdGroupCriterionOperation',
                          'operator': 'SET',
                          'operand': {
                                      'xsi_type': 'BiddableAdGroupCriterion',
                                      'adGroupId': ad_group_id,
                                      'criterion': {
                                                    'xsi_type': 'ProductOfferId',
                                                    'value': criterion_id
                                                    },
                                       'bidModifier': bid_modifier

                            }
                          }]
    result = adgroup_criterion_service.mutate(operations)
--

I want to set an absolute CPC bid (variable name bid_modifier from earlier, $1.5) on an individual product ID -
I get this error:
suds.WebFault: Server raised fault: 'Unmarshalling Error: cvc-elt.4.3: Type 'ns0:ProductOfferId' is not validly derived from the type definition, 'Criterion', of element 'ns0:criterion'. '
-

Any ideas on what I have done wrong here




On Friday, April 29, 2016 at 4:07:34 PM UTC-5, Josh Radcliff (AdWords API Team) wrote:
Hi Kevin,

You can set bids at the product/item ID level by creating BiddableAdGroupCriterion objects with:

Cheers,
Josh, AdWords API Team

On Friday, April 29, 2016 at 4:31:51 PM UTC-4, Kevin Weitzner wrote:
Hi -- I am not certain how the last step should be executed --I am not getting any errors, however CPC for productID is not being set.

See script below:

ad_group_id = '**************'
criterion_id = '******'

def main(client):
    adgroup_criterion_service = client.GetService('AdGroupCriterionService', version='v201603')

    bid_modifier = '15'

    operations =  [{
                          'xsi_type':'AdGroupCriterionOperation',
                          'operator': 'SET',
                          'operand': {
                                      'xsi_type': 'BiddableAdGroupCriterion',
                                      'adGroupId': ad_group_id,
                                      'criterion': {
                                                    'xsi_type': 'ProductPartition',
                                                    'id': criterion_id
                                                    },
                                       'bidModifier':bid_modifier

                            }
                          }]

if __name__ == '__main__':
  adwords_client = adwords.AdWordsClient.LoadFromStorage('******.yaml')
  main(adwords_client)

--

I would like to be able to set the CPC of product Ids themselves by passing the appropriate product ID in the Criterion_ID --- I have thousands of products that I want to try a strategy on.  I believe the last step in the explanation is what I am missing here.

Thanks,
Kevin

On Thursday, September 25, 2014 at 12:00:28 PM UTC-5, Josh Radcliff (AdWords API Team) wrote:
Hi Steve,

Just to clarify - by "script" I'm assuming you mean code that executes methods in the AdWords API, and not AdWords Scripts. All management of product groups in the AdWords API is done via AdGroupCriterionService. The Shopping Guide contains a useful introduction to the concepts involved.

Once you have your product groups set up, you can modify a given product group's CPC bid by sending an AdGroupCriterionService.mutate call containing an AdGroupCriterionOperation where the operator is SET and the operand is a BiddableAdGroupCriterion with:
To monitor the performance of each product group (ProductPartition), you can use the API's Product Partition Report.

Cheers,
Josh, AdWords API Team

On Wednesday, September 24, 2014 10:41:29 AM UTC-4, Steve Berg wrote:
Hello,

I would like in my 30 Shopping Campaigns
the offer and the management of the CPC from the Product Groups automate.
For example, the CPC should be low in a low CTR
be in good conversion correspondingly higher.

How would a possible script look like?

Best Regards
- Steve -

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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+unsubscribe@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+unsubscribe@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/5f2a9c93-adf1-4144-849d-c133ea256dc2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Re: Migration to v201603 error

Hi,

Glad to hear that the example worked. Since that ran OK, the issue seems to be with your Laravel setup. My PHP expertise is limited, so bear with me :), but have you completed the following steps from the README (or their Laravel equivalents) in that environment?

To install the client library, either copy the lib/ folder into where you store your PHP source files that is on your PHP include path, or add the current directory path of the lib/ folder to your PHP include path.

Thanks,
Josh, AdWords API Team

On Friday, April 29, 2016 at 5:23:15 PM UTC-4, Sabri Karagönen wrote:
Tried it and example file worked successfully. 

Actually I'm using laravel and wrote AdWords report functions in a helper file. Then, call these helper functions from Controller files.

It was working before version update as I mentioned above. 

29 Nisan 2016 Cuma 21:41:41 UTC+3 tarihinde Josh Radcliff (AdWords API Team) yazdı:
Hi,

Are you running a script you created or the DownloadCriteriaReport.php example from the library? If you're running your own script, could you try the example from the library and let me know if you see the same error?

Thanks,
Josh, AdWords API Team

On Friday, April 29, 2016 at 2:02:56 PM UTC-4, Sabri Karagönen wrote:
Hi Josh,

Of course, i tried it and I got 'v201603'. I also changed versions to 201601 and 201509, it didn't change anything.
Interestingly, I found that 
When I use Selector after ManagedCustomerService, it works:
$managedCustomerService = $user->GetService('ManagedCustomerService', 'v201603');
        
$selector = new Selector();

However, it doesn't work with ReportDefinitionService: (There is no problem with ADWORDS_VERSION, it prints v201603)

$campaignService = $user->GetService('ReportDefinitionService', ADWORDS_VERSION);
    
$selector = new Selector();




29 Nisan 2016 Cuma 19:38:29 UTC+3 tarihinde Josh Radcliff (AdWords API Team) yazdı:
Hi Sabri, Anti,

Could you add a line to print ADWORDS_VERSION before the line that's failing? I want to confirm that it's set to "v201603".

Thanks,
Josh, AdWords API Team

On Thursday, April 28, 2016 at 4:16:22 PM UTC-4, Sabri Karagönen wrote:
Hi,

I'm having same problem. 
It just occured after I updated AdWords API via Composer from v6.6 to last version. So I don't think there is a missing file, etc.

    $campaignService = $user->GetService('ReportDefinitionService', ADWORDS_VERSION);
    
    $selector = new Selector();
    $selector->fields = $reportFields;

Error is threw at second line that is bold. 

Thanks, 
Sabri


25 Nisan 2016 Pazartesi 15:52:25 UTC+3 tarihinde Anti Lolo yazdı:
I got this error after set up my php adwords api  from v201506 to new v201603.

Fatal error: Class Selector not found in project ....

So uncommon error , did not find anything similar to find a solution.  

Please help.

Thanks
Anti 


--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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+unsubscribe@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+unsubscribe@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/637a3e48-31ed-4357-9d09-de07e2878ce1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Re: Script - Google Shopping Campaign - Auto CPC Bid

Hi -- I think I am getting closer...


ad_group_id = '21********63'
criterion_id = '2523931-rou-6'

Function now looks like this -
def main(client):
    adgroup_criterion_service = client.GetService('AdGroupCriterionService', version='v201603')


    bid_modifier = '1.5'
    operations =  [{
                          'xsi_type':'AdGroupCriterionOperation',
                          'operator': 'SET',
                          'operand': {
                                      'xsi_type': 'BiddableAdGroupCriterion',
                                      'adGroupId': ad_group_id,
                                      'criterion': {
                                                    'xsi_type': 'ProductOfferId',
                                                    'value': criterion_id
                                                    },
                                       'bidModifier': bid_modifier

                            }
                          }]
    result = adgroup_criterion_service.mutate(operations)
--

I want to set an absolute CPC bid (variable name bid_modifier from earlier, $1.5) on an individual product ID -
I get this error:
suds.WebFault: Server raised fault: 'Unmarshalling Error: cvc-elt.4.3: Type 'ns0:ProductOfferId' is not validly derived from the type definition, 'Criterion', of element 'ns0:criterion'. '
-

Any ideas on what I have done wrong here




On Friday, April 29, 2016 at 4:07:34 PM UTC-5, Josh Radcliff (AdWords API Team) wrote:
Hi Kevin,

You can set bids at the product/item ID level by creating BiddableAdGroupCriterion objects with:

Cheers,
Josh, AdWords API Team

On Friday, April 29, 2016 at 4:31:51 PM UTC-4, Kevin Weitzner wrote:
Hi -- I am not certain how the last step should be executed --I am not getting any errors, however CPC for productID is not being set.

See script below:

ad_group_id = '**************'
criterion_id = '******'

def main(client):
    adgroup_criterion_service = client.GetService('AdGroupCriterionService', version='v201603')

    bid_modifier = '15'

    operations =  [{
                          'xsi_type':'AdGroupCriterionOperation',
                          'operator': 'SET',
                          'operand': {
                                      'xsi_type': 'BiddableAdGroupCriterion',
                                      'adGroupId': ad_group_id,
                                      'criterion': {
                                                    'xsi_type': 'ProductPartition',
                                                    'id': criterion_id
                                                    },
                                       'bidModifier':bid_modifier

                            }
                          }]

if __name__ == '__main__':
  adwords_client = adwords.AdWordsClient.LoadFromStorage('******.yaml')
  main(adwords_client)

--

I would like to be able to set the CPC of product Ids themselves by passing the appropriate product ID in the Criterion_ID --- I have thousands of products that I want to try a strategy on.  I believe the last step in the explanation is what I am missing here.

Thanks,
Kevin

On Thursday, September 25, 2014 at 12:00:28 PM UTC-5, Josh Radcliff (AdWords API Team) wrote:
Hi Steve,

Just to clarify - by "script" I'm assuming you mean code that executes methods in the AdWords API, and not AdWords Scripts. All management of product groups in the AdWords API is done via AdGroupCriterionService. The Shopping Guide contains a useful introduction to the concepts involved.

Once you have your product groups set up, you can modify a given product group's CPC bid by sending an AdGroupCriterionService.mutate call containing an AdGroupCriterionOperation where the operator is SET and the operand is a BiddableAdGroupCriterion with:
To monitor the performance of each product group (ProductPartition), you can use the API's Product Partition Report.

Cheers,
Josh, AdWords API Team

On Wednesday, September 24, 2014 10:41:29 AM UTC-4, Steve Berg wrote:
Hello,

I would like in my 30 Shopping Campaigns
the offer and the management of the CPC from the Product Groups automate.
For example, the CPC should be low in a low CTR
be in good conversion correspondingly higher.

How would a possible script look like?

Best Regards
- Steve -

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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+unsubscribe@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+unsubscribe@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/1aaafb2f-c9ab-4d8b-b759-00d4a444dda4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Re: Migration to v201603 error

Tried it and example file worked successfully. 

Actually I'm using laravel and wrote AdWords report functions in a helper file. Then, call these helper functions from Controller files.

It was working before version update as I mentioned above. 

29 Nisan 2016 Cuma 21:41:41 UTC+3 tarihinde Josh Radcliff (AdWords API Team) yazdı:
Hi,

Are you running a script you created or the DownloadCriteriaReport.php example from the library? If you're running your own script, could you try the example from the library and let me know if you see the same error?

Thanks,
Josh, AdWords API Team

On Friday, April 29, 2016 at 2:02:56 PM UTC-4, Sabri Karagönen wrote:
Hi Josh,

Of course, i tried it and I got 'v201603'. I also changed versions to 201601 and 201509, it didn't change anything.
Interestingly, I found that 
When I use Selector after ManagedCustomerService, it works:
$managedCustomerService = $user->GetService('ManagedCustomerService', 'v201603');
        
$selector = new Selector();

However, it doesn't work with ReportDefinitionService: (There is no problem with ADWORDS_VERSION, it prints v201603)

$campaignService = $user->GetService('ReportDefinitionService', ADWORDS_VERSION);
    
$selector = new Selector();




29 Nisan 2016 Cuma 19:38:29 UTC+3 tarihinde Josh Radcliff (AdWords API Team) yazdı:
Hi Sabri, Anti,

Could you add a line to print ADWORDS_VERSION before the line that's failing? I want to confirm that it's set to "v201603".

Thanks,
Josh, AdWords API Team

On Thursday, April 28, 2016 at 4:16:22 PM UTC-4, Sabri Karagönen wrote:
Hi,

I'm having same problem. 
It just occured after I updated AdWords API via Composer from v6.6 to last version. So I don't think there is a missing file, etc.

    $campaignService = $user->GetService('ReportDefinitionService', ADWORDS_VERSION);
    
    $selector = new Selector();
    $selector->fields = $reportFields;

Error is threw at second line that is bold. 

Thanks, 
Sabri


25 Nisan 2016 Pazartesi 15:52:25 UTC+3 tarihinde Anti Lolo yazdı:
I got this error after set up my php adwords api  from v201506 to new v201603.

Fatal error: Class Selector not found in project ....

So uncommon error , did not find anything similar to find a solution.  

Please help.

Thanks
Anti 


--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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+unsubscribe@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+unsubscribe@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/f319f539-7b85-4c05-86d2-27bafd8e843a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Re: Script - Google Shopping Campaign - Auto CPC Bid

Hi Kevin,

You can set bids at the product/item ID level by creating BiddableAdGroupCriterion objects with:

Cheers,
Josh, AdWords API Team

On Friday, April 29, 2016 at 4:31:51 PM UTC-4, Kevin Weitzner wrote:
Hi -- I am not certain how the last step should be executed --I am not getting any errors, however CPC for productID is not being set.

See script below:

ad_group_id = '**************'
criterion_id = '******'

def main(client):
    adgroup_criterion_service = client.GetService('AdGroupCriterionService', version='v201603')

    bid_modifier = '15'

    operations =  [{
                          'xsi_type':'AdGroupCriterionOperation',
                          'operator': 'SET',
                          'operand': {
                                      'xsi_type': 'BiddableAdGroupCriterion',
                                      'adGroupId': ad_group_id,
                                      'criterion': {
                                                    'xsi_type': 'ProductPartition',
                                                    'id': criterion_id
                                                    },
                                       'bidModifier':bid_modifier

                            }
                          }]

if __name__ == '__main__':
  adwords_client = adwords.AdWordsClient.LoadFromStorage('******.yaml')
  main(adwords_client)

--

I would like to be able to set the CPC of product Ids themselves by passing the appropriate product ID in the Criterion_ID --- I have thousands of products that I want to try a strategy on.  I believe the last step in the explanation is what I am missing here.

Thanks,
Kevin

On Thursday, September 25, 2014 at 12:00:28 PM UTC-5, Josh Radcliff (AdWords API Team) wrote:
Hi Steve,

Just to clarify - by "script" I'm assuming you mean code that executes methods in the AdWords API, and not AdWords Scripts. All management of product groups in the AdWords API is done via AdGroupCriterionService. The Shopping Guide contains a useful introduction to the concepts involved.

Once you have your product groups set up, you can modify a given product group's CPC bid by sending an AdGroupCriterionService.mutate call containing an AdGroupCriterionOperation where the operator is SET and the operand is a BiddableAdGroupCriterion with:
To monitor the performance of each product group (ProductPartition), you can use the API's Product Partition Report.

Cheers,
Josh, AdWords API Team

On Wednesday, September 24, 2014 10:41:29 AM UTC-4, Steve Berg wrote:
Hello,

I would like in my 30 Shopping Campaigns
the offer and the management of the CPC from the Product Groups automate.
For example, the CPC should be low in a low CTR
be in good conversion correspondingly higher.

How would a possible script look like?

Best Regards
- Steve -

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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+unsubscribe@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+unsubscribe@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/c7993958-739d-4b32-bbe9-9ffd3c5bcb95%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.