error comes when updating final ur lUrlError.DESTINATION_URL_DEPRECATED @

2016-09-11 Thread caarif Ashraf
Hi

I got an error when i am trying to update criteria final url using PHP api.
these are my data Array ( [keyword_id] => 11285220 [Ad_group_id] => 
41568659428 [maxCPC] => 0.02 [Final_URL] =>
http://cas.info/utm_term=adwords-keyword 

 ) 
. I got error when try with these data. The error returned is { Âûáðîøåíî 
èñêëþ÷åíèå: [UrlError.DESTINATION_URL_DEPRECATED @ 
operations[0].operand.destinationUrl] }. Can anyone help me.
This is my code
 $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);
  echo 'Criterion selected';
  // Update destination URL.
  $adGroupCriterion->destinationUrl = $final_url;
 /* 
  // Set bids (optional).
$bid = new CpcBid();
$bid->bid =  new Money(50);
$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];
  echo 'Result after updation';
  print_r($adGroupCriterion);
  printf("Keyword with ID '%s' has updated destination URL '%s'.\n",
  $adGroupCriterion->criterion->id, $adGroupCriterion->destinationUrl);

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/dc296897-f200-4784-8cd2-ea77ea038ccc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to create a product group

2016-02-10 Thread caarif Ashraf
Hi
I just created a shopping campaign(ID:360564044) and adgroup(ID:25522879364) 
using adwords php API. How do i create product group using api. When i try to 
create using ProductPartition it show message An error has occurred: 
[CriterionError.INVALID_PRODUCT_BIDDING_CATEGORY @ 
operations[7].operand.criterion.caseValue; 
trigger:'ProductBiddingCategory{type=BIDDING_CATEGORY_L1, 
value=ProductCategoryId: -5914235892932915235}'].

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d5de88e8-8127-491e-842f-1e9e28f62210%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Collect Search head Using adwordsAPI

2015-05-28 Thread caarif Ashraf
How can i calculate each years  Search head of a keyword for last 10 years.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/2253be53-ec84-4f3a-8a1e-bff8086e2dff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Collect search head Usin adwordsAPI

2015-05-28 Thread caarif Ashraf
How can i calculate each years  Search head of a keyword for last 10 years.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/da5f7d8d-ca5f-4194-9d9c-75b1d6bfa351%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.