Downloading whole account

2016-02-10 Thread Jan Šrámek
Hello. Adwords Editor allows to export whole account. It takes few seconds. 
My desire is to do the same thing via API and then Looping over all 
campaings, adgroups only in php. In my current method i am downloading all 
comapaingns then looping over all - getting all groups - getting all ads 
for every group This take hours and there is too many requests. Any 
advice how to do it as Adwords Editor do? 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/b9b2f9b2-fe80-4edf-a242-1485f7f7bf04%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


AdWords account backup

2016-02-03 Thread Jan Šrámek
Hi, is there any simple way how to make backup of whole adwords account by 
using AdWords API?

Ideally if this backup could be used again 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/ec30e1e2-ac8b-4aac-88f0-b93f93fa2781%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Move AdGroup to another Campaign

2016-02-03 Thread Jan Šrámek
Hello i'm trying to change campaign id by using mutate request 
on AdGroupService. But i recieve unchanged adgroup object.
My method:
public function changeAdgroupCampaign($adGroupId, $campaignId)
{
// Get the service, which loads the required classes.
$adGroupService = $this->_getService('AdGroupService');

// Create ad group with new status.
$adGroup = new \AdGroup();
$adGroup->id = $adGroupId;
$adGroup->CampaignId = $campaignId;

// Create operations.
$operation = new \AdGroupOperation();
$operation->operand = $adGroup;
$operation->operator = 'SET';
$operations = array($operation);

// Make the mutate request.
$result = $adGroupService->mutate($operations);

return $result;
}

Thank you for any advices

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ad04ac3a-010f-4966-8b5a-5286ec801941%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Move adgroup to another campaign

2016-02-03 Thread Jan Šrámek
Hello, I'm trying to change campaign id in adgroup object by using mutate 
request (operator 'SET'). But I recieve only the same object with no 
changes.

$adGroup = new \AdGroup();
$adGroup->id = # ID of existing group
$adGroup->CampaignId = #new camp. ID

Thank you for any advices.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d631cc25-3535-4e89-b9f3-31ef6b415401%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.