Re: Get account budgets

2016-11-07 Thread Marketing Xilon


Hi, 

thank you for your help.
Following your recommendation, I am trying to get the cost using Account 
Performance Report for each account budget, but it shows different amounts 
than the Adwords Account budgets view.

This is how UI looks:



First budget (Jun 16, 2016 - Jul 1, 2016) spend *76.26€* which is different 
to *79.25€*, the amount I get on the report for those dates.

This is the PHP function for getting the account cost during dates:

function GetAccountTotalCost(AdWordsUser $user, $dateRange) {

$options = array('version' => ADWORDS_VERSION);
$options['skipReportHeader'] = true;
$options['skipColumnHeader'] = true;
$options['skipReportSummary'] = false;

 $reportQuery = 'SELECT AccountCurrencyCode, Cost '
. 'FROM ACCOUNT_PERFORMANCE_REPORT '
. 'DURING ' . $dateRange;

// Download report.
$reportUtils = new ReportUtils();
$reportString = $reportUtils->DownloadReportWithAwql($reportQuery, 
null, $user, 'CSV', $options);

$reportArray = array_filter(explode("\n", $reportString));
$reportSummary = explode(",",end($reportArray));

$totalCost = $reportSummary[1] / 100;

print('Date '.$dateRange.' Cost='.$totalCost."\n");

}

That returns:

Date 20160616,20160701 Cost=79.25
>

What am I missing?
Thank you!

El jueves, 3 de noviembre de 2016, 17:49:27 (UTC+1), Shwetha Vastrad 
(AdWords API Team) escribió:
>
> Hi,
>
> I'm afraid BudgetOrder spend is not available through the API. One way to 
> get this information is to get the total cost accrued for this account 
> using Account Performance Report 
> 
>  in 
> the duration during which the BudgetOrder was active and subtract this 
> value from the spendingLimit 
> 
>  of 
> the BudgetOrder. 
>
> The LastRequest 
> 
>  
> field contains the last set of values that were passed in through the 
> parent BudgetOrder for mutate.add and mutate.set. If you did not change the 
> startDateTime or endDateTime in the previous request, these fields may be 
> empty. If that's not the case, could you provide the complete SOAP request 
> and response logs so I can further investigate? Please use *Reply 
> privately to author* when responding. 
>
> Regards,
> Shwetha, 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 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/1f49abf6-1530-47d4-b8d8-a0293fc31208%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to get express verified calls

2016-11-03 Thread Marketing Xilon
That'd worked perfectly, thank you!

El jueves, 3 de noviembre de 2016, 14:41:07 (UTC+1), Josh Radcliff (AdWords 
API Team) escribió:
>
> Hi,
>
> Have you tried out the CALL_METRICS_CALL_DETAILS_REPORT 
> <https://developers.google.com/adwords/api/docs/appendix/reports/call-metrics-call-details-report>?
>  
> That one will return data on calls made to Google forwarding numbers.
>
> If that doesn't work for you, could you send over a list of campaign IDs 
> or ad group IDs you're querying so I can investigate further?
>
> Thanks,
> Josh, AdWords API Team
>
> On Wednesday, November 2, 2016 at 5:11:28 PM UTC-4, Marketing Xilon wrote:
>>
>> Update:
>>
>> using the following query:
>>
>> SELECT Id, AllConversions FROM AD_PERFORMANCE_REPORT WHERE ClickType=
>> "CALLS" DURING LAST_30_DAYS
>>
>> It returns 3 conversions, but Express is showing 6 and even prefix, date 
>> and duration.
>> I'm quite sure I'm following the wrong approach.
>>
>> Best
>>
>> El miércoles, 2 de noviembre de 2016, 21:58:00 (UTC+1), Marketing Xilon 
>> escribió:
>>>
>>> Hi,
>>>
>>> how can I get the verified calls report for express campaigns? I can't 
>>> find this parameter on the docs.
>>>
>>> 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/641f70a4-397c-467d-b20c-5d065ee14989%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Get account budgets

2016-11-03 Thread Marketing Xilon
Thank you for your detailed explanation Shwetha.

I can already get BudgetOrders via BudgetOrderService (my account is 
whitelisted). My question now is how to get the spend amount of each 
BudgetOrder? Should I get the associated campaigns and check Cost?

By the other hand, I am including LastRequest on the selector fields but 
params like startDateTime, endDateTime, date are empty on the returned 
object. What am I missing?

Thanks

El miércoles, 2 de noviembre de 2016, 17:14:24 (UTC+1), Shwetha Vastrad 
(AdWords API Team) escribió:
>
> Hi,
>
> To retrieve your account budgets, you need to use BudgetOrderService 
> .
>  
> A BudgetOrder 
>  is 
> an authorization for a client account to spend a certain amount of money 
> over the specified period of time. This spend is accrued onto the given 
> billing account. A Budget 
>  on the 
> other hand is used to manage the amount of money spent on your campaigns. A 
> budget can apply to a single campaign, or shared across many campaigns. 
>
> The BudgetOrder contains a lastRequest 
> 
>  field 
> that includes information about the status 
> 
>  of 
> the request. To You can check the endDateTime 
> 
>  field 
> to determine if a BudgetOrder has ended. Please note that 
> BudgetOrderService is available only to whitelisted AdWords manager 
> accounts. 
>
> Regards,
> Shwetha, 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 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/00bab64d-225d-4256-9d1d-194ac0aeb99b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to get express verified calls

2016-11-02 Thread Marketing Xilon
Update:

using the following query:

SELECT Id, AllConversions FROM AD_PERFORMANCE_REPORT WHERE ClickType="CALLS" 
DURING LAST_30_DAYS

It returns 3 conversions, but Express is showing 6 and even prefix, date 
and duration.
I'm quite sure I'm following the wrong approach.

Best

El miércoles, 2 de noviembre de 2016, 21:58:00 (UTC+1), Marketing Xilon 
escribió:
>
> Hi,
>
> how can I get the verified calls report for express campaigns? I can't 
> find this parameter on the docs.
>
> 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/fc91879d-52c8-4588-a4fd-859b848f85f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to get express verified calls

2016-11-02 Thread Marketing Xilon
Hi,

how can I get the verified calls report for express campaigns? I can't find 
this parameter on the docs.

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/1392b96c-a00f-4c69-bb10-0e780302782c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Sessions on CRITERIA_PERFORMANCE_REPORT

2016-11-02 Thread Marketing Xilon
Hi,

I don't see Sessions value on Criteria Performance Report 

 or 
Keywords Performance Report 
.
 
Isn't available via API?

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/174fb04b-3a3f-4810-ac81-63d0aacbc5e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Get account budgets

2016-11-02 Thread Marketing Xilon
Hi,

how can I get account budgets via API? I'm confused about the different 
terms used on the docs (Budget, BudgetOrder...)
Also, I don't see status on BudgetOrder 
.
 
How can I retrieve it?

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/6c9c6144-facc-4088-9c44-53d06b59d2af%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: PHP Get active campaigns with less than 100 remarketing users

2016-11-01 Thread Marketing Xilon
Hi Shwetha,

I'm afraid I'm a little confused about your explanation.

"You could use AdwordsUserListService 

 to 
retrieve the list of remarketing lists with size as zero, and then retrieve 
CampaignCriterion and AdGroupCriterion associated with these UserLists 
using predicates via CampaignCriterionService 

 and AdGroupCriterionService 

 respectively"

What exactly may I get retrieving CampaignCriterion and AdGroupCriterion?

"You can retrieve the associated CampaignIds and their states"

Why should I need the states of the campaigns?

Thanks!

El lunes, 31 de octubre de 2016, 20:08:20 (UTC+1), Shwetha Vastrad (AdWords 
API Team) escribió:
>
> Hi,
>
> For a CrmBasedEmailList 
> , 
> the user list size will show as zero until the list has at least 1,000 
> members. You could use AdwordsUserListService 
> 
>  to 
> retrieve the list of remarketing lists with size as zero, and then retrieve 
> CampaignCriterion and AdGroupCriterion associated with these UserLists 
> using predicates via CampaignCriterionService 
> 
>  and AdGroupCriterionService 
> 
>  respectively. 
> You can retrieve the associated CampaignIds and their states. The code 
> samples available here 
> 
>  provide 
> examples of basic operations using AdWords API PHP client library. 
>
> I hope this helps. 
>
> Regards,
> Shwetha, 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 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/c24a4cfb-70ac-4ccc-9b75-e6a46ec9e02b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


PHP Get active campaigns with less than 100 remarketing users

2016-10-31 Thread Marketing Xilon
Hello,

Using PHP, how can I get the list of et active campaigns with less than 100 
remarketing users?

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/bf99f3b0-db15-41c8-ad15-aa7281508c90%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Get accounts with no conversions or calls since 30 days ago

2016-10-31 Thread Marketing Xilon
Using PHP SDK, I need to do the following:

- Get the list of accounts with active campaigns with no conversions or 
calls since 30 days ago

Our campaigns are created on Express.

How can I do that? Should I use ReportDefinitionService?
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/5f4d10fb-a1ee-4fa3-b399-2c51a830441c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Get account list with no conversions or calls since last 30 days

2016-10-31 Thread Marketing Xilon
Hi, I'm trying to figure out how to get the following done via PHP:

   - Get the list of accounts with active campaigns that get no conversions 
or calls during 30 days.


The campaigns are created on Adwords Express.


I am quite confused about how to make it. I don't see conversions on the type 
Campaign 

 
object, should I use ReportDefinitionService?


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/59bf88b9-74bb-43ec-b73f-b812da19132d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


PHP Download report to array

2016-10-31 Thread Marketing Xilon
Hi,

I'm wondering how to download report to array instead of file or string. 
I'm using PHP.

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/cbb5df3c-1e21-4588-9522-1b3a80cf4fa7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.