Hi,
I using the UpdateKeyword.php file to change the status of the keyword and maxcpc of the keyword but the changes are not reflecting in my google adwords dashboard can you please tell me the procedure to find it out ! The file is executing but the status is not changing and amount also is not changing in dashborad. And my code is : $status=$_POST['stat']; $accountid=$_POST['accid']; $keyword=$_POST['keywords']; $maxCPC=$_POST['maxcpc']; $amount=$maxCPC*1000000; $status=$_POST['stat']; echo "status is:".$status; //echo "cpc is:".$maxCPC; $criterionId=$_POST['keywordid']; $adGroupId=$_POST['groupid']; function UpdateKeywordExample(AdWordsUser $user, $adGroupId, $criterionId) { // Get the service, which loads the required classes. $adGroupCriterionService = $user->GetService('AdGroupCriterionService', ADWORDS_VERSION); // Create ad group criterion. $adGroupCriterion = new BiddableAdGroupCriterion(); $adGroupCriterion->adGroupId = $adGroupId; // Create criterion using an existing ID. Use the base class Criterion // instead of Keyword to avoid having to set keyword-specific fields. $adGroupCriterion->criterion = new Criterion($criterionId); $adGroupCriterion->userStatus = $status; // Update destination URL. //$adGroupCriterion->destinationUrl = 'http://www.example.com/new'; $bid = new CpcBid(); $bid->bid = new Money($amount); $biddingStrategyConfiguration = new BiddingStrategyConfiguration(); $biddingStrategyConfiguration->bids[] = $bid; $adGroupCriterion->biddingStrategyConfiguration = $biddingStrategyConfiguration; // Create operation. $operation = new AdGroupCriterionOperation(); $operation->operand = $adGroupCriterion; $operation->operator = 'SET'; $operations = array($operation); // Make the mutate request. $result = $adGroupCriterionService->mutate($operations); // Display result. $adGroupCriterion = $result->value[0]; printf("Keyword with ID '%s' has updated status '%s'.\n", $adGroupCriterion->criterion->id, $adGroupCriterion->userStatus); } -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 http://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/a2bfa927-0ca9-42f6-9235-082c43022660%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.