Re: Why CriterionError.CANNOT_BID_MODIFY_CRITERION_TYPE on Keywords?

2018-06-27 Thread Ken Dan Tinio
here is my final code:

*$adGroupCriterionService = $adWordsServices->get($session, 
AdGroupCriterionService::class);*

*$operations = [];*

*$keyword = new Keyword();*
*$keyword->setId($criterionId);*

*$adGroupCriterion = new BiddableAdGroupCriterion();*
*$adGroupCriterion->setAdGroupId($adGroupId);*
*$adGroupCriterion->setCriterion($keyword);*
*$adGroupCriterion->setBidModifier(1.5);*

*// Create ad group criterion operation and add it to the list.*
*$operation = new AdGroupCriterionOperation();*
*$operation->setOperand($adGroupCriterion);*
*$operation->setOperator(Operator::SET);*
*$operations[] = $operation;*

*$result = $adGroupCriterionService->mutate($operations);*

*$adGroupCriterion = $result->getValue()[0];*

*$data = array(*
*"message" => "Keyword with ID %d has updated final URL ",*
*"id"  => $adGroupCriterion->getCriterion()->getId()*
*);*

*array_push(self::$keywords, $data);*

And I am not using SOAP.

The error is:


**
*Fatal error:  Uncaught 
Google\AdsApi\AdWords\v201806\cm\ApiException: 
[CriterionError.CANNOT_BID_MODIFY_CRITERION_TYPE @ 
operations[0].operand.bidModifier] in 
/Applications/MAMP/htdocs/native_adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php:43*
*Stack trace:*
*#0 
/Applications/MAMP/htdocs/native_adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php(43):
 
ReflectionClass-newInstanceArgs(Array)*
*#1 
/Applications/MAMP/htdocs/native_adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(202):
 
Google\AdsApi\Common\Util\Reflection-createInstance('Google\\AdsApi\\A...', 
Array)*
*#2 
/Applications/MAMP/htdocs/native_adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(164):
 
Google\AdsApi\Common\AdsSoapClient-parseApiExceptionFromSoapFault(Object(SoapFault))*
*#3 
/Applications/MAMP/htdocs/native_adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/AdWords/v201806/cm/AdGroupCriterionService.php(198
 
in*
*/Applications/MAMP/htdocs/native_adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php
 
on line*
*43*
**

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/840a131c-7cd5-4f43-b8a0-b4fe0e41f533%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Why CriterionError.CANNOT_BID_MODIFY_CRITERION_TYPE on Keywords?

2018-06-27 Thread Ken Dan Tinio
here is my final code:

*$adGroupCriterionService = $adWordsServices->get($session, 
AdGroupCriterionService::class);*

*$operations = [];*

*$keyword = new Keyword();*
*$keyword->setId($criterionId);*

*$adGroupCriterion = new BiddableAdGroupCriterion();*
*$adGroupCriterion->setAdGroupId($adGroupId);*
*$adGroupCriterion->setCriterion($keyword);*
*$adGroupCriterion->setBidModifier(1.5);*

*// Create ad group criterion operation and add it to the list.*
*$operation = new AdGroupCriterionOperation();*
*$operation->setOperand($adGroupCriterion);*
*$operation->setOperator(Operator::SET);*
*$operations[] = $operation;*

*$result = $adGroupCriterionService->mutate($operations);*

*$adGroupCriterion = $result->getValue()[0];*

*$data = array(*
*"message" => "Keyword with ID %d has updated final URL ",*
*"id"  => $adGroupCriterion->getCriterion()->getId()*
*);*

*array_push(self::$keywords, $data);*

And I am not using SOAP.

On Wednesday, June 27, 2018 at 3:40:39 PM UTC+8, Ken Dan Tinio wrote:
>
> I have this code that bid adjust on a specific keyword:
>
> *$adGroupCriterionService = $adWordsServices->get($session, 
> AdGroupCriterionService::class);*
>
> *$operations = [];*
>
> *$keyword = new Keyword();*
> *$keyword->setId($criterionId);*
> *$keyword->setText('best science magazines');*
> *$keyword->setMatchType(KeywordMatchType::BROAD);*
>
> *$adGroupCriterion = new BiddableAdGroupCriterion();*
> *$adGroupCriterion->setAdGroupId($adGroupId);*
> *$adGroupCriterion->setCriterion($keyword);*
> *$adGroupCriterion->setBidModifier(1.5);*
>
> *// Create ad group criterion operation and add it to the list.*
> *$operation = new AdGroupCriterionOperation();*
> *$operation->setOperand($adGroupCriterion);*
> *$operation->setOperator(Operator::ADD);*
> *$operations[] = $operation;*
>
> *// Create the ad group criteria on the server and print out some 
> information*
> *// for each created ad group criterion.*
> *// try {*
> *$result = $adGroupCriterionService->mutate($operations);*
> *// } catch (\Exception $e) {*
> *// return array(*
> *//   "status"  => "fail",*
> *//   "message" => 'Caught exception: '.  $e->getMessage()*
> *// );*
> *// }*
>
> *$adGroupCriterion = $result->getValue()[0];*
>
> *$data = array(*
> *"message" => "Keyword with ID %d has updated final URL ",*
> *"id"  => $adGroupCriterion->getCriterion()->getId()*
> *);*
>
> *array_push(self::$keywords, $data);*
>
> The error is:
>
> **
> *Fatal error:  Uncaught 
> Google\AdsApi\AdWords\v201806\cm\ApiException: 
> [CriterionError.CANNOT_BID_MODIFY_CRITERION_TYPE @ 
> operations[0].operand.bidModifier] in 
> /Applications/MAMP/htdocs/native_adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php:43*
> *Stack trace:*
> *#0 
> /Applications/MAMP/htdocs/native_adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php(43):
>  
> ReflectionClass-newInstanceArgs(Array)*
> *#1 
> /Applications/MAMP/htdocs/native_adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(202):
>  
> Google\AdsApi\Common\Util\Reflection-createInstance('Google\\AdsApi\\A...',
>  
> Array)*
> *#2 
> /Applications/MAMP/htdocs/native_adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(164):
>  
> Google\AdsApi\Common\AdsSoapClient-parseApiExceptionFromSoapFault(Object(SoapFault))*
> *#3 
> /Applications/MAMP/htdocs/native_adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/AdWords/v201806/cm/AdGroupCriterionService.php(198
>  
> in*
> */Applications/MAMP/htdocs/native_adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php
>  
> on line*
> *43*
> **
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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+

Re: Why CriterionError.CANNOT_BID_MODIFY_CRITERION_TYPE on Keywords?

2018-06-27 Thread Ken Dan Tinio
Yes, finally, someone answered, thank you.

Yes this is an existing keyword that I am trying to bid adjust.

On Wednesday, June 27, 2018 at 3:40:39 PM UTC+8, Ken Dan Tinio wrote:
>
> I have this code that bid adjust on a specific keyword:
>
> *$adGroupCriterionService = $adWordsServices->get($session, 
> AdGroupCriterionService::class);*
>
> *$operations = [];*
>
> *$keyword = new Keyword();*
> *$keyword->setId($criterionId);*
> *$keyword->setText('best science magazines');*
> *$keyword->setMatchType(KeywordMatchType::BROAD);*
>
> *$adGroupCriterion = new BiddableAdGroupCriterion();*
> *$adGroupCriterion->setAdGroupId($adGroupId);*
> *$adGroupCriterion->setCriterion($keyword);*
> *$adGroupCriterion->setBidModifier(1.5);*
>
> *// Create ad group criterion operation and add it to the list.*
> *$operation = new AdGroupCriterionOperation();*
> *$operation->setOperand($adGroupCriterion);*
> *$operation->setOperator(Operator::ADD);*
> *$operations[] = $operation;*
>
> *// Create the ad group criteria on the server and print out some 
> information*
> *// for each created ad group criterion.*
> *// try {*
> *$result = $adGroupCriterionService->mutate($operations);*
> *// } catch (\Exception $e) {*
> *// return array(*
> *//   "status"  => "fail",*
> *//   "message" => 'Caught exception: '.  $e->getMessage()*
> *// );*
> *// }*
>
> *$adGroupCriterion = $result->getValue()[0];*
>
> *$data = array(*
> *"message" => "Keyword with ID %d has updated final URL ",*
> *"id"  => $adGroupCriterion->getCriterion()->getId()*
> *);*
>
> *array_push(self::$keywords, $data);*
>
> The error is:
>
> **
> *Fatal error:  Uncaught 
> Google\AdsApi\AdWords\v201806\cm\ApiException: 
> [CriterionError.CANNOT_BID_MODIFY_CRITERION_TYPE @ 
> operations[0].operand.bidModifier] in 
> /Applications/MAMP/htdocs/native_adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php:43*
> *Stack trace:*
> *#0 
> /Applications/MAMP/htdocs/native_adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php(43):
>  
> ReflectionClass-newInstanceArgs(Array)*
> *#1 
> /Applications/MAMP/htdocs/native_adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(202):
>  
> Google\AdsApi\Common\Util\Reflection-createInstance('Google\\AdsApi\\A...',
>  
> Array)*
> *#2 
> /Applications/MAMP/htdocs/native_adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(164):
>  
> Google\AdsApi\Common\AdsSoapClient-parseApiExceptionFromSoapFault(Object(SoapFault))*
> *#3 
> /Applications/MAMP/htdocs/native_adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/AdWords/v201806/cm/AdGroupCriterionService.php(198
>  
> in*
> */Applications/MAMP/htdocs/native_adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php
>  
> on line*
> *43*
> **
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/cd031193-03f7-4e92-bab2-a6763eb958a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Why CriterionError.CANNOT_BID_MODIFY_CRITERION_TYPE on Keywords?

2018-06-27 Thread Ken Dan Tinio
I have this code that bid adjust on a specific keyword:

*$adGroupCriterionService = $adWordsServices->get($session, 
AdGroupCriterionService::class);*

*$operations = [];*

*$keyword = new Keyword();*
*$keyword->setId($criterionId);*
*$keyword->setText('best science magazines');*
*$keyword->setMatchType(KeywordMatchType::BROAD);*

*$adGroupCriterion = new BiddableAdGroupCriterion();*
*$adGroupCriterion->setAdGroupId($adGroupId);*
*$adGroupCriterion->setCriterion($keyword);*
*$adGroupCriterion->setBidModifier(1.5);*

*// Create ad group criterion operation and add it to the list.*
*$operation = new AdGroupCriterionOperation();*
*$operation->setOperand($adGroupCriterion);*
*$operation->setOperator(Operator::ADD);*
*$operations[] = $operation;*

*// Create the ad group criteria on the server and print out some 
information*
*// for each created ad group criterion.*
*// try {*
*$result = $adGroupCriterionService->mutate($operations);*
*// } catch (\Exception $e) {*
*// return array(*
*//   "status"  => "fail",*
*//   "message" => 'Caught exception: '.  $e->getMessage()*
*// );*
*// }*

*$adGroupCriterion = $result->getValue()[0];*

*$data = array(*
*"message" => "Keyword with ID %d has updated final URL ",*
*"id"  => $adGroupCriterion->getCriterion()->getId()*
*);*

*array_push(self::$keywords, $data);*

The error is:

**
*Fatal error:  Uncaught 
Google\AdsApi\AdWords\v201806\cm\ApiException: 
[CriterionError.CANNOT_BID_MODIFY_CRITERION_TYPE @ 
operations[0].operand.bidModifier] in 
/Applications/MAMP/htdocs/native_adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php:43*
*Stack trace:*
*#0 
/Applications/MAMP/htdocs/native_adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php(43):
 
ReflectionClass-newInstanceArgs(Array)*
*#1 
/Applications/MAMP/htdocs/native_adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(202):
 
Google\AdsApi\Common\Util\Reflection-createInstance('Google\\AdsApi\\A...', 
Array)*
*#2 
/Applications/MAMP/htdocs/native_adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(164):
 
Google\AdsApi\Common\AdsSoapClient-parseApiExceptionFromSoapFault(Object(SoapFault))*
*#3 
/Applications/MAMP/htdocs/native_adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/AdWords/v201806/cm/AdGroupCriterionService.php(198
 
in*
*/Applications/MAMP/htdocs/native_adwords/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php
 
on line*
*43*
**

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/d64ca82b-4944-4855-bc63-568c0c893a1f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Is it possible to Bid adjust in keywords in google adwords console?

2018-06-27 Thread Ken Dan Tinio
can you also help me answer 
this? 
https://groups.google.com/forum/?utm_medium=email_source=footer#!topic/adwords-api/ROf0EnScesY

thanks!



On Wednesday, June 27, 2018 at 12:45:32 PM UTC+8, Ken Dan Tinio wrote:
>
> Is it possible to Bid adjust in keywords in google adwords console?  What 
> I mean is in the UI
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/3bd1b60b-20d5-4051-a8f0-3db15f566903%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Is it possible to Bid adjust in keywords in google adwords console?

2018-06-26 Thread Ken Dan Tinio
Is it possible to Bid adjust in keywords in google adwords console?  What I 
mean is in the UI

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/e7f1771f-1984-4604-83d4-eb44ce572528%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


is it possible to bid adjust on keywords?

2018-06-26 Thread Ken Dan Tinio
is it possible to bid adjust on keywords?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/2f02772a-e430-4bf9-9e03-09bd02e06452%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: convert bid modifier to percentage

2018-05-07 Thread Ken Dan Tinio
Okay thanks! :)

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/45111c13-8122-4d97-ad1b-9e3b0689e8f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to set bid modifier to nothing?

2018-05-07 Thread Ken Dan Tinio
Works perfectly! :)

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/841d42d9-396f-4c2a-a1b8-c384dcda058e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to set bid modifier to nothing?

2018-05-04 Thread Ken Dan Tinio
I wanted to set modifier to nothing. But I end up removing the criteria.

This is my code. It removes the criteria. I wanted to make it back to 
nothing (not 0% but just no number)

$biddableAdGroupCriterion = new BiddableAdGroupCriterion();
$biddableAdGroupCriterion->setAdGroupId($adGroupId);
$biddableAdGroupCriterion->setCriterion($target);

$biddableAdGroupCriterionOperation = new AdGroupCriterionOperation();

$biddableAdGroupCriterionOperation->setOperand($biddableAdGroupCriterion);
$biddableAdGroupCriterionOperation->setOperator(Operator::REMOVE);

$operations[] = $biddableAdGroupCriterionOperation;
  
$result = $adGroupCriterionService->mutate($operations);

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/13cc16e3-7819-4af4-a957-53cfd15be62e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: convert bid modifier to percentage

2018-05-04 Thread Ken Dan Tinio
I actually looking for a mathematical way of converting 1.5 to 50%.

like 1.5 * 100 = 150% (this is wrong)

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/cf00a470-cf24-41c3-ab37-93505d807cd1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


convert bid modifier to percentage

2018-05-04 Thread Ken Dan Tinio
Example I have 1.5 and I want it display as 100%

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/fec0fdd8-aad9-4e08-a39d-f5b3e6bebbcc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to bid adjust in Devices?

2018-04-27 Thread Ken Dan Tinio
Thank you very much! you killed it! you rock!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/a9c1e351-9ef2-49d9-88d8-2cf341b20d89%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to bid adjust in Platforms?

2018-04-27 Thread Ken Dan Tinio
So far I have this but doesn't seem to work


$devices = new Platform();
// $devices->setPlatformName('Desktop');
$devices->setId(3);

$biddableAdGroupCriterion = new BiddableAdGroupCriterion();
$biddableAdGroupCriterion->setAdGroupId(52012184360);
$biddableAdGroupCriterion->setCriterion($devices);
$biddableAdGroupCriterion->setBidModifier(1.5);

$adGroupCriterionOperation = new AdGroupCriterionOperation();
$adGroupCriterionOperation->setOperand($biddableAdGroupCriterion);
$adGroupCriterionOperation->setOperator(Operator::SET);
$operations[] = $adGroupCriterionOperation;   

$result = $adGroupCriterionService->mutate($operations);

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/bb50be47-293e-4c8a-90b7-c88ce418b997%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to bid adjust in Devices?

2018-04-26 Thread Ken Dan Tinio
So far I have this but doesn't seem to work


$devices = new Platform();
// $devices->setPlatformName('Desktop');
$devices->setId(3);

$biddableAdGroupCriterion = new BiddableAdGroupCriterion();
$biddableAdGroupCriterion->setAdGroupId(52012184360);
$biddableAdGroupCriterion->setCriterion($devices);
$biddableAdGroupCriterion->setBidModifier(1.5);

$adGroupCriterionOperation = new AdGroupCriterionOperation();
$adGroupCriterionOperation->setOperand($biddableAdGroupCriterion);
$adGroupCriterionOperation->setOperator(Operator::SET);
$operations[] = $adGroupCriterionOperation;   

$result = $adGroupCriterionService->mutate($operations);

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/b4d8623d-521e-4640-9396-c8a2c9204f9b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to bid adjust in Devices?

2018-04-26 Thread Ken Dan Tinio
How to increase bid adjust in Devices?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/7dbe11ad-af89-4a4a-9304-b54d2ec56fb3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Whats new in v201802?

2018-04-09 Thread Ken Dan Tinio
Can anyone give me a link where to read some update logs on whats new on 
this version v201802?

Thank you very much!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ae4a2f0b-e180-49a6-b9b0-b1caf3ab7df4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Fwd: ADGROUP_PERFORMANCE_REPORT showing odd data

2018-03-21 Thread Ken Dan Tinio
-- Forwarded message --
From: Ken Dan Tinio <ken...@blvnp.com>
Date: Wed, Mar 21, 2018 at 6:06 PM
Subject: Re: ADGROUP_PERFORMANCE_REPORT showing odd data
To: adwordsapiadvisor+luisxan...@google.com


$report = 'ADGROUP_PERFORMANCE_REPORT';
$tableName = 'example_'.$report;
$dateRangeType = 'LAST_6_MONTHS';

$dateRange = [
// 'min' => '20180101',
// 'max' => '20180107',
];

$fields = [
'CpcBid',
'AccountDescriptiveName',
'ExternalCustomerId',
'AdGroupId',
'CampaignId',
'Device',
'AdGroupDesktopBidModifier',
'AdGroupTabletBidModifier',
'AdGroupMobileBidModifier',
'AverageCost',
'Clicks',
'Conversions',
'Cost',
'Date',
];

On Wed, Mar 21, 2018 at 5:51 PM, 'Luis Xander Talag (AdWords API Team)' via
AdWords API Forum <adwords-api@googlegroups.com> wrote:

> Hi Ken,
>
> To further investigate this, could you provide the complete report
> definition
> <https://developers.google.com/adwords/api/docs/guides/reporting#create_a_report_definition>
>  for
> this report as well as your client customer id? Please reply via *Reply
> privately to author*.
>
> Thanks and regards,
> Luis
> AdWords API Team
>
> --
> --
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> 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 a topic in the
> Google Groups "AdWords API Forum" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/to
> pic/adwords-api/bxzl1ApMewo/unsubscribe.
> To unsubscribe from this group and all its topics, 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/ms
> gid/adwords-api/71a12b93-0431-4af6-ba61-661deb4b1344%40googlegroups.com
> <https://groups.google.com/d/msgid/adwords-api/71a12b93-0431-4af6-ba61-661deb4b1344%40googlegroups.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/CAEpNmqRqA0YB%3DH9QA1g_M296_UrHzfHto7OmtA3LEWUz4eEWFA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


ADGROUP_PERFORMANCE_REPORT showing odd data

2018-03-21 Thread Ken Dan Tinio



This is an ADGROUP_PERFORMANCE_REPORT and I am wondering why there is an 
AdGroupMobileBidModifier 10% in Device Computers


Should it be in AdGroupDesktopBidModifier?




-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d44a9fca-c0bb-4d85-a960-2d0618a43633%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: is it possible to get CpcBid in Geo performance report or campaign location target report?

2018-03-19 Thread Ken Dan Tinio
I see, thank you! one last question, we assume that CpcBid does not apply 
in geo and campaign location target?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d790fca0-0b2c-4d15-a9c9-80ed226b6206%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: is it possible to get CpcBid in Geo performance report or campaign location target report?

2018-03-18 Thread Ken Dan Tinio
I can see that there is an AverageCpc field. So that means there is CpcBid 
for each target, correct?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/5f7ee7dd-143f-4dd7-8799-c6b4e62e298a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


is it possible to get CpcBid in Geo performance report or campaign location target report?

2018-03-17 Thread Ken Dan Tinio
Why are this reports doesn't have CpcBid?


Also, why is there no BidModifier in Geo table? 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d26a6416-6beb-4eae-bc8b-60563604b903%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to remove an ad schedule using id?

2018-02-26 Thread Ken Dan Tinio
Thanks been look for that! Works amazingly!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/29dcf978-e7c7-4bac-a654-b9a95f67dfe8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to remove an ad schedule using id?

2018-02-22 Thread Ken Dan Tinio

>
> The status is null..
>



  $data[] = array(
  "id"  => 
$campaignCriterion->getCriterion()->getId(),
  "type"=> 
$campaignCriterion->getCriterion()->getType(),
  "dayofweek"   => 
$campaignCriterion->getCriterion()->getDayOfWeek(),
  "starthour"   => $string_start_hour,
  "startminute" => $string_start_min,
  "endhour" => $string_end_hour,
  "endminute"   => $string_end_min,
  "campaign_id" => $campaignCriterion->getCampaignId(),
  "status"  => 
$campaignCriterion->getCampaignCriterionStatus(),
  "result"  => $dayofweek.", 
".$string_start_hour.':'.$string_start_min.' to 
'.$string_end_hour.':'.$string_end_min
  ); 




{
"id": 320096,
"type": "AD_SCHEDULE",
"dayofweek": "WEDNESDAY",
"starthour": "00",
"startminute": "00",
"endhour": 24,
"endminute": "00",
"campaign_id": 175483775,
"status": null,
"result": "Wednesday, 00:00 to 24:00"
},

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/14e9cfd7-317f-4fdf-ab8e-e9646e93248b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to remove an ad schedule using id?

2018-02-21 Thread Ken Dan Tinio
How do I know if its removed status?


so far I have this code:

  $data[] = array(
  "id"  => 
$campaignCriterion->getCriterion()->getId(),
  "type"=> 
$campaignCriterion->getCriterion()->getType(),
  "dayofweek"   => 
$campaignCriterion->getCriterion()->getDayOfWeek(),
  "starthour"   => 
$campaignCriterion->getCriterion()->getStartHour(),
  "startminute" => 
$campaignCriterion->getCriterion()->getStartMinute(),
  "endhour" => 
$campaignCriterion->getCriterion()->getEndHour(),
  "endminute"   => 
$campaignCriterion->getCriterion()->getEndMinute(),
  "campaign_id" => $campaignCriterion->getCampaignId(),
  // "campaign_name"   => 
$campaignCriterion->getCampaign()->getName(),
  );

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d039d9d3-20d6-49f3-bda1-b901e9315533%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to remove an ad schedule using id?

2018-02-20 Thread Ken Dan Tinio

so far I have this code


$adsched = new AdSchedule();
$adsched->setId($ad_schedule_id);

// Create a criterion with modified bid.
$criterion = new CampaignCriterion();
$criterion->setCampaignId($campaign_id);
$criterion->setCriterion($adsched);

// Create a campaign criterion operation and add it to the operations 
list.
$operation = new CampaignCriterionOperation();
$operation->setOperator(Operator::REMOVE);
$operation->setOperand($criterion);
$operations = [$operation];


Then I get this error

[OperationAccessDenied.OPERATION_NOT_PERMITTED_FOR_REMOVED_ENTITY @ 
operations[0]]

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ec46d12b-8688-4b3c-94b4-4572d78e7d01%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to adjusting bid on an existing ad schedule? its says its already existed.

2018-02-20 Thread Ken Dan Tinio
Thank you! I already figure it all out. Hehe Hope this helps to other 
programmers.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/f1d5aea7-97e6-4645-a906-791e44d986eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to adjusting bid on an existing ad schedule? its says its already existed.

2018-02-19 Thread Ken Dan Tinio
this is my code for adjust bid in ad schedule.
// Create a mobile platform. The ID can be found in the documentation.
// https://developers.google.com/adwords/api/docs/appendix/platforms
$adsched = new AdSchedule();
$adsched->setDayOfWeek(strtoupper($day_of_the_week));
$adsched->setStartHour($start_hour);
$adsched->setStartMinute(strtoupper($string_start_min));
$adsched->setEndHour($end_hour);
$adsched->setEndMinute(strtoupper($string_end_min));

// Create a criterion with modified bid.
$criterion = new CampaignCriterion();
$criterion->setCampaignId($campaign_id);
$criterion->setCriterion($adsched);
$criterion->setBidModifier($bid_modifier);

// Create a campaign criterion operation and add it to the operations 
list.
$operation = new CampaignCriterionOperation();
$operation->setOperator(Operator::ADD);
$operation->setOperand($criterion);
$operations = [$operation];

and this is my error

 [CampaignCriterionError.CANNOT_ADD_EXISTING_FIELD @ 
operations[0].operand.bidModifier]

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ecbaee91-a02d-4ee3-814e-31d2ea83cb2a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: is there a way to bid adjust on time or date?

2018-02-19 Thread Ken Dan Tinio
Thank you so much for providing me this answer. I have just figure it all 
out as well. We have the same code. Thank you! thank you!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/68dd8ec5-f425-45d2-aaf9-bd8d71e5ace3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: is there a way to bid adjust on time or date?

2018-02-19 Thread Ken Dan Tinio
So far I have this..



class SetBidModifier {

  const CAMPAIGN_ID = '1010615735';
  // Bid modifiers are float number, not percentages, e.g., 1.5 means 50% 
more
  // bidding.
  const BID_MODIFIER = '1.5';

  public static function runExample(AdWordsServices $adWordsServices, 
AdWordsSession $session, $campaignId, $bidModifier) 
  {
$campaignCriterionService = $adWordsServices->get($session, 
CampaignCriterionService::class);

// Create a mobile platform. The ID can be found in the documentation.
// https://developers.google.com/adwords/api/docs/appendix/platforms
$mobile = new Platform();
$mobile->setId(30001); // HighEndMobile = 30001

$adsched = new AdSchedule();
$adsched->setDayOfWeek(DayOfWeek::MONDAY);
$adsched->setStartHour(24);
$adsched->setStartMinute(MinuteOfHour::ZERO);
$adsched->setEndHour(24);
$adsched->setEndMinute(MinuteOfHour::ZERO);


// Create a criterion with modified bid.
$criterion = new CampaignCriterion();
$criterion->setCampaignId($campaignId);
$criterion->setCriterion($mobile);
$criterion->setBidModifier($bidModifier);

// Create a campaign criterion operation and add it to the operations 
list.
$operation = new CampaignCriterionOperation();
$operation->setOperator(Operator::SET);
$operation->setOperand($criterion);
$operations = [$operation];

// Update campaign criteria on the server.
$results = $campaignCriterionService->mutate($operations);

// Print out some information about the updated campaign criterion.
foreach ($results->getValue() as $campaignCriterion) {
  printf(
  "Campaign criterion with campaign ID %d, criterion ID %d, "
  . "and type '%s' was modified with bid %.2f.\n",
  $campaignCriterion->getCampaignId(),
  $campaignCriterion->getCriterion()->getId(),
  $campaignCriterion->getCriterion()->getType(),
  $campaignCriterion->getBidModifier());
}
  }

  public static function main() 
  {
// Generate a refreshable OAuth2 credential for authentication.
$oAuth2Credential = (new OAuth2TokenBuilder())
->fromFile()
->build();

// Construct an API session configured from a properties file and the 
OAuth2
// credentials above.
$session = (new AdWordsSessionBuilder())
->fromFile()
->withOAuth2Credential($oAuth2Credential)
->build();
self::runExample(new AdWordsServices(), $session, 
intval(self::CAMPAIGN_ID), floatval(self::BID_MODIFIER));
  }
}


I just don't know how to pass the ad schedule to mutate.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/4e9b3104-fbc2-4a55-b19b-1d3802f70565%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: is there a way to bid adjust on time or date?

2018-02-19 Thread Ken Dan Tinio
Thank you very much Vincent, I think this is the one that I'm looking for.

we can set startHour, startMinute, dayOfWeek, endHour and endMinute.

Ive check the example, I don't know which one to replace. I know I will be 
asking too much but, I don't really know how to use it. Can you please 
provide me an example. Please...

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/6df89fb2-2b12-4971-9dbf-5b295c3a7865%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: is there a way to bid adjust on time or date?

2018-02-19 Thread Ken Dan Tinio
is ad schedule available in the API?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/b597c788-e9c7-446c-a43a-74e1e75f30b1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: is there a way to bid adjust on time or date?

2018-02-19 Thread Ken Dan Tinio
How can I access my scripts via API? The scripts are really interesting. 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/00426070-16f1-4a67-a23b-20f22632f7fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


is there a way to bid adjust on time or date?

2018-02-18 Thread Ken Dan Tinio
I know its a weird question. I haven't come across of adjusting bidding on 
time and date. But do you guys think its possible?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/10814c20-c85b-4415-a819-0b281a748394%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How do I retrieve a placement using url?

2018-02-08 Thread Ken Dan Tinio
I already figured that out. Thanks for answering! 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/53f22399-75c1-4587-996b-62445b3566b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How do I retrieve a placement using url?

2018-02-07 Thread Ken Dan Tinio
So far I have this retrieves a placement using Id:

$campaignCriterionService = 
$adwords['adWordsServices']->get($adwords['session'], 
AdGroupCriterionService::class);

// Create a selector to select all campaign criteria for the specified
// campaign.
$selector = new Selector();
$selector->setFields(['Id', 'AdGroupId', 'CriteriaType', 'KeywordText', 
'DisplayName']);
$selector->setPredicates([
new Predicate('Id', PredicateOperator::EQUALS, ['412515468868'])
]);
$selector->setPaging(new Paging(0, self::PAGE_LIMIT));

$totalNumEntries = 0;
do {
  // Retrieve campaign criteria one page at a time, continuing to 
request
  // pages until all campaign criteria have been retrieved.
  $page = $campaignCriterionService->get($selector);

  // Print out some information for each campaign criterion.
  if ($page->getEntries() !== null) {
$totalNumEntries = $page->getTotalNumEntries();
foreach ($page->getEntries() as $campaignCriterion) {
  $data[] = array(
  "id"   => $campaignCriterion->getCriterion()->getId(),
  "type" => $campaignCriterion->getCriterion()->getType()
  );
}
  }

  $selector->getPaging()->setStartIndex(
  $selector->getPaging()->getStartIndex() + self::PAGE_LIMIT);
} while ($selector->getPaging()->getStartIndex() < $totalNumEntries);

$message = "Number of results found: ".$totalNumEntries;
return array(
  "status"  => "success",
  "message" => $message,
  "data"=> $data
);

I do not know which field is it used.

WHat I want to do: 

Select placement where url is equals to 'example.com'




-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/10e4164f-4760-45c0-bce2-763348bf80ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How do I show automatic in placement in New Goolge adwords UI/Console?

2018-02-06 Thread Ken Dan Tinio
How do I show automatic placement in New Goolge adwords UI/Console?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/1c7ed6e2-b3e0-4d80-84f3-5de72b6cbdd4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: how to remove placement url's in ad group

2018-02-06 Thread Ken Dan Tinio
what happens if I only have url? How to remove this placement url in an 
adgroup level? without the criterion id..

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/0ff478ea-cd0a-4ee8-8681-0c6708c60c6d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to get all adgroups with campaign status enable and pause?

2018-01-18 Thread Ken Dan Tinio
Magnificent! Thank you very much!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/fa99050d-95cd-4506-afb2-926d5d850394%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to get all adgroups with campaign status enable and pause?

2018-01-18 Thread Ken Dan Tinio
Switching back to AWQL haha


This one works good for me
*WHERE AdGroupStatus NOT_IN ["REMOVED"] AND CampaignStatus NOT_IN 
["REMOVED"]*

How do you convert this into Selector Method?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/4639176d-99da-4247-9616-a241ea2d8ea9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to get all adgroups with campaign status enable and pause?

2018-01-18 Thread Ken Dan Tinio
Switching back to selector, works fine:
*$selector->setPredicates([new Predicate('CampaignStatus', 
PredicateOperator::NOT_IN, ['REMOVED'])]);*

but adding another Predicate:
  *  $selector->setPredicates(*
*[new Predicate('AdGroupStatus', PredicateOperator::NOT_IN, 
['REMOVED'])], *
*[new Predicate('CampaignStatus', PredicateOperator::NOT_IN, 
['REMOVED'])]*
*);*
Doesn't work. Only the first array works fine. 

I am retrieving adgroups without removed status, but campaign status with 
removed is included.

The thing that I am trying to do is, Fetch adgroup with no removed status 
that are not associated with removed campaign. I don't want to see removed 
status.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/021d7ef1-656d-4512-9f48-c2262f7c2f64%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to get all adgroups with campaign status enable and pause?

2018-01-18 Thread Ken Dan Tinio
OKay im using AWQL, works fine. BUt

*WHERE CampaignStatus != 'removed'*

gives me an error Details: [fieldPath: ; trigger: ; errorString: 
QueryError.PARSING_FAILED]


Full code of AWQL:

   * $reportQuery = 'SELECT '.$imploded_fields.' FROM 
'.self::$report_type.' '*
*. 'WHERE CampaignStatus IN [REMOVED]'*
*. 'DURING '.self::$date_range_type.'';*

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/94fbf601-2b53-45fc-9415-6cfa6f265551%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Is there a way to do this? attached image

2018-01-18 Thread Ken Dan Tinio
Yes, thanks for helping me out! :)

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/b65b12c4-480c-41c4-81d8-497174be1f84%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to get all adgroups with campaign status enable and pause?

2018-01-18 Thread Ken Dan Tinio
I *getAsString() *method, I have already seen it. 


Thats like sounds difficult... how to do it? can you give me a term or word 
of the function for me to research about.. thanks!


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/69f2da52-145b-4984-b33e-0f3697999655%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to get all adgroups with campaign status enable and pause?

2018-01-18 Thread Ken Dan Tinio
I did try that. But the problem is this:

$reportDefinition->setDownloadFormat(DownloadFormat::CSV);


How do I get reports as array or json? I don't want to generate a csv.



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/31d79d29-aff1-468a-87fd-7db7c90eb4f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Is there a way to do this? attached image

2018-01-17 Thread Ken Dan Tinio
I already solved my problem. Here is what I did.


// Create report query to get the data for last 7 days.
$reportQuery = 'SELECT CampaignId, AdGroupId, Id, Criteria, 
CriteriaType, '
. 'Impressions, Clicks, Cost FROM CRITERIA_PERFORMANCE_REPORT '
. 'WHERE Status IN [ENABLED, PAUSED] AND Criteria IN ["fb.com", 
"tinder.com"] DURING LAST_7_DAYS';

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/81a6f652-f9a7-47dc-92fe-1d148833d596%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to get all adgroups with campaign status enable and pause?

2018-01-17 Thread Ken Dan Tinio
$selector = new Selector();
$selector->setFields(['Id', 'Name', 'Status', 'CampaignId', 
'CampaignName']);
$selector->setOrdering([new OrderBy('Name', SortOrder::ASCENDING)]);
$selector->setPaging(new Paging(0, self::PAGE_LIMIT));

I have this so far. I have already retrieved all adgroups using this 
selector.

The problem is that the adgroups that I fetch includes adgroups with 
removed campaign.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/448c4c12-22cd-4be4-9a25-2deecc0b3075%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


is there a way to fetch all campaigns with adgroups?

2018-01-16 Thread Ken Dan Tinio
I want to fetch all campaigns along its adgroups in one API request.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/a3941ec6-c333-4879-8803-4985e74e1945%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to generate csv with awql report?

2018-01-12 Thread Ken Dan Tinio
I got it. The correct answer is,

$reportDownloadResult->saveToFile('docs/test.csv')

Thank you!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/a5302841-aa4e-48be-8be3-215b009eda97%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to generate csv with awql report?

2018-01-12 Thread Ken Dan Tinio
Where can I set the path?

On Friday, January 12, 2018 at 4:24:33 AM UTC+8, Ken Dan Tinio wrote:
>
> Download a criteria performance report with AWQL
> Reference: 
> https://developers.google.com/adwords/api/docs/samples/php/reporting#download-a-criteria-performance-report-with-awql
>
> This is my code:
>
> *public static function runExample(AdWordsSession $session, 
> $reportFormat) *
> *{*
> *// Create report query to get the data for last 7 days.*
> *$reportQuery = 'SELECT CampaignId, AdGroupId, Id, Criteria, 
> CriteriaType, '*
> *. 'Impressions, Clicks, Cost FROM CRITERIA_PERFORMANCE_REPORT 
> '*
> *. 'WHERE Status IN [ENABLED, PAUSED] DURING LAST_7_DAYS';*
>
> *// Download report as a string.*
> *$reportDownloader = new ReportDownloader($session);*
> *// Optional: If you need to adjust report settings just for this 
> one*
> *// request, you can create and supply the settings override here. 
> Otherwise,*
> *// default values from the configuration file (adsapi_php.ini) 
> are used.*
> *$reportSettingsOverride = (new ReportSettingsBuilder())*
> *->includeZeroImpressions(false)*
> *->build();*
> *$reportDownloadResult = 
> $reportDownloader->downloadReportWithAwql($reportQuery, $reportFormat, 
> $reportSettingsOverride);*
> 
> *self::$report = $reportDownloadResult->getAsString();*
> *self::$status  = "success";*
> *self::$message = "";*
> *}*
>
> *public static function main() *
> *{*
> *// Generate a refreshable OAuth2 credential for authentication.*
> *$oAuth2Credential = (new OAuth2TokenBuilder())*
> *->fromFile()*
> *->build();*
>
> *// See: AdWordsSessionBuilder for setting a client customer ID 
> that is*
> *// different from that specified in your adsapi_php.ini file.*
> *// Construct an API session configured from a properties file and 
> the OAuth2*
> *// credentials above.*
> *$session = (new AdWordsSessionBuilder())*
> *->fromFile()*
> *->withOAuth2Credential($oAuth2Credential)*
> *->build();*
>
> *try {*
> *self::runExample($session, DownloadFormat::CSV);*
> *} catch (\Exception $e) {*
> *return array(*
> *"status" => "fail",*
> *"message" => $e->getMessage()*
> *);*
> *}*
> 
> *return array(*
> *"status" => self::$status,*
> *"report" => self::$report,*
> *);*
> *}*
>
>
> How do I generate the csv?
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ffbf26bc-8884-4660-8162-720d08dd1617%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Where to find the documentations for setFields for setReportType?

2018-01-12 Thread Ken Dan Tinio
I got it. The correct answer is this:
https://developers.google.com/adwords/api/docs/samples/php/reporting#get-report-fields

By getting all report fields in a specific report.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/978db8cf-4734-4f8f-8210-4605caf697e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to generate csv with awql report?

2018-01-11 Thread Ken Dan Tinio
No it doesn't generate any file. it just return text, not in array.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/b1f7e4d0-4ae0-49e7-a4ef-20e44cd729f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Where to find the documentations for setFields for setReportType?

2018-01-11 Thread Ken Dan Tinio
Like for example 

*'CampaignId', 'AdGroupId', 'Id', 'Criteria', 'CriteriaType', 
'Impressions', 'Clicks', 'Cost'*

this fields are for *ACCOUNT_PERFORMANCE_REPORT*

but when I tried to change it to *CAMPAIGN_PERFORMANCE_REPORT *it gives me 
an error Details: [fieldPath: ; trigger: Id; errorString: 
ReportDefinitionError.INVALID_FIELD_NAME_FOR_REPORT]

My thoughts are *CAMPAIGN_PERFORMANCE_REPORT *does not have a field name 
*'Id'.*

Thats why Im looking for the documentations for performance report fields. 
If you have any idea on how to avoid this, it can help me big time.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/f29dd96f-7337-4758-a5e3-a560993bf249%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to generate csv with awql report?

2018-01-11 Thread Ken Dan Tinio
Download a criteria performance report with AWQL
Reference: 
https://developers.google.com/adwords/api/docs/samples/php/reporting#download-a-criteria-performance-report-with-awql

This is my code:

*public static function runExample(AdWordsSession $session, 
$reportFormat) *
*{*
*// Create report query to get the data for last 7 days.*
*$reportQuery = 'SELECT CampaignId, AdGroupId, Id, Criteria, 
CriteriaType, '*
*. 'Impressions, Clicks, Cost FROM CRITERIA_PERFORMANCE_REPORT 
'*
*. 'WHERE Status IN [ENABLED, PAUSED] DURING LAST_7_DAYS';*

*// Download report as a string.*
*$reportDownloader = new ReportDownloader($session);*
*// Optional: If you need to adjust report settings just for this 
one*
*// request, you can create and supply the settings override here. 
Otherwise,*
*// default values from the configuration file (adsapi_php.ini) are 
used.*
*$reportSettingsOverride = (new ReportSettingsBuilder())*
*->includeZeroImpressions(false)*
*->build();*
*$reportDownloadResult = 
$reportDownloader->downloadReportWithAwql($reportQuery, $reportFormat, 
$reportSettingsOverride);*

*self::$report = $reportDownloadResult->getAsString();*
*self::$status  = "success";*
*self::$message = "";*
*}*

*public static function main() *
*{*
*// Generate a refreshable OAuth2 credential for authentication.*
*$oAuth2Credential = (new OAuth2TokenBuilder())*
*->fromFile()*
*->build();*

*// See: AdWordsSessionBuilder for setting a client customer ID 
that is*
*// different from that specified in your adsapi_php.ini file.*
*// Construct an API session configured from a properties file and 
the OAuth2*
*// credentials above.*
*$session = (new AdWordsSessionBuilder())*
*->fromFile()*
*->withOAuth2Credential($oAuth2Credential)*
*->build();*

*try {*
*self::runExample($session, DownloadFormat::CSV);*
*} catch (\Exception $e) {*
*return array(*
*"status" => "fail",*
*"message" => $e->getMessage()*
*);*
*}*

*return array(*
*"status" => self::$status,*
*"report" => self::$report,*
*);*
*}*


How do I generate the csv?


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ea1dd40a-c18c-4e61-9664-0f2067e936bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.