Re: AdGroupService fields

2015-07-24 Thread Robert Olsen
Hi Anthony,
Thanks for the reply, I tried adding the Device and i can see its 
unfortunately not what i'm looking for.
I don't need which device was used to access the campaign. But how leads 
from a campaign is divided into subcategories of total leads. I've added a 
photo from one of the adgroups, we need to access the data from the 
coloumns marked with red. The problem is that it's some custom coloumns 
that has been added to the adgroup/campaign in order to see which sales 
areas the leads came from. Is there anyway to access custom coloumns from 
an adgroup or from the campaingn performance report? 

Den torsdag den 23. juli 2015 kl. 18.56.06 UTC+2 skrev Anthony Madrigal:

 Hi Robert,

 You can either the AdGroup Performance Report or Campaign Performance 
 Report and include the field Device 
 https://developers.google.com/adwords/api/docs/appendix/reports/campaign-performance-report#device.
  
 This will segment your stats based on device type (e.g. Desktop, Mobile, 
 etc). Unfortunately, this will not include stats from TV.

 Regards,
 Anthony
 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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/2045f3a5-6eb5-4f2a-803e-fa8bda91c221%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AdGroupService fields

2015-07-24 Thread Robert Olsen
I finally got it ! :) 
ConversionTypeName in the campaign performance report without clicks, 
price, cpc etc. and then it works.



Den torsdag den 23. juli 2015 kl. 18.56.06 UTC+2 skrev Anthony Madrigal:

 Hi Robert,

 You can either the AdGroup Performance Report or Campaign Performance 
 Report and include the field Device 
 https://developers.google.com/adwords/api/docs/appendix/reports/campaign-performance-report#device.
  
 This will segment your stats based on device type (e.g. Desktop, Mobile, 
 etc). Unfortunately, this will not include stats from TV.

 Regards,
 Anthony
 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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/6130b5f9-643f-4378-8279-c094222c7d60%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AdGroupService fields

2015-07-23 Thread Anthony Madrigal
Hi Robert,

You can either the AdGroup Performance Report or Campaign Performance 
Report and include the field Device 
https://developers.google.com/adwords/api/docs/appendix/reports/campaign-performance-report#device.
 
This will segment your stats based on device type (e.g. Desktop, Mobile, 
etc). Unfortunately, this will not include stats from TV.

Regards,
Anthony
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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/b8437fd2-c109-449c-8e38-8dc6bb04bd26%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


AdGroupService fields

2015-07-23 Thread Robert Olsen
Hey guys,
Got a problem here, i'm trying to get specific conversion data out from a 
campaign.

I have a Campaign with a label, this campaign has 100 conversions where 22 
is from TV, 44 from Internet and 34 from mobile ( 4 custom columns total i 
need data from ).
I can get the total number of conversions out, but not find a way to find 
these specific numbers (from TV, internet, mobile etc.). 

I've used campaign performance report and adgroup performance report to get 
total conversions out, but couldn't find the segment i needed there, seems 
like if it should be anywhare, it would be in adgroup?

I don't get any exceptions when i'm using ConversionsManyPerClick, but i 
don't get any data out.

All in all - How can i extract specific conversion data by 
segments-conversionname?

public void GetAdGroups(AdWordsUser user)
{
   AdGroupService adGroupService =
  (AdGroupService) 
user.GetService(AdWordsService.v201506.AdGroupService);

  // Create the selector.
  Selector selector = new Selector();
  selector.fields = new string[] { Id, Name, 
ConversionsManyPerClick }; // custCol1039323, custCol1050091, 
custCol1039920, custCol1050388 };

  // Create the filters.
  Predicate predicate = new Predicate();
  predicate.field = CampaignId;
  predicate.@operator = PredicateOperator.EQUALS;
  predicate.values = new string[] {campaignId.ToString()};
  selector.predicates = new Predicate[] {predicate};

  // Set the selector paging.
  selector.paging = new Paging();

  int offset = 0;
  int pageSize = 500;

  AdGroupPage page = new AdGroupPage();

  try {
do {
  selector.paging.startIndex = offset;
  selector.paging.numberResults = pageSize;

  // Get the ad groups.
  page = adGroupService.get(selector);

  // Display the results.
  if (page != null  page.entries != null) {
int i = offset;
foreach (AdGroup adGroup in page.entries) {
  Debug.WriteLine({0}) Ad group name is '{1}' and id is 
{2}., i + 1, adGroup.name,
  adGroup.id);
  
  i++;
}
  }
  offset += pageSize;
} while (offset  page.totalNumEntries);
Debug.WriteLine(Number of ad groups found: {0}, 
page.totalNumEntries);
  } catch (Exception ex) {
throw new System.ApplicationException(Failed to retrieve ad 
groups., ex);
  }
}

I've attached a image that shows the info that i'm interested in getting. 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups AdWords API Forum group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
AdWords API Forum group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/764289c1-b203-4094-bc28-e85cbacdd9ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.