Re: Catchable fatal error: Argument 1 passed to GuzzleHttp\Psr7\rewind_body()

2017-04-24 Thread 'Peter Oliquino' via AdWords API Forum
Hi David,

Seeing that the error is more related to the client library itself, you 
could directly get in touch with the client library owners through this link 
 as they are more 
equipped to assist you with your concern.

Thanks and regards,
Peter
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/001aa9db-723c-4d4f-998f-5fe1dca45124%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: ClientCustomerId returns empty on AdwordsUser object

2017-04-24 Thread 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
Hi James, 

On September 12th, 2016, AdWords announced 
 that you can now use 
one Google login to access multiple AdWords accounts. With this change, you 
can associate up to 5 AdWords accounts with a single Google account. In 
this scenario, the getCustomers() 

 method 
will return all the AdWords accounts directly accessible by this Google 
account. If you have a single AdWords account associated with the OAuth2 
credentials, then the response will contain the details of that account 
alone. 

Regards,
Shwetha, 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/7a05c5e8-a9fa-406c-a223-4de732a56713%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: ClientCustomerId returns empty on AdwordsUser object

2017-04-24 Thread James Andrews
Hi Shwetha,

OK, so if I call getCustomers() with the oauth credentials the return is an 
array, but it sounds like you're saying that the array will only ever have 
1 node and that will be the customer associated with the oauth credentials. 
 If that's the case then I think i am set, please confirm that is the case.

The ManagedCustomerService is what we are doing now, so glad that hasn't 
changed.

Thanks,
James


On Tuesday, April 25, 2017 at 3:35:28 AM UTC+9, Shwetha Vastrad (AdWords 
API Team) wrote:
>
> Hi James, 
>
> Assuming you have the OAuth2 credentials of the user for whom you need to 
> retrieve the AdWords account details, you need to use 
> CustomerService.getCustomers() 
> 
>  method 
> without setting the clientCustomerId 
> 
>  header 
> along with the credentials generated. The response will contain the details 
> of all AdWords accounts associated with the authenticated Google account.
>
> Please note that you'll only be able to get the AdWords account which can 
> be directly accessible by this user. If the user has access to a manager 
> account and you would like to retrieve the client accounts linked to this 
> manager, you need to use ManagedCustomerService 
> 
>  as 
> shown in this example 
> 
> . 
>
> Regards,
> Shwetha, 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/700b3713-278b-4d6e-b61c-7604998d957a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Auto-Migration Manual Location Extensions

2017-04-24 Thread Alexandre Ho-Latreille
Yes I meant PLACEHOLDER_FEED_ITEM_REPORT. Since the answer is yes for the 
first question I have no worries for the fetching of stats!

Thank you very much :)!

On Monday, April 24, 2017 at 12:57:54 PM UTC-4, Thanet Knack Praneenararat 
(AdWords API Team) wrote:
>
> Hello Alex,
>
> You will still be able to fetch location extensions with feed item 
> services.
>
>> how is the fetching of the stats of location extensions will be affected 
>> after the migration, will it be the same behavior as before?
>
> I think you mean PLACEHOLDER_FEED_ITEM_REPORT?
> If so, you'll get the new feed ID and feed item ID so the stats will be 
> the new ones.
>
> Hope this clarify. :-)
>
> Best,
> Thanet, AdWords API Team
>
> On Tuesday, April 25, 2017 at 12:53:15 AM UTC+9, Alexandre Ho-Latreille 
> wrote:
>>
>> Hello,
>>
>> following this discussion, once the locations are migrated, I know I 
>> won't be able to manage those through the feed item service and will have 
>> to create them with GMB. What I want to know is will I still be able to 
>> fetch those location extensions with the feed item service and how is the 
>> fetching of the stats of location extensions will be affected after the 
>> migration, will it be the same behavior as before?
>>
>> Thank you,
>>
>> Alex
>>
>> On Wednesday, April 19, 2017 at 12:40:23 AM UTC-4, Thanet Knack 
>> Praneenararat (AdWords API Team) wrote:
>>>
>>> Hello BT, Chris,
>>>
>>> Sorry for my ambiguous words for question #2. Please see the corrected 
>>> version of my answer below.
>>>
 2) An account was part of the auto-migration, if it has an unverified 
 location will ads continue to run location extensions?
>>>
>>> In order for the locations to be published *in Google Search and Map*, 
>>> they will have to be verified first. Please check this document 
>>>  for more details.
>>> *For ads themselves, unverified status doesn't prevent ads to use that 
>>> location as its extension.*
>>> In other words, *yes*, the ads continue to run location extensions 
>>> after migration.
>>>
>>> For question #1,
>>>
 1)If a client already has a google my business account, but has not 
 disclosed logins to link the current campaign. Will the auto-migration 
 duplicate two Google My Business accounts
>>>
>>> The auto-migration will *always* create a new GMB account.
>>> Of course, this would result in duplicate locations in some cases, but 
>>> that's fine.
>>> As mentioned above, unverified locations can be used as location 
>>> extensions so this will not affect ads serving.
>>> (You can think about unverified locations as phone book entries--anyone 
>>> can create the same address entry in his/her accounts)
>>>
>>> Chris, please let me know if the above still doesn't address your 
>>> question. :-)
>>>
>>> Cheers,
>>> Thanet, AdWords API Team
>>>
>>> On Wednesday, April 19, 2017 at 2:25:08 AM UTC+9, Chris Fehrmann wrote:

 Thanet,

 The reply you provided to BT's #2 question above is interesting. Within 
 the blog post here 
 
  the 
 auto-migration process describes creating an unverified business listing, 
 however I do not understand the benefit of the auto-migration process if 
 the requirement for a Location Extension includes a Verified Business 
 listing. If I understand correctly, unless a Verified Business Listing is 
 granted access to the Adwords Account by May 22, any current Location 
 Extensions (manual) will be disabled and could potentially effect the 
 performance of the campaign if not replaced with a Location Extension from 
 a Verified Business Listing. Is this correct to your understanding?

 Thank you for the assistance!

 Chris

 On Tuesday, April 18, 2017 at 6:41:15 AM UTC-5, Thanet Knack 
 Praneenararat (AdWords API Team) wrote:
>
> Hello BT,
>
> 1)If a client already has a google my business account, but has not 
>> disclosed logins to link the current campaign. Will the auto-migration 
>> duplicate two Google My Business accounts
>
> Let me check first and get back to you first.
>
> 2) An account was part of the auto-migration, if it has an unverified 
>> location will ads continue to run location extensions?
>
> No, it'll not.  In order for the locations to be published, they will 
> have to be verified first. Please check this document 
>  for more details.
>
> 3) What will happen to non location based business? 
> Could you please clarify? I'm not quite sure I understand your 
> question correctly.
>
> Best,
> Thanet, AdWords API Team
>
> On Tuesday, April 18, 2017 at 3:11:06 AM UTC+9, BT wrote:
>>
>> For the auto-migration, what will occur during the following 

Re: ClientCustomerId returns empty on AdwordsUser object

2017-04-24 Thread 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
Hi James, 

Assuming you have the OAuth2 credentials of the user for whom you need to 
retrieve the AdWords account details, you need to use 
CustomerService.getCustomers() 

 method 
without setting the clientCustomerId 

 header 
along with the credentials generated. The response will contain the details 
of all AdWords accounts associated with the authenticated Google account.

Please note that you'll only be able to get the AdWords account which can 
be directly accessible by this user. If the user has access to a manager 
account and you would like to retrieve the client accounts linked to this 
manager, you need to use ManagedCustomerService 

 as 
shown in this example 

. 

Regards,
Shwetha, 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/9331df9d-f8fd-4f00-8980-5857769f34ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Clone a campaign using only API

2017-04-24 Thread 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum
Hi Emanuele, 

The AdWords API does not have a clone functionality. If you want to create 
a copy of any object (campaign, adgroup, keyword..), you can first use the 
get service of that specific object and then pass the retrieved object to 
the mutate call of the corresponding service with the operator set as ADD. 
Eg., If you want to clone campaign A to create campaign B, you will first 
use the CampaignService.get() 

 and 
retrieve all the fields of campaign A and this result will need to be 
passed to CampaignService.mutate() 
.
 
This will only create a copy of campaign A and not the nested adgroups or 
criterion. To create the complete copy of campaign including the adgroups 
and criterion, you will need to be repeat the process in sequence using the 
'get' of the respective service followed by mutate and so on. And the 
process will have to be repeated for all the nested objects within the 
campaign and the adgroup. 

To find out the adgroups under a given campaign, you could use the 
AdGroupService.get() 

 with 
the specific CampaignId 

 set 
as predicate.

Unlike AdWords web interface, there isn't a single service that copies the 
entire Campaign. Please let me know if have any additional questions. 

Thanks,
Sreelakshmi, 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/74b6cb46-7df5-4d11-b66d-401f0814812b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: TOO_RECENT_CONVERSION_TYPE error when trying to add offline conversion

2017-04-24 Thread 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum
Hi Yosi, 

Could you check if the conversion type you're uploading to was enabled at 
the *time of the click*? The error CLICK_MISSING_CONVERSION_LABEL 

 usually 
means that conversion types were not enabled at the time of the click. 
Please check the validation rules and tips 

 to 
keep in mind while uploading conversions. 

If the conversion type was enabled when the click occurred, could you share 
the detailed logs for me to investigate? As a reminder, you could use *Reply 
privately to author* while sharing the SOAP logs. 

Thanks,
Sreelakshmi, 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/add83a23-5212-4fd1-83ad-dc2263682cee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Shopping Performance Report returns same product twice

2017-04-24 Thread 'Thanet Knack Praneenararat (AdWords API Team)' via AdWords API Forum
Hello Marc,

Sorry for the delay. It looks like this works as intended--all data of 
CategoryL5 is returned in SHOPPING_PERFORMANCE_REPORT.
I'm still asking if there are other workarounds for this.

Best,
Thanet, AdWords API Team

On Monday, April 24, 2017 at 4:01:49 PM UTC+9, Marc P wrote:
>
> Hi Thanet,
>
> any update on this topic?
>
> Thanks
> Marc
>
> On Wednesday, April 5, 2017 at 9:27:17 AM UTC+2, Thanet Knack 
> Praneenararat (AdWords API Team) wrote:
>>
>> Hi Marc,
>>
>> Thanks very much for reporting.
>> Your previous example then shows that *CategoryL5* really behaves like a 
>> segment.
>> If it's a key column, even if you don't request for it, there should be 
>> two rows returned.
>> I'll talk with engineering to see how we fix this.
>>
>> As for your other questions:
>>
>>> 1) How do I know what are the "key fields" in a report?
>>
>> Unfortunately, it's not quite obvious from the field itself. But we try 
>> to document it in the summary description in the beginning of each report 
>> type page.
>>
>> 2) You wrote "Have a look at OfferId and CategoryL5, you can tell that 
>>> those two rows are different" - you mean combined, correct? Because the 
>>> OfferId here is the same
>>
>> Yes, combined. It's like you have a composite key in relational 
>> databases. Only one key can't tell uniqueness of a row. We have to use them 
>> together to tell uniqueness.
>>
>> I find this confusing and would expect to get just one row with the 
>>> product and with CategoryL5 set to the most recent value for that product...
>>
>> I've passed this feedback to engineering too.
>> For now, would using date range help you? Or does it always return two 
>> rows for any kinds of date ranges? 
>>
>> Best,
>> Thanet, AdWords API Team
>>
>> On Wednesday, April 5, 2017 at 4:16:32 PM UTC+9, Marc P wrote:
>>>
>>> Hi Thanet,
>>>
>>> thank you for your help. Two more questions to clarify:
>>>
>>> 1) How do I know what are the "key fields" in a report?
>>> 2) You wrote "Have a look at OfferId and CategoryL5, you can tell that 
>>> those two rows are different" - you mean combined, correct? Because the 
>>> OfferId here is the same
>>>
>>> My point is this: I want to get the current information of the product, 
>>> however I get two rows for the same OfferId and it is different only on 
>>> CategoryL5 - thus I do not know which value of CategoryL5 is current and 
>>> which one is old / legacy.
>>>
>>> This only happens when the product was changed on CategoryL5 - it is the 
>>> same product (same OfferId). It appears twice only because it was changed 
>>> at some point in time.
>>>
>>> I find this confusing and would expect to get just one row with the 
>>> product and with CategoryL5 set to the most recent value for that product...
>>>
>>> Thank you again
>>> Marc
>>>
>>> On Thursday, March 30, 2017 at 6:06:33 PM UTC+2, Thanet Knack 
>>> Praneenararat (AdWords API Team) wrote:

 Hi Marc,

 It's true that they're not the segment field, but it's a *key* column 
 in this report type.
 The key columns are what you need to include in order to tell the 
 uniqueness of the report row.
 For instance, if you look at either only *AdGroupName*, *CampaignName* 
 in this report type, you can't distinguish two rows from each other.
 But if you have a look at *OfferId* and *CategoryL5*, you can tell 
 that those two rows are different.

 Put it in another way, they're an attribute field *that even when 
 you've not requested them, they're still requested implicitly.*
 You can't combine those rows that have at least one *key field* 
 different from each other.
 Not requesting them in AWQL / report definition just makes the 
 reporting service not return them with the results.

 This is different from segment fields. If you don't request them, 
 they're not requested implicitly.
 Once you request them, you're likely to get more report rows than usual.

 Hope this help.

 Thanet, AdWords API Team

 On Thursday, March 30, 2017 at 10:40:27 PM UTC+9, Marc P wrote:
>
> Hi Thanet,
>
> yes, in this case it is CategoryL5 - for another customer id it is 
> ProductTypeL3.
>
> My point is: both ProductTypeL3 and CategoryL5 are attributes as 
> specified in 
> https://developers.google.com/adwords/api/docs/appendix/reports/shopping-performance-report
>
> They are not Segments.
>
> So my understanding is that they should not split the data. Rather I 
> would assume to get just one result with ProductTypeL3 and CategoryL5 
> having the most recent attribute value ?
>
> Thank you for your help
> Marc
>
> On Thursday, March 30, 2017 at 8:56:22 AM UTC+2, Thanet Knack 
> Praneenararat (AdWords API Team) wrote:
>>
>> Hello,
>>
>> It seems what makes your returned rows look duplicate is not 
>> *ProductTypeL3*, but the *CategoryL5*.
>> As 

Re: Auto-Migration Manual Location Extensions

2017-04-24 Thread 'Thanet Knack Praneenararat (AdWords API Team)' via AdWords API Forum
Hello Alex,

You will still be able to fetch location extensions with feed item services.

> how is the fetching of the stats of location extensions will be affected 
> after the migration, will it be the same behavior as before?

I think you mean PLACEHOLDER_FEED_ITEM_REPORT?
If so, you'll get the new feed ID and feed item ID so the stats will be the 
new ones.

Hope this clarify. :-)

Best,
Thanet, AdWords API Team

On Tuesday, April 25, 2017 at 12:53:15 AM UTC+9, Alexandre Ho-Latreille 
wrote:
>
> Hello,
>
> following this discussion, once the locations are migrated, I know I won't 
> be able to manage those through the feed item service and will have to 
> create them with GMB. What I want to know is will I still be able to fetch 
> those location extensions with the feed item service and how is the 
> fetching of the stats of location extensions will be affected after the 
> migration, will it be the same behavior as before?
>
> Thank you,
>
> Alex
>
> On Wednesday, April 19, 2017 at 12:40:23 AM UTC-4, Thanet Knack 
> Praneenararat (AdWords API Team) wrote:
>>
>> Hello BT, Chris,
>>
>> Sorry for my ambiguous words for question #2. Please see the corrected 
>> version of my answer below.
>>
>>> 2) An account was part of the auto-migration, if it has an unverified 
>>> location will ads continue to run location extensions?
>>
>> In order for the locations to be published *in Google Search and Map*, 
>> they will have to be verified first. Please check this document 
>>  for more details.
>> *For ads themselves, unverified status doesn't prevent ads to use that 
>> location as its extension.*
>> In other words, *yes*, the ads continue to run location extensions after 
>> migration.
>>
>> For question #1,
>>
>>> 1)If a client already has a google my business account, but has not 
>>> disclosed logins to link the current campaign. Will the auto-migration 
>>> duplicate two Google My Business accounts
>>
>> The auto-migration will *always* create a new GMB account.
>> Of course, this would result in duplicate locations in some cases, but 
>> that's fine.
>> As mentioned above, unverified locations can be used as location 
>> extensions so this will not affect ads serving.
>> (You can think about unverified locations as phone book entries--anyone 
>> can create the same address entry in his/her accounts)
>>
>> Chris, please let me know if the above still doesn't address your 
>> question. :-)
>>
>> Cheers,
>> Thanet, AdWords API Team
>>
>> On Wednesday, April 19, 2017 at 2:25:08 AM UTC+9, Chris Fehrmann wrote:
>>>
>>> Thanet,
>>>
>>> The reply you provided to BT's #2 question above is interesting. Within 
>>> the blog post here 
>>> 
>>>  the 
>>> auto-migration process describes creating an unverified business listing, 
>>> however I do not understand the benefit of the auto-migration process if 
>>> the requirement for a Location Extension includes a Verified Business 
>>> listing. If I understand correctly, unless a Verified Business Listing is 
>>> granted access to the Adwords Account by May 22, any current Location 
>>> Extensions (manual) will be disabled and could potentially effect the 
>>> performance of the campaign if not replaced with a Location Extension from 
>>> a Verified Business Listing. Is this correct to your understanding?
>>>
>>> Thank you for the assistance!
>>>
>>> Chris
>>>
>>> On Tuesday, April 18, 2017 at 6:41:15 AM UTC-5, Thanet Knack 
>>> Praneenararat (AdWords API Team) wrote:

 Hello BT,

 1)If a client already has a google my business account, but has not 
> disclosed logins to link the current campaign. Will the auto-migration 
> duplicate two Google My Business accounts

 Let me check first and get back to you first.

 2) An account was part of the auto-migration, if it has an unverified 
> location will ads continue to run location extensions?

 No, it'll not.  In order for the locations to be published, they will 
 have to be verified first. Please check this document 
  for more details.

 3) What will happen to non location based business? 
 Could you please clarify? I'm not quite sure I understand your question 
 correctly.

 Best,
 Thanet, AdWords API Team

 On Tuesday, April 18, 2017 at 3:11:06 AM UTC+9, BT wrote:
>
> For the auto-migration, what will occur during the following scenarios?
>
> 1)If a client already has a google my business account, but has not 
> disclosed logins to link the current campaign. Will the auto-migration 
> duplicate two Google My Business accounts
>
> 2) An account was part of the auto-migration, if it has an unverified 
> location will ads continue to run location extensions?
>
> 3) What will happen to non 

Clone a campaign using only API

2017-04-24 Thread Emanuele Bragagnolo
Hi

I am implementing a feature to clone a whole AdWords campaign using only 
the API. Basically I want the same behavior of the CTRL+C and CTRL+V that 
is available in the AdWords UI

with a deep copy of the campaign and of all the AdGroups contained in it.

I've found this old thread 
https://groups.google.com/forum/#!topic/adwords-api/rErEluYfpAQ, but it's 
not indicated a clear solution for this use case

My approach is to get a campaign using the CampaignService.get and then 
create a new campaign using the response as template and modifying only few 
fields

Because I want to clone the whole campaign the response should contain all 
the data: where can I find a complete list of fields to include in the 
selector of the request?

I am using this documentation 
https://developers.google.com/adwords/api/docs/reference/v201702/CampaignService
 


but it's is not straightforward to include the fields for the nested objects

For the moment I have some problems because I cannot get the AdGroups list 
in the response

Best regards, Emanuele

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/b4c50871-7620-4a22-9582-7b7709f22f53%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Copy or clone a Campaign using API

2017-04-24 Thread Emanuele Bragagnolo
Hi!

I am trying to implement a functionality to clone an AdWords campaign using 
the API. Basically I want the same behavior of the CTRL+C and CTRL+V that 
is available in the AdWords UI with a deep copy of the campaign and of all 
the AdGroups contained in it.

The approach I am trying to use is to get all the campaigns data with 
CampaignService GET and then create a new campaign changing only some 
fields. 

I've found this old thread 
https://groups.google.com/forum/#!topic/adwords-api/rErEluYfpAQ , but It's 
not indicated a clear solution for this use case.

Because I want to clone all the campaign the response should contain all 
fields: where can I find the list of such fields?

for the moment I am checking this documentation 
https://developers.google.com/adwords/api/docs/reference/v201702/CampaignService
 

At the moment I'm having some problems to include the AdGroups list inside 
the response


Best regards, Emanuele

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/f8994875-5f3a-42f8-a0da-49a0dd820da4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Auto-Migration Manual Location Extensions

2017-04-24 Thread Alexandre Ho-Latreille
Hello,

following this discussion, once the locations are migrated, I know I won't 
be able to manage those through the feed item service and will have to 
create them with GMB. What I want to know is will I still be able to fetch 
those location extensions with the feed item service and how is the 
fetching of the stats of location extensions will be affected after the 
migration, will it be the same behavior as before?

Thank you,

Alex

On Wednesday, April 19, 2017 at 12:40:23 AM UTC-4, Thanet Knack 
Praneenararat (AdWords API Team) wrote:
>
> Hello BT, Chris,
>
> Sorry for my ambiguous words for question #2. Please see the corrected 
> version of my answer below.
>
>> 2) An account was part of the auto-migration, if it has an unverified 
>> location will ads continue to run location extensions?
>
> In order for the locations to be published *in Google Search and Map*, 
> they will have to be verified first. Please check this document 
>  for more details.
> *For ads themselves, unverified status doesn't prevent ads to use that 
> location as its extension.*
> In other words, *yes*, the ads continue to run location extensions after 
> migration.
>
> For question #1,
>
>> 1)If a client already has a google my business account, but has not 
>> disclosed logins to link the current campaign. Will the auto-migration 
>> duplicate two Google My Business accounts
>
> The auto-migration will *always* create a new GMB account.
> Of course, this would result in duplicate locations in some cases, but 
> that's fine.
> As mentioned above, unverified locations can be used as location 
> extensions so this will not affect ads serving.
> (You can think about unverified locations as phone book entries--anyone 
> can create the same address entry in his/her accounts)
>
> Chris, please let me know if the above still doesn't address your 
> question. :-)
>
> Cheers,
> Thanet, AdWords API Team
>
> On Wednesday, April 19, 2017 at 2:25:08 AM UTC+9, Chris Fehrmann wrote:
>>
>> Thanet,
>>
>> The reply you provided to BT's #2 question above is interesting. Within 
>> the blog post here 
>> 
>>  the 
>> auto-migration process describes creating an unverified business listing, 
>> however I do not understand the benefit of the auto-migration process if 
>> the requirement for a Location Extension includes a Verified Business 
>> listing. If I understand correctly, unless a Verified Business Listing is 
>> granted access to the Adwords Account by May 22, any current Location 
>> Extensions (manual) will be disabled and could potentially effect the 
>> performance of the campaign if not replaced with a Location Extension from 
>> a Verified Business Listing. Is this correct to your understanding?
>>
>> Thank you for the assistance!
>>
>> Chris
>>
>> On Tuesday, April 18, 2017 at 6:41:15 AM UTC-5, Thanet Knack 
>> Praneenararat (AdWords API Team) wrote:
>>>
>>> Hello BT,
>>>
>>> 1)If a client already has a google my business account, but has not 
 disclosed logins to link the current campaign. Will the auto-migration 
 duplicate two Google My Business accounts
>>>
>>> Let me check first and get back to you first.
>>>
>>> 2) An account was part of the auto-migration, if it has an unverified 
 location will ads continue to run location extensions?
>>>
>>> No, it'll not.  In order for the locations to be published, they will 
>>> have to be verified first. Please check this document 
>>>  for more details.
>>>
>>> 3) What will happen to non location based business? 
>>> Could you please clarify? I'm not quite sure I understand your question 
>>> correctly.
>>>
>>> Best,
>>> Thanet, AdWords API Team
>>>
>>> On Tuesday, April 18, 2017 at 3:11:06 AM UTC+9, BT wrote:

 For the auto-migration, what will occur during the following scenarios?

 1)If a client already has a google my business account, but has not 
 disclosed logins to link the current campaign. Will the auto-migration 
 duplicate two Google My Business accounts

 2) An account was part of the auto-migration, if it has an unverified 
 location will ads continue to run location extensions?

 3) What will happen to non location based business? 

>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 

Re: ClientCustomerId returns empty on AdwordsUser object

2017-04-24 Thread James Andrews
I hadn't seen the notice for update, so that's something I guess I need to 
work on.

The question is then, is there a way to get the customer information on the 
owner of the access token with the new api?

I'll explain why I need it.  We don't and never have used an INI file.  We 
pull data for many clients.  They log into our website and create what we 
call a "remote identity"  which is basically a collection of  tokens for 
various APIs (Google, Adwords, Facebook, Instagram) etc...  

Part of the primary table for remote identities we store the remote api's 
userId, and identifying name so when customer goes to use their remote 
identity on one of our products they can easily select the right one and 
then when they can choose what adwords "customer" they want to associate 
with their order from that remote identity.  If we can't get access to this 
data then it means our process which was written generically to accommodate 
all oauth APIs now needs to be hacked for the special case of adwords.

Thanks,
James


On Tuesday, April 25, 2017 at 12:01:02 AM UTC+9, Shwetha Vastrad (AdWords 
API Team) wrote:
>
> Hi James, 
>
> If you haven't set the clientCustomerId in your auth.ini file, then you'll 
> not be able to retrieve it from the AdWordsUser object. To use the 
> CustomerService to retrieve the AdWords account associated with the 
> authenticated user, you need to use the getCustomers 
> 
>  method 
> as shown here 
> .
>  
> If the authenticated user is linked to just one AdWords account, then the 
> response will contain the details of that customer. If a clientCustomerId 
> is specified in the request header, only details of that customer will be 
> returned. If no clientCustomerId is specified in a request, the response 
> will contain multiple entries if more than one account is directly 
> accessible by the authenticated user. 
>
> On another note, in December 2016, we announced 
> 
>  the 
> stable release of the new ads PHP library and the deprecation of the old 
> one. The new PHP library has many improvements such as support of 
> namespaces and Composer  installation. The 
> AdwordsUser 
> 
>  which 
> was used to configure the AdWords settings is now replaced by the 
> AdWordsSessionBuilder 
> .
>  
> Please see the upgrading guide 
>  for 
> more details. 
>
> Regards,
> Shwetha, 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/0a1edf19-46b9-42c2-8907-659080329e5f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Demographical report (AgeRanges + Gender)

2017-04-24 Thread 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum
Hi Adamos, 

The metrics and stats will only be available via reports. Since the Age and 
Gender fields are not available in one report, it might not be possible to 
combine the stats of both. The services can be used to get the targeting 
criterion of type AGE_RANGE and GENDER set at a specific campaign/AdGroup 
level. Unfortunately, to get the stats segmented based on both Age and 
gender as you are looking for might not be possible. 

Thanks,
Sreelakshmi, 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/10a4f7e5-a5f6-4522-8f6b-70b94dbf2adf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: ClientCustomerId returns empty on AdwordsUser object

2017-04-24 Thread 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
Hi James, 

If you haven't set the clientCustomerId in your auth.ini file, then you'll 
not be able to retrieve it from the AdWordsUser object. To use the 
CustomerService to retrieve the AdWords account associated with the 
authenticated user, you need to use the getCustomers 

 method 
as shown here 
.
 
If the authenticated user is linked to just one AdWords account, then the 
response will contain the details of that customer. If a clientCustomerId 
is specified in the request header, only details of that customer will be 
returned. If no clientCustomerId is specified in a request, the response 
will contain multiple entries if more than one account is directly 
accessible by the authenticated user. 

On another note, in December 2016, we announced 

 the 
stable release of the new ads PHP library and the deprecation of the old 
one. The new PHP library has many improvements such as support of 
namespaces and Composer  installation. The 
AdwordsUser 

 which 
was used to configure the AdWords settings is now replaced by the 
AdWordsSessionBuilder 
.
 
Please see the upgrading guide 
 for 
more details. 

Regards,
Shwetha, 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/57bce676-8d2a-4fff-9259-857a7b7f2e77%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: ClientCustomerId returns empty on AdwordsUser object

2017-04-24 Thread James Andrews
I should point out that $this->user is an AdwordsUser object.

On Monday, April 24, 2017 at 10:00:21 PM UTC+9, James Andrews wrote:
>
> Last week I noticed that there was a change to the php Adwords API library.
>
> Previously when we authenticated a user I would use:
>
> $customerService = $this->user->GetService("CustomerService");
> $customer = $customerService->get();
>
> To get the customer associated with the user who granted us the oauth 
> token.  According to the link below that has changed.
>
>
> https://github.com/googleads/googleads-php-lib/blob/master/src/Google/AdsApi/AdWords/v201702/mcm/CustomerService.php#L83-L85
>
> I looked around and found the GetClientCustomerId object on the 
> AdwordsUser object.  However when I try to run it it returns as empty.  My 
> only thought is that if I list out all the customers I only have one, which 
> is correct, so I am wonder if this returns empty if there is only one 
> customer associated with the account.
>
> Any help on what I am doing wrong would be appreciated.
>
>
>
>
>
>
>
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/b7ac006a-7189-4b85-8041-a012cb3b6b17%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Catchable fatal error: Argument 1 passed to GuzzleHttp\Psr7\rewind_body()

2017-04-24 Thread david . castro
Hi Peter,

I have this problem too. I'm running the latest version of Google Ads API 
PHP client library (v201702) and PHP 5.5.38. Could you help me with that?

I've checked this link 
 but none of 
posted solutions are working on my side.


Catchable fatal error: Argument 1 passed to GuzzleHttp\Psr7\rewind_body() 
> must implement interface Psr\Http\Message\MessageInterface, null given, 
> called in 
> /Applications/MAMP/htdocs/ReportingScripts/GG/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/GuzzleLogMessageHandler.php
>  
> on line 74 and defined in 
> /Applications/MAMP/htdocs/ReportingScripts/GG/vendor/guzzlehttp/psr7/src/functions.php
>  
> on line 274
>

 

On Monday, April 3, 2017 at 5:23:05 AM UTC+2, Peter Oliquino wrote:
>
> Hi Subin,
>
> Could you confirm if you are using the latest PHP client library version 
> of the AdWords API? If you are using an old version, I would recommend that 
> you upgrade to the latest version 
>  and refer to this 
> document 
>  for 
> the steps on how to upgrade. Additionally, you may also want to check the 
> PHP version you are using as the new client library requires PHP 5.5.9 and 
> higher.
>
> If the issue still persists after upgrading, you may want to contact the 
> PHP client library owners via this link 
> .
>
> Best regards,
> Peter
> 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/b2ff8c21-6611-4576-9bcc-395329ea26d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Demographical report (AgeRanges + Gender)

2017-04-24 Thread adamos . loizou
Hi Sreelakshmi,

Thanks for the reply.
I am not quite sure how I can get performance data by using these services.
I tried the services and what I seem to get is the metadata about the 
criteria used for each campaign and/or ad group.

How do I then get the performance data for a combination of criteria (i.e. *Age 
Range AND Gender*)?

Ideally, I would basically like something very similar to the report I get 
from the Age Range Performance Report with this AWQL:

SELECT CampaignId, CampaignName, Date, ExternalCustomerId, 
AdGroupId, AdGroupName, 
Criteria, 
CampaignStatus, VideoViews, Impressions, Cost, 
AverageCpm, AverageCpv, Clicks, ConversionRate, Conversions, 
ConversionValue, CostPerConversion, Ctr, EngagementRate, Engagements, 
VideoQuartile100Rate, VideoQuartile25Rate, VideoQuartile50Rate, 
VideoQuartile75Rate, VideoViewRate, ViewThroughConversions, Device 
FROM AGE_RANGE_PERFORMANCE_REPORT 
DURING 20170424, 20170424

This AWQL provides the desired columns and metrics for each key tuple of 
(*Campaign 
ID,  AdGroup ID, Device combo, Age Range*).
What I would like to achieve is get the same types of metrics/columns but 
add the Gender dimension to the key tuple i.e. (*Campaign ID,  AdGroup ID, 
Device combo, Age Range, Gender*).

How can I achieve that using the services you suggested?

Thanks for your help!
Adamos


On Friday, April 21, 2017 at 7:21:45 PM UTC+1, Sreelakshmi Sasidharan 
(AdWords API Team) wrote:
>
> Hi Adamos,
>
> Unfortunately, this is still not possible via the API. You may have to use 
> the AdGroupCriterionService or CampaignCriterionService as described in the 
> previous post. 
>
> Thanks,
> Sreelakshmi, 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/ad25fc49-4edd-4b43-a285-6ad28fb1f221%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


ClientCustomerId returns empty on AdwordsUser object

2017-04-24 Thread James Andrews
Last week I noticed that there was a change to the php Adwords API library.

Previously when we authenticated a user I would use:

$customerService = $this->user->GetService("CustomerService");
$customer = $customerService->get();

To get the customer associated with the user who granted us the oauth 
token.  According to the link below that has changed.

https://github.com/googleads/googleads-php-lib/blob/master/src/Google/AdsApi/AdWords/v201702/mcm/CustomerService.php#L83-L85

I looked around and found the GetClientCustomerId object on the AdwordsUser 
object.  However when I try to run it it returns as empty.  My only thought 
is that if I list out all the customers I only have one, which is correct, 
so I am wonder if this returns empty if there is only one customer 
associated with the account.

Any help on what I am doing wrong would be appreciated.









-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/5bbb56a7-2b53-40ae-b1f4-f35b3c69a8b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: basic API

2017-04-24 Thread desk
Ivan, hello.

Did you receive my private letter to you?

Regards

понедельник, 24 апреля 2017 г., 10:33:10 UTC+3 пользователь Ivan Bautista 
написал:
>
> Hi,
>
> The application process usually takes within 2 business days 
> 
>  before 
> you receive a response from the AdWords Compliance team. To further 
> investigate on your issue, could you reply to us privately (using *reply 
> privately to author* option) with your MCC account id?
>
> Regards,
> Ivan
> 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/217bbd44-0560-4038-a4b3-e6a6e3e33877%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Cannot find Watch Time and Avg. Watch time/impressions in the API

2017-04-24 Thread 'Ivan Bautista' via AdWords API Forum
Hi,

Are you perhaps referring to a report in the AdWords UI for the "Watch Time 
and Avg. Watch time/impressions" fields you have mentioned? If yes, could 
you reply to us privately (using *reply privately to author* option) 
with the complete screenshot of the AdWords UI report so I can better 
identify the appropriate report type and fields that you could use in the 
AdWords API?

Regards,
Ivan 
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/de515dd3-3630-4b9f-8df3-e553dd26eac1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Cannot find Watch Time and Avg. Watch time/impressions in the API

2017-04-24 Thread annalectautomation
Hi Guys,

We cannot find the metrics Watch Time and Avg. Watch time/impressions in 
the Adwords API Ad Report. Please let us know if they are under different 
names. 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/894cca18-8ef9-40d2-8771-2d80682860e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: basic API

2017-04-24 Thread 'Ivan Bautista' via AdWords API Forum
Hi,

The application process usually takes within 2 business days 

 before 
you receive a response from the AdWords Compliance team. To further 
investigate on your issue, could you reply to us privately (using *reply 
privately to author* option) with your MCC account id?

Regards,
Ivan
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/e0183688-e4f6-453a-9816-234c8527c5a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


basic API

2017-04-24 Thread desk
Hello.

We sent a request for basic API access on April 19, 2017.

How long does it take for an answer from Google?

We did not even receive a notification to the email that the form was 
successfully sent. Did google receive it? How can this be checked?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/83f1c727-73aa-4070-8ed2-3d84b24090d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Shopping Performance Report returns same product twice

2017-04-24 Thread Marc P
Hi Thanet,

any update on this topic?

Thanks
Marc

On Wednesday, April 5, 2017 at 9:27:17 AM UTC+2, Thanet Knack Praneenararat 
(AdWords API Team) wrote:
>
> Hi Marc,
>
> Thanks very much for reporting.
> Your previous example then shows that *CategoryL5* really behaves like a 
> segment.
> If it's a key column, even if you don't request for it, there should be 
> two rows returned.
> I'll talk with engineering to see how we fix this.
>
> As for your other questions:
>
>> 1) How do I know what are the "key fields" in a report?
>
> Unfortunately, it's not quite obvious from the field itself. But we try to 
> document it in the summary description in the beginning of each report type 
> page.
>
> 2) You wrote "Have a look at OfferId and CategoryL5, you can tell that 
>> those two rows are different" - you mean combined, correct? Because the 
>> OfferId here is the same
>
> Yes, combined. It's like you have a composite key in relational databases. 
> Only one key can't tell uniqueness of a row. We have to use them together 
> to tell uniqueness.
>
> I find this confusing and would expect to get just one row with the 
>> product and with CategoryL5 set to the most recent value for that product...
>
> I've passed this feedback to engineering too.
> For now, would using date range help you? Or does it always return two 
> rows for any kinds of date ranges? 
>
> Best,
> Thanet, AdWords API Team
>
> On Wednesday, April 5, 2017 at 4:16:32 PM UTC+9, Marc P wrote:
>>
>> Hi Thanet,
>>
>> thank you for your help. Two more questions to clarify:
>>
>> 1) How do I know what are the "key fields" in a report?
>> 2) You wrote "Have a look at OfferId and CategoryL5, you can tell that 
>> those two rows are different" - you mean combined, correct? Because the 
>> OfferId here is the same
>>
>> My point is this: I want to get the current information of the product, 
>> however I get two rows for the same OfferId and it is different only on 
>> CategoryL5 - thus I do not know which value of CategoryL5 is current and 
>> which one is old / legacy.
>>
>> This only happens when the product was changed on CategoryL5 - it is the 
>> same product (same OfferId). It appears twice only because it was changed 
>> at some point in time.
>>
>> I find this confusing and would expect to get just one row with the 
>> product and with CategoryL5 set to the most recent value for that product...
>>
>> Thank you again
>> Marc
>>
>> On Thursday, March 30, 2017 at 6:06:33 PM UTC+2, Thanet Knack 
>> Praneenararat (AdWords API Team) wrote:
>>>
>>> Hi Marc,
>>>
>>> It's true that they're not the segment field, but it's a *key* column 
>>> in this report type.
>>> The key columns are what you need to include in order to tell the 
>>> uniqueness of the report row.
>>> For instance, if you look at either only *AdGroupName*, *CampaignName* 
>>> in this report type, you can't distinguish two rows from each other.
>>> But if you have a look at *OfferId* and *CategoryL5*, you can tell that 
>>> those two rows are different.
>>>
>>> Put it in another way, they're an attribute field *that even when 
>>> you've not requested them, they're still requested implicitly.*
>>> You can't combine those rows that have at least one *key field* 
>>> different from each other.
>>> Not requesting them in AWQL / report definition just makes the reporting 
>>> service not return them with the results.
>>>
>>> This is different from segment fields. If you don't request them, 
>>> they're not requested implicitly.
>>> Once you request them, you're likely to get more report rows than usual.
>>>
>>> Hope this help.
>>>
>>> Thanet, AdWords API Team
>>>
>>> On Thursday, March 30, 2017 at 10:40:27 PM UTC+9, Marc P wrote:

 Hi Thanet,

 yes, in this case it is CategoryL5 - for another customer id it is 
 ProductTypeL3.

 My point is: both ProductTypeL3 and CategoryL5 are attributes as 
 specified in 
 https://developers.google.com/adwords/api/docs/appendix/reports/shopping-performance-report

 They are not Segments.

 So my understanding is that they should not split the data. Rather I 
 would assume to get just one result with ProductTypeL3 and CategoryL5 
 having the most recent attribute value ?

 Thank you for your help
 Marc

 On Thursday, March 30, 2017 at 8:56:22 AM UTC+2, Thanet Knack 
 Praneenararat (AdWords API Team) wrote:
>
> Hello,
>
> It seems what makes your returned rows look duplicate is not 
> *ProductTypeL3*, but the *CategoryL5*.
> As *CategoryL5 *is also the main key of SHOPPING_PERFORMANCE_REPORT, 
> this works as intended.
> In other words, to tell the uniqueness of a row in this report type, 
> *CategoryL5* should be taken into account as well.
>
> Cheers,
> Thanet, AdWords API Team
>
> On Tuesday, March 14, 2017 at 10:04:37 PM UTC+9, Firma Lemundo wrote:
>>
>> Hi everyone,
>>
>> I am facing the following