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 );

Thank you for the help!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/783ad2e1-83bb-436e-b144-b6feaf549dee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • AdGroupC... TommyTek
    • Re:... 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum
    • Re:... TommyTek
    • Re:... TommyTek
    • Re:... TommyTek
      • ... 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum

Reply via email to