ReportDefinitionService problem

2010-06-02 Thread Nesha
Hi,

I have problem with communication with ReportDefinitionService

I want to read and parse report using this:
http://code.google.com/apis/adwords/v2009/docs/reference/ReportDefinitionService.html

I've tried to use this php code:

header("Authorization: GoogleLogin auth=VALID_TOKEN");
header("clientCustomerId: ID");
header("clientEmail: em...@gmail.com");
echo file_get_contents("https://adwords.google.com/api/adwords/
reportdownload?__rd=748887");

and I get this:
!!!AuthenticationError.GOOGLE_ACCOUNT_COOKIE_INVALID|||748887


I've also tried this one with CURL:

$ch = curl_init();
curl_setopt_array($ch, array(
  CURLOPT_URL => 'https://adwords.google.com/api/adwords/
reportdownload?__rd=748887',
));

curl_setopt($ch, CURLOPT_HTTPHEADER, array(
  'Authorization: auth=VALID_TOKEN',
  'clientCustomerId: ID',
  'clientEmail: em...@gmail.com'
));

and receive the same error.

What is the problem with this requests? Do I need to use SOAP? Can you
give me some example how to make request from php and read report from
adwords api?

I'm desperate.
Thanks a lot.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


DownloadReport API Cost

2011-03-15 Thread Nesha
Hi,

I can't find how much will cost me to download keywords reports for
yesterday.

I've found this:

ReportDefinitionService
get 1 per ReportDefinition
getReportFields 1 per ReportDefinitionField
mutate (ADD)400 per ReportDefinition
mutate (REMOVE) 1 per ReportDefinition
mutate (SET)400 per ReportDefinition


but I am not sure, is that cost for whole report, or just one line.
I plan to use csv format, and my reports can have a thousands of rows,
how will this be affected by cost?

Can someone explain this to me.
Thanks

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: DownloadReport API Cost

2011-03-16 Thread Nesha
Great, thank you very much

One more question regarding download report.

I've used DownloadReport.php example, and I am able to download report
for id that i received after creating new report using
AddKeywordsPerformanceReportDefinition.php

And there is this required code:
// Create ad group predicate.
  $adGroupPredicate = new Predicate();
  $adGroupPredicate->field = 'AdGroupId';
  $adGroupPredicate->operator = 'EQUALS';
  $adGroupPredicate->values = array($adGroupId);

Can I get all keywords for all campaigns in one reports, instead of
creating report for each ad group?

On Mar 16, 4:38 am, Rob Ryan  wrote:
> Currently it is 400 to make a report definition, which you get an id
> returned to you, calling this id gives no additional cost, so if you set up
> a report with a non static timescale it's essentially free ongoing.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Unable to get Adgroup "Mobile Bid Adjustment" using Adwords API

2014-07-18 Thread Nesha


We are using 3 different tools to get Adwords data: 
- AdWords Editor
- AdWords Web Site
- AdWords API (PHP version)

And there is an issue to get "Mobile Bid Adjustment" using API or Web Site.

In AdWords Editor here is sample adgroup with value -100%




Now with Adwords API I am trying to fetch that info using 
AdGroupBidModifierService with latest available API (v201406)
https://developers.google.com/adwords/api/docs/guides/adgroup-bid-modifiers

Here is API response for adgroup with "Mobile Bid Adjustment" = -100%

AdGroupBidModifier Object
(
[campaignId] => 35768944
[adGroupId] => 977693464
[criterion] => Platform Object
(
[platformName] => 
[id] => 3
[type] => PLATFORM
[CriterionType] => Platform
[_parameterMap:Criterion:private] => Array
(
[Criterion.Type] => CriterionType
)

)

[bidModifier] => 
[bidModifierSource] => 
)

As you can see, there is no -100% value for bidModifier that I have in 
AdWords Editor.
How i can get this adgroup "Mobile Bid Adjustment" value using API ?
I am not sure is this available via API at the moment.

Thanks,
Nenad Milosavljevic

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.


Re: Unable to get Adgroup "Mobile Bid Adjustment" using Adwords API

2014-07-21 Thread Nesha
Danial,

with your help i have resolved this issue.

When i looked better in response XML i found that each adgroup have 3 
entries, and i was looking just for HighEndMobile (ID = 3001)


  35768944
  977693464
  http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="Platform">
3
PLATFORM
Platform
  


  35768944
  977693464
  http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="Platform">
30001
PLATFORM
Platform
  
  0.0


  35768944
  977693464
  http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="Platform">
30002
PLATFORM
Platform
   



So i have returned 0.0 and in AdWords Editor that is -100%
I have used this formula to translate API values to those from AdWords 
Editor

$value = - (1 - round($modifier->bidModifier, 2)) * 100;

// possible values for bid modifier (adwords editor = API value)
-10% = 0.9
-90% = 0.1
-100% = 0
100% = 2
200% = 3
300% = 4 

Basically i think that this issue happened because in official PHP AdWords 
API located here:
https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201406/AdvancedOperations/GetAdGroupBidModifiers.php

There is bad condition 

$value = 'none';
if (!empty($modifier->bidModifier)) {
   $value = $modifier->bidModifier;
}
There shoud be used is_numeric instead of !empty, since 0.0 looks like empty, 
but it's actually -100%, and that should be treated as well. Small issue but it 
took me in wrong direction.

Hopefully now everything should be ok.

Thanks again for your help. 


On Friday, July 18, 2014 11:05:40 AM UTC+2, Nesha wrote:
>
> We are using 3 different tools to get Adwords data: 
> - AdWords Editor
> - AdWords Web Site
> - AdWords API (PHP version)
>
> And there is an issue to get "Mobile Bid Adjustment" using API or Web Site.
>
> In AdWords Editor here is sample adgroup with value -100%
>
>
> <https://lh5.googleusercontent.com/-lJiL3JH4LQY/U8jirL2ML5I/IE0/Loo-076p1LY/s1600/bid.jpg>
>
>
> Now with Adwords API I am trying to fetch that info using 
> AdGroupBidModifierService with latest available API (v201406)
> https://developers.google.com/adwords/api/docs/guides/adgroup-bid-modifiers
>
> Here is API response for adgroup with "Mobile Bid Adjustment" = -100%
>
> AdGroupBidModifier Object
> (
> [campaignId] => 35768944
> [adGroupId] => 977693464
> [criterion] => Platform Object
> (
> [platformName] => 
> [id] => 3
> [type] => PLATFORM
> [CriterionType] => Platform
> [_parameterMap:Criterion:private] => Array
> (
> [Criterion.Type] => CriterionType
> )
>
> )
>
> [bidModifier] => 
> [bidModifierSource] => 
> )
>
> As you can see, there is no -100% value for bidModifier that I have in 
> AdWords Editor.
> How i can get this adgroup "Mobile Bid Adjustment" value using API ?
> I am not sure is this available via API at the moment.
>
> Thanks,
> Nenad Milosavljevic
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.


Keyword max. cpc vs default ad group cpc in report

2011-09-28 Thread Nesha
Hi, i have a question how to recognize does keyword have custom
entered max. cpc or keyword use max. cpc from an ad group.

For example:
Ad group have default max.cpc = $ 0.30
and I have keyword where someone entered $ 0.30 as custom CPC.

I want to know in report that souch keyword have custom cpc, not from
ad group.
The idea is to do this
"If an individual keyword has same bid OR bid is within 5 cents below
of adgroup bid then delete the keyword bid so it uses the adgroup bid
to make management easier."

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: Keyword max. cpc vs default ad group cpc in report

2011-09-28 Thread Nesha
For more details check this url http://cl.ly/1d2o1C2D2n1N1D3m2V1H
you can see two kw Max. CPC one with default 0.65, and other one with
0.65 from ad group.
I need some param in keyword report that will tell me that keyword
have custom cpc (even if it's equal to ad group cpc)
I've used reports from here: 
http://code.google.com/apis/adwords/docs/appendix/reports.html#keywords

On Sep 28, 8:21 pm, Nesha  wrote:
> Hi, i have a question how to recognize does keyword have custom
> entered max. cpc or keyword use max. cpc from an ad group.
>
> For example:
> Ad group have default max.cpc = $ 0.30
> and I have keyword where someone entered $ 0.30 as custom CPC.
>
> I want to know in report that souch keyword have custom cpc, not from
> ad group.
> The idea is to do this
> "If an individual keyword has same bid OR bid is within 5 cents below
> of adgroup bid then delete the keyword bid so it uses the adgroup bid
> to make management easier."

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: ReportDefinitionService - Monthly report get

2011-09-28 Thread Nesha
If you have used hard coded numbers like this:
//$selector->dateRange = new DateRange('20110725', '20110925');
you will always get data for that date range.
But if you have used something like this:
$reportDefinition->dateRangeType = 'YESTERDAY'; then you will always
get data for yesterday from date when you run cron.

Hope this will help you, if not someone with more skills from Google
team can provide more help.

On Sep 28, 8:30 pm, Chirag  wrote:
> Hi,
>
> I have added report definition for campaign performance report for
> current month.  Should this report defination id will work
> automatically for getting report for naxt month.I means to say if i
> set cron for this report defination id than it will get/download
> report every month.
>
> Thanks,

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: Keyword max. cpc vs default ad group cpc in report

2011-09-28 Thread Nesha
Maybe i need to use: CpcBidSource (Max CPC source),
Description:
Predicate values / display values:
CRITERION / ad group criteria
ADGROUP / ad groups

I am not sure.

On Sep 28, 8:37 pm, Nesha  wrote:
> For more details check this urlhttp://cl.ly/1d2o1C2D2n1N1D3m2V1H
> you can see two kw Max. CPC one with default 0.65, and other one with
> 0.65 from ad group.
> I need some param in keyword report that will tell me that keyword
> have custom cpc (even if it's equal to ad group cpc)
> I've used reports from 
> here:http://code.google.com/apis/adwords/docs/appendix/reports.html#keywords
>
> On Sep 28, 8:21 pm, Nesha  wrote:
>
>
>
>
>
>
>
> > Hi, i have a question how to recognize does keyword have custom
> > entered max. cpc or keyword use max. cpc from an ad group.
>
> > For example:
> > Ad group have default max.cpc = $ 0.30
> > and I have keyword where someone entered $ 0.30 as custom CPC.
>
> > I want to know in report that souch keyword have custom cpc, not from
> > ad group.
> > The idea is to do this
> > "If an individual keyword has same bid OR bid is within 5 cents below
> > of adgroup bid then delete the keyword bid so it uses the adgroup bid
> > to make management easier."

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Search term report, missing data for yesterday

2011-10-21 Thread Nesha
Hi, i am trying to use ReportDefinition service, version v201101, and
i have problem to get data for YESTERDAY.

I also can't see search term data for yesterday on google adwords
site. But if I select some date in the past that is not yesterday i
have data.


Problem is because i use LAST_7_DAYS to get data once per week. But i
noticed that yesterday from date when i take data is missing, and
that's why numbers is wrong.


So is there some way to get LAST_7_DAYS btu with YESTERDAY data?
How this work now is wrong, bc it does not return LAST_7_DAYS, it
return LAST_7_DAYS - YESTERDAY data.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: Search term report, missing data for yesterday

2011-10-21 Thread Nesha
I am trying to avoid custom date range, because on that way i always
must create new definition report, and that cost :)

I created temp solution, i will always take last 14 days data, and
cron will be executed on every 7 days, but i will prevent duplicates,
and on that way i will fill one missing day 8 days ago.

Thanks for sharing your methods.

On Oct 21, 5:25 pm, Brilliant Media
 wrote:
> We always use custom date ranges (they're not that much more difficult) -
> but data for yesterday available when we try and get it at around 0800hrs.
>
> We've also noticed that sometimes the figures don't "settle" for up to three
> days (I guess this is due to click fraud), so we always refresh the previous
> three days worth of data.
>
> One thing that does surprise me that there's no way to as the API what date
> it's safe to get report date for - most of the other reporting APIs we use
> have this.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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


Re: Search term report, missing data for yesterday

2011-10-24 Thread Nesha
Thanks David, excellent answers to all my questions. I am glad to hear
that i can create free on the fly reports using latest API. I've
bookmarked link that you have posted, it will be useful in the future.

Best regards,
Nenad Milosavljevic

On Oct 24, 3:31 pm, David Torres  wrote:
> Hi Nesha,
>
> I also want to add that the new v201109 ad hoc reports cost 0 units and will
> let you define and download a report in a single call, so you can now use
> custom date ranges and not worry about costs. We hope this
> will alleviate some of the current hurdles with reports. We also posted some
> guidelines on when to download reports in our 
> bloghttp://adwordsapi.blogspot.com/2011/06/statistics-in-reports.html, I hope
> you find this useful.
>
> Best,
>
> -David Torres - AdWords API Team

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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