Re: Expression Rule User List Error

2018-07-12 Thread danny+awtest
For all who will has same problem as me. Here is solution: Correct code : In CustomAffinityService (initialized with *Google\AdsApi\AdWords\v201806\rm\CustomAffinityService*) you need create Custom Intent: /** * $data example: * [ * 'test' => 'www.test.com', * 'test 2' => 'ww

Re: Expression Rule User List Error

2018-07-12 Thread danny+awtest
For all who will has same problem as me. Here is solution: Correct code : In CustomAffinityService (initialized with Google\AdsApi\AdWords\v201806\rm\ CustomAffinityService) you need create Custom Intent: /** * $data example: * [ * 'test' => 'www.test.com', * 'test 2' => 'www.te

Re: Expression Rule User List Error

2018-07-11 Thread danny+awtest
Hi Nadine! As I explained before, I am creating custom intent in one part of code, and created it successful. I am getting response with all info about custom intent (id, name, desc etc.). May be I need create Intent with AdGroupCriterion, not as separate logic? But CriterionCustomAffinity has

Re: Expression Rule User List Error

2018-07-10 Thread danny+awtest
Hi Nadine! Glad to see you again! But I can not see how set name for ADD operation. At first I created CriterionCustomAffinity or CriterionCustomIntent (tried both) Than set custom affinity/intent id (2608877). also added criterion type - CUSTOM_INTENT or CUSTOM_AFFINITY (but I created affinity

Re: Expression Rule User List Error

2018-07-04 Thread danny+awtest
Hi Nadine, I have enabled logs already, so here is requestId - 00057017946dc9980a0dc447e2010d3a Sure, I will wait for your answer. Have a nice holidays) Danny. On Tuesday, July 3, 2018 at 9:46:58 PM UTC+3, Nadine Sundquist (AdWords API Team) wrote: > > Hello Danny, > > Could you please send m

Re: Expression Rule User List Error

2018-07-03 Thread danny+awtest
Hi Nadine! I tried code for: [AdGroupId] => 25768077653 [CustomIntentId] => 2608877 This AdGroup has display type, it's campaign also, I checked. But I am still having error "*[RequiredError.REQUIRED @ operations[0].operand.name*". Something is wrong. Maybe I set not all necessary parameters? C

Re: Expression Rule User List Error

2018-06-26 Thread danny+awtest
I also added next value: $userListCriterion->setCriterionType(CriterionType::CUSTOM_INTENT); so now I have: $userListCriterion = new CriterionCustomIntent(); $userListCriterion->setCustomIntentId($item['CustomIntentId']); $userListCriterion->setCriterionType(CriterionType::CUSTOM_INTENT);

Re: Expression Rule User List Error

2018-06-26 Thread danny+awtest
I checked creation of intent, and got successful response: Array ( [0] => Array ( [Id] => 2610756 [Status] => ENABLED [Name] => Test Custom Audience 3 [Type] => CUSTOM_INTENT [Description] => Test Custom Audience 3 cre

Re: Expression Rule User List Error

2018-06-26 Thread danny+awtest
Hi Nadine! Thank you, I successfully created Custom Intent due to your manual, but now have trouble how to link Intent to AdGroup if I have IntentID and AdGroup ID? My way with error: $operations = []; foreach ($data as $item) { if (!isset($item['AdGroupId'])) { throw new AdWordsC

Re: Expression Rule User List Error

2018-06-25 Thread danny+awtest
Yes. Error with ExpressionRuleUserList was that in including files part I had different library versions for classes. It produced incorrect SOAP request. But after execution code I understood that it was not what I needed. I need a CriterionCustomIntent

Re: Expression Rule User List Error

2018-06-22 Thread danny+awtest
I found error, but it was not correct audience type for me. I need custom intent, not "website visitors". I found it in v201806 How can I create correct Intent to use CriterionCustomIntent as next: public function createCustomIntentCriterion(array $data) { $operations = []; foreach ($dat

Re: Expression Rule User List Error

2018-06-22 Thread danny+awtest
On Friday, June 22, 2018 at 9:37:08 AM UTC+3, danny+...@pdffiller.com wrote: > > Hi! I am trying to create custom audience, but have > UserListError.CONCRETE_TYPE_REQUIRE > Error. > Here is my code on PHP (used example from > https://github.com/googleads/googleads-php-lib/blob/master/examples/

Expression Rule User List Error

2018-06-21 Thread danny+awtest
Hi! I am trying to create custom audience, but have UserListError.CONCRETE_TYPE_REQUIRE Error. Here is my code on PHP (used example from https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201806/Remarketing/AddRuleBasedUserLists.php ): public function addCustomIntentLi