advertisingChannelSubType

2016-04-18 Thread Satendra Maurya
Hi,
how to set advertisingChannelSubType like Marketing objectives , No 
marketing objective,standard, all feature,Mobile app installs,Dynamic 
Search Ads etc  to campaign while there are only 4 possible value which i 
can pass to  advertisingChannelSubType according to adwords api 
documantation. these values are :

SEARCH_MOBILE_APP Mobile App Campaigns for Search
DISPLAY_MOBILE_APP Mobile App Campaigns for Display
SEARCH_EXPRESS AdWords Express campaigns for search.
DISPLAY_EXPRESS AdWords Express campaigns for display.
Please help me how can manage all sub ChannelSubType  to 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/fd86372c-d319-4ece-915f-9a73937ee86b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: CampaignCriterionService for all location

2016-03-10 Thread Satendra Maurya
Hi, 
if i don't specify language for all languages and location for all 
countries it through an error : [NotEmptyError.EMPTY_LIST @ operations]
I think $campaignCriteria is not set when we trying to mutate. so that its 
give error.so how to target campaign for all location and language

$campaignCriterionService = $user->GetService('CampaignCriterionService');
 $campaignCriteria = array();
  
   $operations = array();

 foreach ($campaignCriteria as $campaignCriterion) {
$operations[] = new 
\CampaignCriterionOperation($campaignCriterion, 'ADD');
}

$results = $campaignCriterionService->mutate($operations);

please help me .
thank you
On Wednesday, March 9, 2016 at 11:20:19 PM UTC+5:30, Umesh Dengale wrote:
>
> Hello,
>
> When you create a campaign and don't specify any location targeting means 
> that campaign can serve everywhere(all countries and territories).  If you 
> need to target the specific country or area within the country then you 
> could add location criteria. Please check out location targeting guide 
>  
> for 
> more details.
>
> Regards,
> Umesh, 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/93eb-894d-4ff7-a1a3-659dc4ca81bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


CampaignCriterionService for all location

2016-03-09 Thread Satendra Maurya
Hi,

how to target our campaign for all location
$place = new \Location();
$place->id = $locationId;
$campaignCriteria[] = new \CampaignCriterion($result->value[0]->id, null, 
$place);

what is location Id for all location or how to tagret campaign for all 
location. 

thanks 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/7de139be-3c06-48d7-aa8c-ea456b05722e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: CAMPAIGN_PERFORMANCE_REPORT

2016-03-08 Thread Satendra Maurya
Hi Anthony,
i am sending xml report which have row element 



but all campaign report do not have row element and its value as i 
specified in above question.
 thanks

On Tuesday, March 8, 2016 at 8:38:59 PM UTC+5:30, Anthony Madrigal wrote:
>
> Hi Satendra,
>
> Could you please specify what row element is showing up in the report and 
> what value does it have?
>
> Thanks,
> 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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/4fe39f2d-06a2-47dd-b489-ff9aee36c5c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


CAMPAIGN_PERFORMANCE_REPORT

2016-03-07 Thread Satendra Maurya
i am trying to download report for all campaign of all account in xml 
format . my code is here :
// $campaigns is  all campaign
foreach ($campaigns as $campaign) {
$filePath = realpath(dirname(__FILE__)) . 
"/../../frontend/web/reports/" . $campaign->name . '_' . $campaign->id . 
'.xml';
$selector->predicates[] = new \Predicate('CampaignId', 
'EQUALS', array($campaign->id));

// Optional: use predicate to filter out paused criteria.
// $selector->predicates[] = new 
\Predicate('CampaignStatus', 'NOT_IN', array('PAUSED'));
// Create report definition.
$reportDefinition = new \ReportDefinition();
$reportDefinition->selector = $selector;
$reportDefinition->reportName = 'Criteria performance 
report #' . uniqid();
$reportDefinition->dateRangeType = 'ALL_TIME';
$reportDefinition->reportType = 
'CAMPAIGN_PERFORMANCE_REPORT';
$reportDefinition->downloadFormat = 'XML';

$options = array();
// the report output.
 $options['includeZeroImpressions'] = true;
// Download report.
$report = \ReportUtils::DownloadReport($reportDefinition, 
$filePath, $user, $options);

}

it download all campaign but only one campaign have ROW element other 
campaign do not have campaign data. why is that ? report like this















-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/82e724b4-d6df-4f89-a002-971c906731d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


set NegativeCampaignCriterion for location using adword api php

2016-03-03 Thread Satendra Maurya
how to set exclude location for campaign. i tried to found out it . i found 
this 
$negativeCriterion = new \NegativeCampaignCriterion();
 $negativeCriterion->campaignId = $result->value[0]->id;
 $negativeCriterion->criterion = $location;

but i cannot understand how to pass location here. could you explain with 
example ?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/9bdf5a57-dd41-4d8a-9789-3cc8c8914b39%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.