Get domain of Adwords Account

2016-08-01 Thread maurice . keightley
Hi Support Team,

Is there a way to retrieve the Website (domain) for an adwords account via 
PHP? Can get the companyName and DescriptiveName but no domain.

Below is the code used to retrieve Names:


$CustomerService = $client_user->GetCustomerService(ADWORDS_VERSION); 
$account =  $CustomerService->get('customerId');
$customer_adwords_ID = $account->customerId;
$domain = $account->companyName; 

Thanks in Advance,
Maurice

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/eceb0478-f87b-4a78-93d6-9af4919318cb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


get a list of Extensions

2016-07-29 Thread maurice . keightley
Hi Adwords API support,



How would I retrieve a list of extensions used for my account ? Thanks in 
advance.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/f26e4f94-1c73-4ebd-9005-4622911a5cab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: get a list of Extensions

2016-07-28 Thread maurice . keightley
You need to look at the fields list. Would really appreciate adwords 
support team help next time.

On Friday, July 29, 2016 at 9:53:11 AM UTC+10, 
maurice@griffithuni.edu.au wrote:
>
> Hi Adwords API support,
>
>
>
> How would I retrieve a list of extensions used for my account ? Thanks in 
> advance.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/41d60c5e-289a-465d-9f30-9210e38cf03f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: get a list of Extensions

2016-07-28 Thread maurice . keightley
Have tried using this service, but i get the following error: [Error] There 
is a problem getting the account activities[SelectorError.MISSING_FIELDS @ 
selector]

Please have a look and would really appreciate some assistance.


Script:
   
$campaignExtensionSettingService = 
$this->user->GetService('CampaignExtensionSettingService', 
$this->adwords_version);
$dateTimeRange = new DateTimeRange();
$dateTimeRange->min = date('Ymd his', $a).' 
'.date_default_timezone_get();
$dateTimeRange->max = date('Ymd his', strtotime("+1 
days", $a)).' '.date_default_timezone_get();



$selector2 = new Selector();
$selector2->dateTimeRange = $dateTimeRange;
   // $selector2->campaignIds = $campaignIds;
//$selector2->fields = array('feedId', 'feedType');
$adextensions = 
$campaignExtensionSettingService->get($selector2);
 //echo  count($adextensions->entries);
foreach ($adextensions->extensions as 
$extensionFeedItem) {
echo "test";
} 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/5b261b24-9ca6-4939-9c94-a74744388311%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Undefined index : SEARCH_QUERY_PERFORMANCE_REPORT

2016-07-28 Thread maurice . keightley
Solved - file name was incorrect. search.xml doesnt excist. 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/5badf16e-3c55-426c-b673-a3ce987856d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


SEARCH_QUERY_PERFORMANCE_REPORT based on SEARCH NETWORK

2016-07-27 Thread maurice . keightley
Hi All,

Am currently trying to get Average CTR for search Adgroups - but currently 
get CTRS for all Adgroups. Any suggestion on how to limit to only the 
search network and eligible accounts.

Results so far:
CTR:43
CTR:100
CTR:100
CTR:100
CTR:14
CTR:100
CTR:0
CTR:50
CTR:100
CTR:100
CTR:16
CTR:33
CTR:100





//Download Search Query Performance Report
$this->user->LoadService('ReportDefinitionService', 
$this->adwords_version);
$unique_id = uniqid();
$reportDefinition = new ReportDefinition();
$reportDefinition->reportName = 'Search Query Performance 
Report #' . $unique_id;
$reportDefinition->dateRangeType = 'CUSTOM_DATE';
$reportDefinition->reportType = 
'SEARCH_QUERY_PERFORMANCE_REPORT';
$reportDefinition->downloadFormat = 'XML';

$startDate = date("Ymd", strtotime("-31 days"));
$endDate = date("Ymd", strtotime("-1 days"));

$selector = new Selector();
$selector->fields = array(
'AdGroupId',
'AdGroupName',
'Impressions',
'Clicks',
'Ctr'
);
$selector->dateRange = new DateRange($startDate, $endDate);
$selector->predicates[] = new Predicate('AdNetworkType1', 
'EQUALS', array('SEARCH'));
$selector->predicates[] = new Predicate('AdGroupStatus', 
'EQUALS', array('ENABLED'));
$selector->predicates[] = new Predicate('AdGroupId', 'IN', 
array_keys($this->active_adGroups)); 

$reportDefinition->selector = $selector;
$fileName = 'searchquery.xml';
$path = $this->directory . $fileName;
$options = array('version' => $this->adwords_version);
$reportUtils = new ReportUtils();
$reportUtils->DownloadReport($reportDefinition, $path, 
$this->user, $options);   

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/c1d5d563-263d-408e-bf8f-9cae0bfef17f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Undefined index : SEARCH_QUERY_PERFORMANCE_REPORT

2016-07-27 Thread maurice . keightley
Hi All, 

Am getting a type error for the following script- can you please advise on 
why I am getting a type error. Display Report works fine, but Search Report 
doesn't. Thanks in advance.

ERROR: Undefined index: type in 
/home/maurice/www/hc/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/AdWords/Util/XmlDeserializer.php
 
on line 136

CODE:

   //Download Search Query Performance Report
$this->user->LoadService('ReportDefinitionService', 
$this->adwords_version);
$unique_id = uniqid();
$reportDefinition = new ReportDefinition();
$reportDefinition->reportName = 'Search Query Performance 
Report #' . $unique_id;
   // $reportDefinition->dateRangeType = 'CUSTOM_DATE';
$reportDefinition->reportType = 
'SEARCH_QUERY_PERFORMANCE_REPORT';
$reportDefinition->downloadFormat = 'XML';
$selector = new Selector();
$selector->fields = array(
'AdGroupId',
'AdGroupName',
'Impressions',
'Clicks',
'Ctr'
);
$startDate = date("Ymd", strtotime("-31 days"));
$endDate = date("Ymd", strtotime("-1 days"));
$selector->dateRange = new DateRange($startDate, $endDate);
$selector->predicates[] = new Predicate('Status', 'EQUALS', 
array('ENABLED'));
$selector->predicates[] = new Predicate('AdGroupId', 'IN', 
array_keys($this->active_adGroups));
$reportDefinition->selector = $selector;
$fileName = 'search.xml';
$path = $this->directory . $fileName;
$options = array('version' => $this->adwords_version);
//$result = ReportUtils::DownloadReport($reportDefinition, 
$path, $this->user, $options

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/8d3cbe4e-92f2-4545-9a79-feb887052662%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Adwords Mutatelink operation- editing default email format

2016-02-08 Thread maurice . keightley
Hi Adwords Support Team,

Currently have code that sends an email to a MCC account to invite them to 
link to another MCC account. This link works and the email is copied below. 
However, I would love a link provided in the email for the client to be 
able to click on similar to the manual process. Can you please guide me on 
how I would be able to edit the email format..
Cheers,
Maurice

Current Email Sent to Client-
Hello from Google,
.com has asked for your permission to link your AdWords account 
(Customer ID: ##) to their manager account.
If you accept, Company (###) will be able to:
- Actively change and manage all aspects of your AdWords account
- Accept Terms and Conditions on your behalf
This manager won't be able to change your account's email or password. If 
you don't know the above party and think this is an unauthorized attempt to 
access your AdWords account, please decline and you may contact us to 
report a complaint.
You can accept or decline the request from your AdWords or AdWords Express 
account by clicking the gear icon, then selecting "Account settings" from 
the drop-down menu. Then, select "Account access" and click "Accept 
invitation" or "Decline." You can find instructions here:
https://support.google.com/adwords/answer/6139186#link
See you online,
The Google AdWords Team


If I invite manually, I get the following email format-
Hello,
.com has invited you to share an AdWords account (Customer ID #) 
using your own email address and password.
To accept this invitation, visit the link below. You'll then create a 
Google Account or choose an existing one to sign in to AdWords in the 
future. A Google Account is made up of a single email address and password, 
and gives you a simple and secure way to access your other Google services.
Note that if you already have a username and password for another AdWords 
account (even a canceled account), you'll need to use a different email 
address specifically for this account.
Once you complete the process, .com will be able to confirm your 
acceptance and grant you access to the AdWords account. This invitation 
expires on Feb 24, 2016.

To accept your invitation, visit
https://adwords.google.com/um/StartAcceptInvite?itk=9_G3EFMBAAA.V81sFarx-g_mSE
If you have received this invitation in error, visit 
https://adwords.google.com/um/StartDeclineInvite?itk=9_G3EFMBAAA.V81sFar
If you're unable to click one of the links above, copy and paste the URL 
into a new browser window instead.
For more information, please visit our frequently asked questions: 
http://adwords.google.com/support/aw/bin/topic.py?topic=15947&hl=en_US
Sincerely,
The Google AdWords 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/ff3e324e-1ff0-404e-ab19-5892473dbb27%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Trying to move client account in adwords from one sub MCC to another sub MCC

2016-02-03 Thread maurice . keightley

>
> Hi Adwords API Team,
>>>
>>
I am attempting to move a client account from under sub MCC 0 to sub MCC1. 
 The following code is below. 
Currently getting the following error: [0] => 
[ManagedCustomerServiceError.UNSUPPORTED @ operations[0]]. 
Any help would be appreciated.

   $managedCustomerService = 
$user->GetManagedCustomerService(ADWORDS_VERSION);
$moveAccountlink = new ManagedCustomerLink();
$moveAccountlink->clientCustomerId=;

$moveAccountlink->linkStatus='ACTIVE';
$moveAccountlink->managerCustomerId=#;

$moveAccountOp = new MoveOperation();
$moveAccountOp->operator='SET';
//$moveAccountOp->pendingDescriptiveName = "j";
$moveAccountOp->oldManagerCustomerId=#;
  
$moveAccountOp->operand =moveAccountLink;
$moveAccountOps = array($moveAccountOp);  
 $result = $managedCustomerService->mutateManager($moveAccountOps);



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/0c2e8b06-8d6c-412d-b749-a1250aab0ff2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to get YouTube campaigns information using adwords API

2016-01-06 Thread maurice . keightley
Hi,

I am trying to list all the campaigns from an account using the Adwords API 
- currently tried  CampaignsService however this did not show youtube 
campaigns.

I understand there is a video performance report, however I need the 
campaignservice fields information of the youtube campaign. I already have 
a campaign report script that gets the report information of all campaigns 
including youtube ones.

Note that I'm using latest API version.

Any suggestions would be great.

Thanks.
Maurice

-- 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/5d57bee9-ccca-4ed8-b0f0-fdbe8590e678%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.