Error in AddKeyword.php sample [AdGroupCriterionError.CONCRETE_TYPE_REQUIRED @ operations[0].operand.criterion; trigger:'Criterion', ]

44 views
Skip to first unread message

Victor P

unread,
Sep 5, 2017, 3:01:26 PM9/5/17
to AdWords API Forum
Hello,

I am working in the library to add keywords using php and I get permatively the following error with the basic example:ror:

[AdGroupCriterionError.CONCRETE_TYPE_REQUIRED @ operations[0].operand.criterion; trigger:'Criterion'
:
Attempt to add criteriontype unsuccessfully:

    $keyword = new Keyword();
    $keyword->setText('Cobalt Prova');
    $keyword->setMatchType(KeywordMatchType::EXACT); 
    $keyword->setCriterionType(CriterionType::KEYWORD);

and set AdgroupCriterionType:

   $adGroupCriterion = new BiddableAdGroupCriterion();
    $adGroupCriterion->setCriterion($keyword);
    $adGroupCriterion->setAdGroupId($adGroupId);    
    $adGroupCriterion->setAdGroupCriterionType("BiddableAdGroupCriterion");

Any idea what may be going on?

Thank you!





Shwetha Vastrad (AdWords API Team)

unread,
Sep 5, 2017, 5:18:45 PM9/5/17
to AdWords API Forum
Hi Victor, 

Could you enable logging and provide the SOAP request and response logs for this AdGroupCriterionOperation so I can take a look? Please use Reply privately to author when responding. 

Thanks,
Shwetha, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages