Custom Affinity via AdWords API

2018-10-01 Thread henry
Hi AdWords API/Google Ads API support team,

I found previous threads talking about Custom Affinity via AdWords API but 
they were not availabel back then. Now I see that their is a 
CustomAffinityService so I assume it exists now. I created the 
CustomAffinity and CustomAffinityToken but I am having trouble to find 
documents which can link the created CustomAffinity back to a Campaign or 
an AdGroup. Are their any documents or guides for this?

Sincerely,
Thanks

-- 
__Please consider the environment before printing this email or attachment_

_
_
_
This email and any attachments are confidential and may also be 
privileged. If you are not the addressee, do not disclose, copy, circulate 
or in any other way use or rely on the information contained in this email 
or any attachments. If received in error, notify the sender immediately and 
delete this email and any attachments from your system. Emails cannot be 
guaranteed to be secure or error free as the message and any attachments 
could be intercepted, corrupted, lost, delayed, incomplete or amended. 
Master Concept Group and its subsidiaries do not accept liability for 
damage caused by this email or any attachments and may monitor email 
traffic.


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/2b70302b-1739-4bec-93cf-4bec36a8596d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED on test account. Why?

2018-10-01 Thread takai
Hi, Teja,

I shared a log generated from my application and your SDK.
Could you tell me my mistake, please.

thanks
Takai


2018年9月29日土曜日 2時59分44秒 UTC+9 Teja Makani:
>
> Hello Takal,
>
> Sure, Please share the complete logs (request and response) without 
> redacting any information. Please use *request privately to the author* 
> option 
> while responding.
>
> Regards,
> Sai Teja, AdWords API Team.
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/6d18f5ae-2b5b-48d7-9789-764f500fc6b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AuthenticationError.OAUTH_TOKEN_INVALID

2018-10-01 Thread nikhil almeida
Hi, I did send the logs, code and credentials in a private message.
Thanks Nikhil

On Sunday, September 30, 2018 at 8:45:55 PM UTC-7, Dannison Yao (AdWords 
API Team) wrote:
>
> Hi Nikhil,
>
> My apologies for the delayed response. To answer your concern in this 
> thread 
> ,
>  
> if you are making calls against your production account, then yes, the OAuth2 
> Credentials 
>  has 
> to be setup by the same email used in your production MCC account. 
>
> Based on your logs, it seems that the credentials are not detected by the 
> API. Could you confirm if you have inputted your OAuth2 Credentials and 
> other information in the yaml file? If not, kindly input the credentials in 
> their respective fields in the yaml file then you may try to call the 
> service again.
>
> If this still does not work, could you provide the complete SOAP request 
> and response logs that were generated so that I could investigate this 
> further? You may provide complete the logs via *Reply privately to author*
> .
>
> Regards,
> Dannison
> AdWords API Team
>
> On Saturday, September 29, 2018 at 4:12:36 AM UTC+8, nikhil almeida wrote:
>>
>> I have tried configuring the yaml file and getting the constructor by 
>> loading from storage while also the method below.
>> But I keep getting the following error. Can some one please help?
>>
>> [2018-09-27 17:02:52,326 - googleads.soap - WARNING] Error summary: 
>> {'faultMessage': "[AuthenticationError.OAUTH_TOKEN_INVALID @ ; 
>> trigger:'']", 'requestId': '000576e32d3d31000aa37e521e0075d1', 
>> 'serviceName': 'CustomerService', 'methodName': 'getCustomers', 
>> 'operations': '0', 'responseTime': '20'}
>>
>> 
>>
>>
>> GoogleAdsServerFault: [AuthenticationError.OAUTH_TOKEN_INVALID @ ; 
>> trigger:''] 
>>
>>
>>
>>
>> GOOGLE_OAUTH2_ENDPOINT = 'https://accounts.google.com/o/oauth2/token'
>>
>> # OAuth2 credential information.
>> DEFAULT_CLIENT_ID = 'INSERT_CLIENT_ID_HERE'
>> DEFAULT_CLIENT_SECRET = 'INSERT_CLIENT_SECRET_HERE'
>> DEFAULT_REFRESH_TOKEN = 'INSERT_REFRESH_TOKEN_HERE'
>> # AdWords API information.
>> DEFAULT_CLIENT_CUSTOMER_ID = 'INSERT_CLIENT_CUSTOMER_ID_HERE'
>> DEFAULT_DEVELOPER_TOKEN = 'INSERT_DEVELOPER_TOKEN_HERE'
>> USER_AGENT = 'INSERT_USER_AGENT_HERE'
>>
>> oauth2credentials = client.OAuth2Credentials(
>>   None, DEFAULT_CLIENT_ID, DEFAULT_CLIENT_SECRET, 
>> DEFAULT_REFRESH_TOKEN,
>>   datetime.datetime(1980, 1, 1, 12), GOOGLE_OAUTH2_ENDPOINT,
>>   USER_AGENT)
>>
>> oauth2credentials.refresh(httplib2.Http())
>>
>> oauth2_client = 
>> oauth2.GoogleAccessTokenClient(oauth2credentials.access_token, 
>> oauth2credentials.token_expiry)
>>
>>
>> adwords_client = adwords.AdWordsClient(
>>   DEFAULT_DEVELOPER_TOKEN, oauth2_client, USER_AGENT,
>>   client_customer_id=DEFAULT_CLIENT_CUSTOMER_ID)
>>
>> customer = adwords_client.GetService('CustomerService').getCustomers()[0]
>> print(f"You are logged in as {customer['customerId']}")
>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/bbfc1d32-9c37-4281-a23f-7455dbe33239%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AuthenticationError.OAUTH_TOKEN_INVALID

2018-10-01 Thread nikhil almeida
Hi, I did send the logs, code and credentials in a private message.
Thanks Nikhil

On Monday, October 1, 2018 at 5:56:06 AM UTC-7, Michael Cloonan (AdWords 
API Team) wrote:
>
> Hello,
>
> The best way to debug this kind of issue is to actually capture the 
> network traffic or log the HTTP headers as you're making the call, to see 
> whether or not you're actually successfully creating an access token. In 
> the code you provided, you're using a non-recommended method of handling 
> authentication. The Python client library can handle authentication for 
> you, if you put your client id, client secret, and refresh token in a yaml 
> file with standard format and just allow the client to read it. 
> Alternatively, you can pass them to the client on initialization as a yaml 
> string if you don't want to commit it to disk. See this example file: 
> https://github.com/googleads/googleads-python-lib/blob/master/googleads.yaml
>
> If you must pass your own oauth2 credentials to the class constructor, it 
> must be a googleads.oauth2.GoogleOAuth2Client, which is another class that 
> is part of the Python client library. I can't see the context in your code 
> to see if you're using the right class or not, but I believe this may be 
> the root cause of the issue.
>
> Overall, I recommend doing your authentication by simply filling out the 
> .yaml file and putting it in your home directory, and let the client 
> library handle the implementation details.
>
> Regards,
> Mike, AdWords API Team
>
> On Sunday, September 30, 2018 at 11:45:55 PM UTC-4, Dannison Yao (AdWords 
> API Team) wrote:
>>
>> Hi Nikhil,
>>
>> My apologies for the delayed response. To answer your concern in this 
>> thread 
>> ,
>>  
>> if you are making calls against your production account, then yes, the 
>> OAuth2 
>> Credentials 
>>  has 
>> to be setup by the same email used in your production MCC account. 
>>
>> Based on your logs, it seems that the credentials are not detected by the 
>> API. Could you confirm if you have inputted your OAuth2 Credentials and 
>> other information in the yaml file? If not, kindly input the credentials in 
>> their respective fields in the yaml file then you may try to call the 
>> service again.
>>
>> If this still does not work, could you provide the complete SOAP request 
>> and response logs that were generated so that I could investigate this 
>> further? You may provide complete the logs via *Reply privately to 
>> author*.
>>
>> Regards,
>> Dannison
>> AdWords API Team
>>
>> On Saturday, September 29, 2018 at 4:12:36 AM UTC+8, nikhil almeida wrote:
>>>
>>> I have tried configuring the yaml file and getting the constructor by 
>>> loading from storage while also the method below.
>>> But I keep getting the following error. Can some one please help?
>>>
>>> [2018-09-27 17:02:52,326 - googleads.soap - WARNING] Error summary: 
>>> {'faultMessage': "[AuthenticationError.OAUTH_TOKEN_INVALID @ ; 
>>> trigger:'']", 'requestId': '000576e32d3d31000aa37e521e0075d1', 
>>> 'serviceName': 'CustomerService', 'methodName': 'getCustomers', 
>>> 'operations': '0', 'responseTime': '20'}
>>>
>>> 
>>>
>>>
>>> GoogleAdsServerFault: [AuthenticationError.OAUTH_TOKEN_INVALID @ ; 
>>> trigger:''] 
>>>
>>>
>>>
>>>
>>> GOOGLE_OAUTH2_ENDPOINT = 'https://accounts.google.com/o/oauth2/token'
>>>
>>> # OAuth2 credential information.
>>> DEFAULT_CLIENT_ID = 'INSERT_CLIENT_ID_HERE'
>>> DEFAULT_CLIENT_SECRET = 'INSERT_CLIENT_SECRET_HERE'
>>> DEFAULT_REFRESH_TOKEN = 'INSERT_REFRESH_TOKEN_HERE'
>>> # AdWords API information.
>>> DEFAULT_CLIENT_CUSTOMER_ID = 'INSERT_CLIENT_CUSTOMER_ID_HERE'
>>> DEFAULT_DEVELOPER_TOKEN = 'INSERT_DEVELOPER_TOKEN_HERE'
>>> USER_AGENT = 'INSERT_USER_AGENT_HERE'
>>>
>>> oauth2credentials = client.OAuth2Credentials(
>>>   None, DEFAULT_CLIENT_ID, DEFAULT_CLIENT_SECRET, 
>>> DEFAULT_REFRESH_TOKEN,
>>>   datetime.datetime(1980, 1, 1, 12), GOOGLE_OAUTH2_ENDPOINT,
>>>   USER_AGENT)
>>>
>>> oauth2credentials.refresh(httplib2.Http())
>>>
>>> oauth2_client = 
>>> oauth2.GoogleAccessTokenClient(oauth2credentials.access_token, 
>>> oauth2credentials.token_expiry)
>>>
>>>
>>> adwords_client = adwords.AdWordsClient(
>>>   DEFAULT_DEVELOPER_TOKEN, oauth2_client, USER_AGENT,
>>>   client_customer_id=DEFAULT_CLIENT_CUSTOMER_ID)
>>>
>>> customer = adwords_client.GetService('CustomerService').getCustomers()[0]
>>> print(f"You are logged in as {customer['customerId']}")
>>>
>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To 

Re: get product offer id of specific criteria id (shopping product group)

2018-10-01 Thread 'Milind Sankeshware (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi Kara,

If the product partitioning is not done by the offer Id, you won't be able 
to get the list of products in a product group. Let me know if you have any 
further questions. 

Thanks,
Milind, AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/fabcd4ba-a02a-4a39-a3c3-473ddb724748%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Keyword Performance Report missing keywords

2018-10-01 Thread 'Bharani Cherukuri (AdWords API Team)' via AdWords API and Google Ads API Forum
Hello Tom, 

The report metrics will return the historical stats while the Attributes 
will return the current state of the account. Could you share us the report 
definition along with the client customer Id, so I can take a look at the 
data you're pulling and then address your question? You can reply back via 
Reply privately to author option. 

Thanks,
Bharani, AdWords API Team

On Friday, September 21, 2018 at 6:54:31 AM UTC-4, 
tom.wagst...@raisingit.com wrote:
>
> Hi everyone,
>
> I am accessing the Keyword Performance Report via the API (in Python3, 
> using the standard libraries) and I'm making two separate requests, one to 
> bring back a list of all my active (/enabled/eligible) keywords, and 
> another to pull performance data for those keywords. I do this because the 
> performance report returns data on inactive keywords that I want to filter 
> out.
>
> I'm puzzled because some active keywords are not being returned in the 
> keyword performance report. According to this advice [
> https://support.google.com/google-ads/answer/2404039?hl=en-GB] the 
> performance report will exclude keywords that got no impressions, but I see 
> plenty of keywords with zero impressions that *are* returned in the 
> keyword performance report. So why are the keywords missing from the 
> performance report?
>
> Here is the code snippet I use to access the (live) status data:
>
> def getKeywordStatusReport(client):
> # Initialize appropriate service.
> report_downloader = client.GetReportDownloader(version="v201806")
>
>
> # Create report query.
> report_query = (adwords.ReportQueryBuilder()
>   .Select("ExternalCustomerId", "CampaignId", "AdGroupId", 
> "Id", "Criteria",
>   "KeywordMatchType", "CampaignStatus", 
> "AdGroupStatus", "Status")
>   .From("KEYWORDS_PERFORMANCE_REPORT")
>   .Where("Status").EqualTo("ENABLED")
>   .Where("AdGroupStatus").EqualTo("ENABLED")
>   .Where("CampaignStatus").EqualTo("ENABLED")
>   .Build())
>
> And the bit I use (the following day) to access the performance data:
>
> def getKeywordPerformanceReport(client):
> # Initialize appropriate service.
> report_downloader = client.GetReportDownloader(version="v201806")
>
>
> # Create report query.
> report_query = (adwords.ReportQueryBuilder()
>   .Select("ExternalCustomerId", "CampaignId", "AdGroupId", 
> "Id", "Criteria",
>   "KeywordMatchType", "Clicks", "Impressions", 
> "Cost", "Conversions", "Date")
>   .From("KEYWORDS_PERFORMANCE_REPORT")
>   .During("YESTERDAY")
>   .Build())
>
> Why would this second query fail to return data on keywords that were 
> active the previous day?
>
> Cheers,
> Tom
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/2be721f1-4fe1-46b0-8d59-2a9682930776%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Is it possible to obtain bid landscapes for portfolio shared bidding strategies

2018-10-01 Thread 'Luis Xander Talag (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi Querijin,

Could you confirm if what you want to achieve is to obtain the BidLandscape 

 of 
a Campaign with shared bidding strategy? If so, as long as you meet the 
requirements stated on this guide 
,
 whether 
you are using a shared bidding strategy or not, you should be able to 
retrieve the BidLandscape 

 object 
data.

Let me know if this is what you are looking for. 

Thanks and regards,
Luis
AdWords API Team

On Tuesday, October 2, 2018 at 2:51:06 AM UTC+8, querijn.de.graaf wrote:
>
> Dear Adwords API team,
>
> Aside from Adgroup, Campaign and Criterion level, is it possible to obtain 
> the BidLandscape object for a shared bidding strategy over an entire 
> portfolio?
> Provided that all the campaigns in the portfolio have conversion tracking 
> enabled, are of a Search Only or Display Only type and are not Test 
> accounts.
>
> If not, what are other possibilities for using the API to obtain the bid 
> simulation of a shared strategy over many campaigns in an account?
>
> Thanks in advance for the support
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/828252fd-ee74-4acd-b376-7c0003c72971%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: get product offer id of specific criteria id (shopping product group)

2018-10-01 Thread YLi
Hi Milind,
Thanks for the reply.
What about the previous question? If the partition group is not specified 
down to offer ID level, it's just a group of products, will I be able to 
get this list of product within the product partition?
Thank you so much,

On Monday, October 1, 2018 at 4:29:05 PM UTC-4, Milind Sankeshware (AdWords 
API Team) wrote:
>
> Hi Kara,
>
> The product groups can only be included for bidding or excluded from 
> bidding. You will not be able to pause them. If you need to remove them, 
> you will have to makes sure that the product partition tree is still having 
> a valid structure. Please check here 
> 
>  for 
> more details. If you have more questions about how to handle this scenario 
> at the AdWords account level, my suggestion is to post on the Advertisers 
> community forum 
>  so 
> that the experts there can share their insights..
>
> Thanks,
> Milind, AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/3c55e446-1939-49fe-91a0-ad20ba8976b1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: get product offer id of specific criteria id (shopping product group)

2018-10-01 Thread 'Milind Sankeshware (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi Kara,

The product groups can only be included for bidding or excluded from 
bidding. You will not be able to pause them. If you need to remove them, 
you will have to makes sure that the product partition tree is still having 
a valid structure. Please check here 

 for 
more details. If you have more questions about how to handle this scenario 
at the AdWords account level, my suggestion is to post on the Advertisers 
community forum 
 so 
that the experts there can share their insights..

Thanks,
Milind, AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/1cf4b83d-5c8d-4cff-b25d-c5a0fedd1552%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Is it possible to obtain bid landscapes for portfolio shared bidding strategies

2018-10-01 Thread querijn . de . graaf
Dear Adwords API team,

Aside from Adgroup, Campaign and Criterion level, is it possible to obtain 
the BidLandscape object for a shared bidding strategy over an entire 
portfolio?
Provided that all the campaigns in the portfolio have conversion tracking 
enabled, are of a Search Only or Display Only type and are not Test 
accounts.

If not, what are other possibilities for using the API to obtain the bid 
simulation of a shared strategy over many campaigns in an account?

Thanks in advance for the support

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/830dfbf9-8288-42ec-aac7-8d6c907038a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How could I get only disapproved products and their disapproved reason from api

2018-10-01 Thread 'Milind Sankeshware (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi,

In AdWords API, you won't be able to get the disapproved products along 
with the disapproved reason. Please post your question on the Content API 
forum 

, if you would like to know about getting these from the Content API. 

Thanks,
Milind, AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/c53172f2-3105-4bd7-ac3e-5010e4371066%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Why: Adwords API doesn't merge keywords that are close variants to 1 keywords like Keyword Planner does.

2018-10-01 Thread 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API and Google Ads API Forum
Hello, 

Performing a similar test at my end, I see that the AdWords API is 
returning 4 entries each which has 140 as SEARCH_VOLUME for the first 3 and 
no results for the last one. Which is matching with the keyword planner in 
the UI. As you observed, keyword planner is combining the close variants 
together and returning one row with the status. You might have observed the 
message "Some keywords you entered and their close variants have been 
grouped into one row" in the keyword planner. I feel, you may need to 
change the logic of how you are calculating the search volume of 4 keywords 
in one ad group. My suggestion is to post the questions about deriving the 
search volume in an ad group in the advertisers community forum 
. 
The product experts there should be able to guide you better. 

Thanks,
Sreelakshmi, AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/4f1cfa5e-5239-4f2d-98c3-0a3ee6c2d8a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Unable to get list of linked accounts in Manager test account

2018-10-01 Thread 'Dhanya Sundararaju (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi,

When you create a test account, it will be in canceled status by default. 
To see the cancelled accounts from the UI, you will need to adjust the 
filters in the top left corner. When you run 
$customerService->getCustomers(), the API will only return the accounts on 
which you are a user. In your case, if you are not a user on the client 
accounts, only the MCC accounts will be returned. To get the account 
hierarchy, you will need to use the ManagedCustomerService.get().

Regards,
Dhanya, Adwords APi Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/93e71fd9-f803-4b8b-9ede-80c8bd8fad83%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: UNEXPECTED_INTERNAL_API_ERROR

2018-10-01 Thread 'Teja Makani' via AdWords API and Google Ads API Forum
Hello Stella,

Looks like you are following up with Sreelakshmi on another thread 
,
 
to avoid confusion please followup on that thread only.

Regards,
Sai Teja, AdWords API Team.

On Thursday, June 28, 2018 at 12:30:04 PM UTC-4, Get Work wrote:
>
> Hi there,
>
> We're experiencing the following API error, just wondered if this was a 
> temporary error, or when it would be fixed.
>
> InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ 
> com.google.ads.api.services.common.error.InternalApiError.
>
> Thanks
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/d7a068c9-a3ac-4c74-b32a-65172c8aaf7e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Not able to retrieve Labels

2018-10-01 Thread 'Teja Makani' via AdWords API and Google Ads API Forum
Hello Jane,

To investigate further on this concern, could you please share the report 
definition 

 along 
with the dependency you are mentioning. You could use reply privately to 
the author option while sharing the details requested. 

Regards,
Sai Teja, AdWords API Team.

On Monday, October 1, 2018 at 7:55:13 AM UTC-4, ja...@nugit.co wrote:
>
> Hi Team,
>
> We're pulling in labels via API for our reporting platform. 
>
> We are experiencing some data discrepancy whereby we are receiving label 
> data for 2018 but null for the majority of 2017.
> Can you help us understand why this might be the case? 
>
> Campaign ID: 1012011326 Label ID: 3360571495 
> Campaign ID: 882799092  Label ID: 3360460875
>
> Appreciate it.
>
> Cheers,
> Jane
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/5176977b-b1a9-4f24-9c22-282daa1432ba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Final Url Report Return Final URL Instead of Mobile URL

2018-10-01 Thread 'Bharani Cherukuri (AdWords API Team)' via AdWords API and Google Ads API Forum
Hello Hazar, 

Could you share us the client customer Id of the account so I can take a 
look? You may also use the FinalMobileUrls 

 which 
will return all the list of Final Mobile URLs. You can find the supported 
report types which return this field information in the link shared. You 
can chose to reply via Reply privately to author option. 

Thanks,
Bharani, AdWords API Team 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/017e55e8-66d9-47f9-850d-bd8b1f467769%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Developer Token not Approved on testing client account

2018-10-01 Thread 'Dhanya Sundararaju (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi Faizan,

The DEVELOPER_TOKEN_NOT_APPROVED 

 error 
message that you get is because you are trying to access a 
Production(Non-test account) with a Test Developer Token. Could you confirm 
that you are making API calls against a test account? If yes, could you 
reply back with complete SOAP logs with client customer id not redacted. 
You may *reply privately to author*.

Regards,
Dhanya, AdWords APi Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/d44253e3-345b-4889-b89c-d006b631fb1f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: UNEXPECTED_INTERNAL_API_ERROR retrieving callout extensions

2018-10-01 Thread 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API and Google Ads API Forum
Hello, 

Could you please share your code snippet and values of the variables (if 
any) along with the CID? You can use reply privately to author option if 
you prefer that.

Thanks,
Sreelakshmi, AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/3864e6ce-e1b4-4c0d-a2e6-8f778c31826e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Get user info after oauth2 login.

2018-10-01 Thread Zweitze
You have a few options.

If you ONLY need some user id then Google's OAuth2 API allows you to do so. 
This user id is unique for users, and you can use it (for instance) to 
check if a user logged on before. Or for communicating with Google.

If you need more, like the actual email address, then you also have an 
option: When the user is about to log on, you have to pass a so-called 
scope to the OAuth2 API. You can actually pass multiple scopes, and the 
scope for the gmail API can be among them. If you ask two scopes, and the 
user logs on and agrees, you get a single access token allowing you to 
access the account with both APIs.
So what you do, you pass the scopes for AdWords API and gmail API, and you 
use the access token (and refresh token, if necessary) for both APIs.

It has some side effects:
1. Obviously, when a user logs on, Google will ask him whether your 
software is allowed to access his AdWords account AND access his gmail 
account. Note that gmail API has multiple scopes (only reading / also 
sending / etc.), you better choose the minimal scope that provides the 
information you need.
2. When a user logs on, and you store its refresh token (for instance, to 
do large batch operations at night), do realize that this refresh token 
will be withdrawn automatically when the user changes his password. And 
possibly other options too, like reconfiguring 2FA. That behavior is 
related to gmail API, refresh tokens without access to gmail survive a 
change of passwords. (And that is not exactly true, Analytics API had the 
same behavior).
3. I am not sure if it works on accounts that are not gmail accounts. I 
would think you could still do a limited set of actions, like asking its 
properties, but I am not sure.

I hope this helps.


On Monday, October 1, 2018 at 12:35:17 PM UTC+2, Albert Paolo Rogelio wrote:
>
> Hi i want to retrieve the user info of the authenticated user.
>
> for example my login account is te...@gmail.com , i want to 
> retrieve the userinfo of te...@gmail.com  including the 
> email. 
>
> is it possible?
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/799d310a-999c-4414-acc3-802f39364cbd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Keyword Performance Report missing keywords

2018-10-01 Thread tom . wagstaff
Hi Bharani,

Apologies for the delay in responding - I've been away - and thanks for 
your reply.

When your guidance says: 

> The values returned will always reflect the current state of the account, 
> ignoring the timespan of the report. 
>
I had taken this to mean that if the attribute value has changed, the 
current value will be returned instead of the value at the time - so if I 
changed the match type, and then queried performance data for last week - 
the current match type will be returned along with that historical 
performance data.

What you're saying is that if I pause a keyword, then I simply won't be 
able to recover historical performance data for that keyword from when it 
was active. Are you sure? I can get keyword performance reports that bring 
back data on keywords that are not currently active...

Cheers,
Tom

On Friday, 21 September 2018 19:42:08 UTC+1, Bharani Cherukuri (AdWords API 
Team) wrote:
>
> Hello Tom, 
>
> I see that you're segmenting the report by Date, which will group the 
> keywords based on the date. However, few fields (Id, Criteria, 
> KeywordMatchType) in the report query are of the type Attribute. This type 
> will return the current state of the account, ignoring the timespan of the 
> report. This means, irrespective of the date range, the attributes will 
> always return the current keywords that are active in the account. Please 
> check this guide 
> 
>  for 
> more information. 
>
> Let me know if you have any other questions. 
>
> Regards,
> Bharani, AdWords API Team
>
> On Friday, September 21, 2018 at 6:54:31 AM UTC-4, tom.wa...@raisingit.com 
>  wrote:
>>
>> Hi everyone,
>>
>> I am accessing the Keyword Performance Report via the API (in Python3, 
>> using the standard libraries) and I'm making two separate requests, one to 
>> bring back a list of all my active (/enabled/eligible) keywords, and 
>> another to pull performance data for those keywords. I do this because the 
>> performance report returns data on inactive keywords that I want to filter 
>> out.
>>
>> I'm puzzled because some active keywords are not being returned in the 
>> keyword performance report. According to this advice [
>> https://support.google.com/google-ads/answer/2404039?hl=en-GB] the 
>> performance report will exclude keywords that got no impressions, but I see 
>> plenty of keywords with zero impressions that *are* returned in the 
>> keyword performance report. So why are the keywords missing from the 
>> performance report?
>>
>> Here is the code snippet I use to access the (live) status data:
>>
>> def getKeywordStatusReport(client):
>> # Initialize appropriate service.
>> report_downloader = client.GetReportDownloader(version="v201806")
>>
>>
>> # Create report query.
>> report_query = (adwords.ReportQueryBuilder()
>>   .Select("ExternalCustomerId", "CampaignId", "AdGroupId"
>> , "Id", "Criteria",
>>   "KeywordMatchType", "CampaignStatus", 
>> "AdGroupStatus", "Status")
>>   .From("KEYWORDS_PERFORMANCE_REPORT")
>>   .Where("Status").EqualTo("ENABLED")
>>   .Where("AdGroupStatus").EqualTo("ENABLED")
>>   .Where("CampaignStatus").EqualTo("ENABLED")
>>   .Build())
>>
>> And the bit I use (the following day) to access the performance data:
>>
>> def getKeywordPerformanceReport(client):
>> # Initialize appropriate service.
>> report_downloader = client.GetReportDownloader(version="v201806")
>>
>>
>> # Create report query.
>> report_query = (adwords.ReportQueryBuilder()
>>   .Select("ExternalCustomerId", "CampaignId", "AdGroupId"
>> , "Id", "Criteria",
>>   "KeywordMatchType", "Clicks", "Impressions", 
>> "Cost", "Conversions", "Date")
>>   .From("KEYWORDS_PERFORMANCE_REPORT")
>>   .During("YESTERDAY")
>>   .Build())
>>
>> Why would this second query fail to return data on keywords that were 
>> active the previous day?
>>
>> Cheers,
>> Tom
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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 

Re: get product offer id of specific criteria id (shopping product group)

2018-10-01 Thread YLi
Another thing I want to check within the product group, if there's no 
product submitted in the product group anymore, will I be able to turn off 
the product group automatically? And if the product come back again, will I 
be able to again turn on the product group automatically?
Thank you so much,
Kara

On Monday, October 1, 2018 at 9:07:00 AM UTC-4, y...@globalindustrial.com 
wrote:
>
> Hi Milind,
> I don't see the offerID field in the selector: 
> https://developers.google.com/adwords/api/docs/appendix/selectorfields#v201809-AdGroupCriterionService
> If the partition is specify to certain brand or category, not down to 
> Offer ID, will I still be able to get the products that belong to this 
> partition?
> Thanks,
> Kara
>
> On Friday, September 28, 2018 at 5:50:36 PM UTC-4, Milind Sankeshware 
> (AdWords API Team) wrote:
>>
>> Hi Kara,
>>
>> If the product partitioning is done by offer Id, you can use the 
>> AdGroupCriterionService.get() 
>> 
>>  and 
>> specify the AdGroupId 
>> 
>>  to 
>> get all the product partitions 
>> 
>>  or 
>> offers ids in that product partition. Let me know if you have any further 
>> questions. 
>>
>> Thanks,
>> Milind, AdWords API Team
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/5e48ebe5-deb5-4fed-80ce-4da35c066bb8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: get product offer id of specific criteria id (shopping product group)

2018-10-01 Thread YLi
Hi Milind,
I don't see the offerID field in the selector: 
https://developers.google.com/adwords/api/docs/appendix/selectorfields#v201809-AdGroupCriterionService
If the partition is specify to certain brand or category, not down to Offer 
ID, will I still be able to get the products that belong to this partition?
Thanks,
Kara

On Friday, September 28, 2018 at 5:50:36 PM UTC-4, Milind Sankeshware 
(AdWords API Team) wrote:
>
> Hi Kara,
>
> If the product partitioning is done by offer Id, you can use the 
> AdGroupCriterionService.get() 
> 
>  and 
> specify the AdGroupId 
> 
>  to 
> get all the product partitions 
> 
>  or 
> offers ids in that product partition. Let me know if you have any further 
> questions. 
>
> Thanks,
> Milind, AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/e594fb45-2a7a-4926-b3ad-4d74b4b17427%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AuthenticationError.OAUTH_TOKEN_INVALID

2018-10-01 Thread 'Michael Cloonan (AdWords API Team)' via AdWords API and Google Ads API Forum
Hello,

The best way to debug this kind of issue is to actually capture the network 
traffic or log the HTTP headers as you're making the call, to see whether 
or not you're actually successfully creating an access token. In the code 
you provided, you're using a non-recommended method of handling 
authentication. The Python client library can handle authentication for 
you, if you put your client id, client secret, and refresh token in a yaml 
file with standard format and just allow the client to read it. 
Alternatively, you can pass them to the client on initialization as a yaml 
string if you don't want to commit it to disk. See this example 
file: 
https://github.com/googleads/googleads-python-lib/blob/master/googleads.yaml

If you must pass your own oauth2 credentials to the class constructor, it 
must be a googleads.oauth2.GoogleOAuth2Client, which is another class that 
is part of the Python client library. I can't see the context in your code 
to see if you're using the right class or not, but I believe this may be 
the root cause of the issue.

Overall, I recommend doing your authentication by simply filling out the 
.yaml file and putting it in your home directory, and let the client 
library handle the implementation details.

Regards,
Mike, AdWords API Team

On Sunday, September 30, 2018 at 11:45:55 PM UTC-4, Dannison Yao (AdWords 
API Team) wrote:
>
> Hi Nikhil,
>
> My apologies for the delayed response. To answer your concern in this 
> thread 
> ,
>  
> if you are making calls against your production account, then yes, the OAuth2 
> Credentials 
>  has 
> to be setup by the same email used in your production MCC account. 
>
> Based on your logs, it seems that the credentials are not detected by the 
> API. Could you confirm if you have inputted your OAuth2 Credentials and 
> other information in the yaml file? If not, kindly input the credentials in 
> their respective fields in the yaml file then you may try to call the 
> service again.
>
> If this still does not work, could you provide the complete SOAP request 
> and response logs that were generated so that I could investigate this 
> further? You may provide complete the logs via *Reply privately to author*
> .
>
> Regards,
> Dannison
> AdWords API Team
>
> On Saturday, September 29, 2018 at 4:12:36 AM UTC+8, nikhil almeida wrote:
>>
>> I have tried configuring the yaml file and getting the constructor by 
>> loading from storage while also the method below.
>> But I keep getting the following error. Can some one please help?
>>
>> [2018-09-27 17:02:52,326 - googleads.soap - WARNING] Error summary: 
>> {'faultMessage': "[AuthenticationError.OAUTH_TOKEN_INVALID @ ; 
>> trigger:'']", 'requestId': '000576e32d3d31000aa37e521e0075d1', 
>> 'serviceName': 'CustomerService', 'methodName': 'getCustomers', 
>> 'operations': '0', 'responseTime': '20'}
>>
>> 
>>
>>
>> GoogleAdsServerFault: [AuthenticationError.OAUTH_TOKEN_INVALID @ ; 
>> trigger:''] 
>>
>>
>>
>>
>> GOOGLE_OAUTH2_ENDPOINT = 'https://accounts.google.com/o/oauth2/token'
>>
>> # OAuth2 credential information.
>> DEFAULT_CLIENT_ID = 'INSERT_CLIENT_ID_HERE'
>> DEFAULT_CLIENT_SECRET = 'INSERT_CLIENT_SECRET_HERE'
>> DEFAULT_REFRESH_TOKEN = 'INSERT_REFRESH_TOKEN_HERE'
>> # AdWords API information.
>> DEFAULT_CLIENT_CUSTOMER_ID = 'INSERT_CLIENT_CUSTOMER_ID_HERE'
>> DEFAULT_DEVELOPER_TOKEN = 'INSERT_DEVELOPER_TOKEN_HERE'
>> USER_AGENT = 'INSERT_USER_AGENT_HERE'
>>
>> oauth2credentials = client.OAuth2Credentials(
>>   None, DEFAULT_CLIENT_ID, DEFAULT_CLIENT_SECRET, 
>> DEFAULT_REFRESH_TOKEN,
>>   datetime.datetime(1980, 1, 1, 12), GOOGLE_OAUTH2_ENDPOINT,
>>   USER_AGENT)
>>
>> oauth2credentials.refresh(httplib2.Http())
>>
>> oauth2_client = 
>> oauth2.GoogleAccessTokenClient(oauth2credentials.access_token, 
>> oauth2credentials.token_expiry)
>>
>>
>> adwords_client = adwords.AdWordsClient(
>>   DEFAULT_DEVELOPER_TOKEN, oauth2_client, USER_AGENT,
>>   client_customer_id=DEFAULT_CLIENT_CUSTOMER_ID)
>>
>> customer = adwords_client.GetService('CustomerService').getCustomers()[0]
>> print(f"You are logged in as {customer['customerId']}")
>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads API Forum" group.
To unsubscribe 

Not being able to retreive Labels

2018-10-01 Thread jane
Hi team,

We're currently experiencing missing data when pulling in Labels.
We see valid data for 2018 data; we see null for the majority of 2017. 

Can you help check on why this may be the case? 

Campaign ID: 1012011326 Label ID: 3360571495
Campaign ID: 882799092 Label ID: 3360460875

Appreciate it.

Cheers,
Jane

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/634bd024-707c-4f9c-808f-d2c722432633%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Not able to retrieve Labels

2018-10-01 Thread jane
Hi Team,

We're pulling in labels via API for our reporting platform. 

We are experiencing some data discrepancy whereby we are receiving label 
data for 2018 but null for the majority of 2017.
Can you help us understand why this might be the case? 

Campaign ID: 1012011326 Label ID: 3360571495 
Campaign ID: 882799092  Label ID: 3360460875

Appreciate it.

Cheers,
Jane

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/3357124b-e218-4bba-b0b0-34f678a66e73%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Unable to get list of linked accounts in Manager test account

2018-10-01 Thread contact
Hi,

In my Manager test account, I have linked 3 accounts by creating them in 
the Accounts section. I can see these linked accounts in the Overview 
section. 

But, I am unable to see them in the Accounts section, and also don't get 
the list when I hit the following API - $customerService->getCustomers(). This 
API only returns the Manager test account. I am pretty sure I got the list 
of linked accounts when I first ran the API. 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/9157e248-9d73-4bb1-a4d3-da11dac816dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Developer Token not Approved on testing client account

2018-10-01 Thread faizan . zulfiqar
Here are the steps i did for making API's Run

1. Create a Developer Token with the MCC Account
2. Create Test Manager Account and its client account.
3. Create OAuth credentials with the manager account.
4. Get Refresh Token with the Test Manager Account.

Now when i am trying to hit getcampaign Api via php library. it gave me 
error of DEVELOPER_TOKEN_NOT_APPROVED
when i change my client id to test manager account. API is working 
perfectly file with result : 0 record found.

can anyone guide me what i am doing wrong in it ?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/7f148620-ce26-4066-8f2e-beec0accb9d8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Why: Adwords API doesn't merge keywords that are close variants to 1 keywords like Keyword Planner does.

2018-10-01 Thread Doan Minh Tien
This is my list of keywords when I use the API to retrieve Search Volume:

   - best san francisco walking tour
   - best walking tour of san francisco
   - best walking tours in san francisco
   - francisbest walking tours of san 
   
Results: (I printed them out):
{'KEYWORD_TEXT': 'best san francisco walking tour', 'SEARCH_VOLUME': 140}
{'KEYWORD_TEXT': 'best walking tour of san francisco', 'SEARCH_VOLUME': 140}
{'KEYWORD_TEXT': 'best walking tours in san francisco', 'SEARCH_VOLUME': 
140}
{'KEYWORD_TEXT': 'best walking tours of san francisco', 'SEARCH_VOLUME': 
140}

==

I input those keyword to Keyword Planner as well, and this is the result

[image: google adwords keyword planner.png]

You can see that there is only 1 keyword here (with 140 SV)




This is a problem because if I group all of those 4 keywords to 1 group, 
the SV for this group would be (140 * 4 = 560) which doesn't match which 
Keyword Planner (140)

Note: My understanding is when KW Planner merges all of those keywords to 1 
keyword, then sum SV for all of those 4 keywords would be 140.


Code I'm using to get SV:


def get_keyword_sv(keywords, client=None, ad_group_id=None):
print("start get sv");
if client is None:
client = adwords.AdWordsClient.LoadFromStorage()
# Initialize appropriate service.
targeting_idea_service = client.GetService(
'TargetingIdeaService', version='v201809')

# Construct selector object and retrieve related keywords.
selector = {
'ideaType': 'KEYWORD',
'requestType': 'STATS'
}

selector['requestedAttributeTypes'] = [
'KEYWORD_TEXT', 'SEARCH_VOLUME']

offset = 0
selector['paging'] = {
'startIndex': str(offset),
'numberResults': str(PAGE_SIZE)
}

selector['searchParameters'] = [{
'xsi_type': 'RelatedToQuerySearchParameter',
'queries': keywords
}]



# Language setting (optional).
selector['searchParameters'].append({
# The ID can be found in the documentation:
# 
https://developers.google.com/adwords/api/docs/appendix/languagecodes
'xsi_type': 'LanguageSearchParameter',
'languages': [{'id': '1000'}]
})

# Network search parameter (optional)
selector['searchParameters'].append({
'xsi_type': 'NetworkSearchParameter',
'networkSetting': {
'targetGoogleSearch': True,
'targetSearchNetwork': False,
'targetContentNetwork': False,
'targetPartnerSearchNetwork': False
}
})

# Use an existing ad group to generate ideas (optional)
if ad_group_id is not None:
selector['searchParameters'].append({
'xsi_type': 'SeedAdGroupIdSearchParameter',
'adGroupId': ad_group_id
})

keyword_search_volumes = []

more_pages = True
while more_pages:
page = targeting_idea_service.get(selector)

# Display results.
if 'entries' in page:
for result in page['entries']:
attributes = {}
for attribute in result['data']:
attributes[attribute['key']] = getattr(
attribute['value'], 'value', '0')

print(attributes)
keyword_search_volumes = keyword_search_volumes + 
[[attributes['KEYWORD_TEXT'], attributes['SEARCH_VOLUME']]];
# print(('Keyword with "%s" text and average monthly search 
volume '
#  '"%s" was found with Products and Services 
categories: %s.'
#  % (attributes['KEYWORD_TEXT'],
# attributes['SEARCH_VOLUME'],
#
 attributes['CATEGORY_PRODUCTS_AND_SERVICES'])))
else:
#please ignore this else
print('No related keywords were found.')
offset += PAGE_SIZE
selector['paging']['startIndex'] = str(offset)
more_pages = offset < int(page['totalNumEntries'])

print("done get SV");


return keyword_search_volumes;


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit 

Final Url Report Return Final URL Instead of Mobile URL

2018-10-01 Thread hazar hayat
We have ads with final URLs and different URLs for mobile devices for 
example 

*Final URL:* http://www.example.com/clearance/cadillac

*Use a different final URL for mobile: *
 http://www.example.com/clearance-m/cadillac

When ads is displayed on mobile then mobile final URL is used for landing 
page. but when I download the Final Url Report it contain the non mobile 
final URL. due to this inconsistency I am not able to connect the Final Url 
Report data to my landing page data.

I think ideally the Final Url Report should contain the actual URL that is 
used for final user landing page which is the mobile URL in this case.

Please help, is it a bug or the API is design the in this way.

Thanks

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/e3236c6f-c2d9-4bf2-9421-14e4042c1c86%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Get user info after oauth2 login.

2018-10-01 Thread 'Peter Oliquino (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi Albert,

Retrieving customer information using the login email is currently not 
possible via the AdWords API. Feel free to write back if you have any 
further clarifications.

Best regards,
Peter
AdWords API Team

On Monday, October 1, 2018 at 6:35:17 PM UTC+8, Albert Paolo Rogelio wrote:
>
> Hi i want to retrieve the user info of the authenticated user.
>
> for example my login account is t...@gmail.com, i want to retrieve the 
> userinfo of t...@gmail.com including the email. 
>
> is it possible?
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/70f99d69-fe40-49d1-8a8a-eabd3353b8f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Parallel Tracking and DoubleClick Compatibility

2018-10-01 Thread hazar hayat
Thanks Sreelakshmi Sasidharan.

On Wednesday, September 19, 2018 at 12:42:06 AM UTC+5, Sreelakshmi 
Sasidharan (AdWords API Team) wrote:
>
> Hello, 
>
> Looks like they are using SA360 for tracking. Therefore, you will need to 
> check with your SA360 rep or follow this help center article 
>  before you 
> turn on parallel tracking as there are a handful of features that are not 
> compatible with parallel tracking as-is and you may need to migrate those 
> before enabling.
>
> Thanks,
> Sreelakshmi, AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/60a97ec3-e8a0-4e5f-8e91-8ee250c47baa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Get user info after oauth2 login.

2018-10-01 Thread Albert Paolo Rogelio
Hi i want to retrieve the user info of the authenticated user.

for example my login account is t...@gmail.com, i want to retrieve the 
userinfo of t...@gmail.com including the email. 

is it possible?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/6e22f98f-26f0-4f4c-9309-78524c219c05%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Requesting new Access Token with our Refresh Token Returns : Invalid_grant - bad request

2018-10-01 Thread Sanjay Hallan
Hi,

Sorry I got the numbers mixed up.

13/33 *have* RefreshErrors.

{'id': 7781436429}
{'id': 2571805292}
{'id': 9558321396}
{'id': 5101096140}
{'id': 3305442630}
{'id': 7295155533}
{'id': 1904669782}
{'id': 9477072454}
{'id': 9838836942}
{'id': 1934329786}
{'id': 9871404976}
{'id': 4457413337}
{'id': 4890741176}

23/33 *have No* RefeshErrors.

{'id': 7888937731}
{'id': 6837945770}
{'id': 4575354886}
{'id': 1307975342}
{'id': 6086158346}
{'id': 9945161489}
{'id': 1162788145}
{'id': 9532061527}
{'id': 6737894059}
{'id': 3170981672}
{'id': 3045943378}
{'id': 3340165631}
{'id': 6486366039}
{'id': 9109982340}
{'id': 4219022100}
{'id': 4473017397}
{'id': 3762325358}
{'id': 9509142097}
{'id': 2517045265}
{'id': 3582820047}
{'id': 7109445982}
{'id': 3988295758}
{'id': 5192212219}
.

Thanks
Sanjay

On Mon, Oct 1, 2018 at 10:50 AM Sanjay Hallan  wrote:

> Hi,
>
> Thanks for the email.
>
> I have tried the curl command but still get the same issue.
>
> We currently manage 33 adwords accounts.
>
> 13/33 have no RefreshErrors.
>
> 23/33 of these accounts have RefreshErrors.
>
> We are using the same client_id and client_secret for all 33 accounts.
>
> Its strange how the refresh token for 23/33 accounts have expired at
> relatively the same time..
>
> This problem has only started to happen a few weeks ago and we have not
> changed any of your authentication code in a long time.
>
> Are we hitting some limits somewhere?
>
> Thanks
> Sanjay
>
>
> On Fri, Sep 28, 2018 at 9:43 PM 'Milind Sankeshware (AdWords API Team)'
> via AdWords API and Google Ads API Forum 
> wrote:
>
>> Hi Sanjay,
>>
>> The "invalid_grant" error usually indicates that the access or refresh
>> token being passed in your request is incorrect or invalid. To verify that
>> your credentials are correct, you could also try the CURL request provided
>> below and see if you are able to generate the access tokens? If the
>> credentials are correct, you should get an access token for the below
>> request.
>> curl https://www.googleapis.com/oauth2/v4/token \
>> -d refresh_token=your-refresh_token \
>> -d client_id=your-client-id \
>> -d client_secret=your-client-secret \
>> -d grant_type=refresh_token
>>
>> If your credentials are incorrect and still facing an issue then could
>> you generate a new refresh token with the help of this guide
>> 
>>  and
>> retry your request? As per this guide
>> ,
>> you will need to create limited refresh token. When the user login exceeds
>> the number of refresh tokens that are generated, the older ones will be
>> invalidated. For instance, when you create the 51st refresh token for a
>> given set of credentials the very first refresh token will be invalidated
>> due to this limit. If you are using the client library
>>  to make
>> the API call, you will need to store this refresh token in property file so
>> that client library will generate the access token automatically. Let me
>> know if you have any further questions.
>>
>> Thanks,
>> Milind, AdWords API Team
>>
>> --
>> --
>> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>> Also find us on our blog:
>> https://googleadsdeveloper.blogspot.com/
>> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>>
>> You received this message because you are subscribed to the Google
>> Groups "AdWords API and Google Ads 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 a topic in the
>> Google Groups "AdWords API and Google Ads API Forum" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/adwords-api/LgBodqQwDKA/unsubscribe.
>> To unsubscribe from this group and all its topics, 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/5591a204-8a8c-4f73-b588-476b1ff7c6e0%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> --
>
> Thanks
>
> *Sanjay Hallan*
> Senior Developer
>
> Website: https://goshift.com 
>
> This e-mail message may contain confidential or legally privileged 
> information and is intended only for the use of the intended recipient(s). 
> Any unauthorized disclosure, dissemination, distribution, copying or the 
> taking of 

Re: Requesting new Access Token with our Refresh Token Returns : Invalid_grant - bad request

2018-10-01 Thread Sanjay Hallan
Hi,

Thanks for the email.

I have tried the curl command but still get the same issue.

We currently manage 33 adwords accounts.

13/33 have no RefreshErrors.

23/33 of these accounts have RefreshErrors.

We are using the same client_id and client_secret for all 33 accounts.

Its strange how the refresh token for 23/33 accounts have expired at
relatively the same time..

This problem has only started to happen a few weeks ago and we have not
changed any of your authentication code in a long time.

Are we hitting some limits somewhere?

Thanks
Sanjay


On Fri, Sep 28, 2018 at 9:43 PM 'Milind Sankeshware (AdWords API Team)' via
AdWords API and Google Ads API Forum  wrote:

> Hi Sanjay,
>
> The "invalid_grant" error usually indicates that the access or refresh
> token being passed in your request is incorrect or invalid. To verify that
> your credentials are correct, you could also try the CURL request provided
> below and see if you are able to generate the access tokens? If the
> credentials are correct, you should get an access token for the below
> request.
> curl https://www.googleapis.com/oauth2/v4/token \
> -d refresh_token=your-refresh_token \
> -d client_id=your-client-id \
> -d client_secret=your-client-secret \
> -d grant_type=refresh_token
>
> If your credentials are incorrect and still facing an issue then could you
> generate a new refresh token with the help of this guide
> 
>  and
> retry your request? As per this guide
> ,
> you will need to create limited refresh token. When the user login exceeds
> the number of refresh tokens that are generated, the older ones will be
> invalidated. For instance, when you create the 51st refresh token for a
> given set of credentials the very first refresh token will be invalidated
> due to this limit. If you are using the client library
>  to make
> the API call, you will need to store this refresh token in property file so
> that client library will generate the access token automatically. Let me
> know if you have any further questions.
>
> Thanks,
> Milind, AdWords API Team
>
> --
> --
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Also find us on our blog:
> https://googleadsdeveloper.blogspot.com/
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>
> You received this message because you are subscribed to the Google
> Groups "AdWords API and Google Ads 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 a topic in the
> Google Groups "AdWords API and Google Ads API Forum" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/adwords-api/LgBodqQwDKA/unsubscribe.
> To unsubscribe from this group and all its topics, 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/5591a204-8a8c-4f73-b588-476b1ff7c6e0%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 

Thanks

*Sanjay Hallan*
Senior Developer

Website: https://goshift.com 

This e-mail message may contain confidential or legally privileged
information and is intended only for the use of the intended
recipient(s). Any unauthorized disclosure, dissemination,
distribution, copying or the taking of any action in reliance on the
information herein is prohibited. E-mails are not secure and cannot be
guaranteed to be error free as they can be intercepted, amended, or
contain viruses. Anyone who communicates with us by e-mail is deemed
to have accepted these risks. Shift is not responsible for errors or
omissions in this message and denies any responsibility for any damage
arising from the use of e-mail. Any opinion and other statement
contained in this message and any attachment are solely those of the
author and do not necessarily represent those of the company.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to

Re: Parsing Column Data

2018-10-01 Thread 'Peter Oliquino (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi Deniz,

What I meant by that statement in my private response was that, you can 
create a code on your end to implement the feauture. Please note, however, 
that implementation of features not available in the AdWords API is already 
out of scope for us. I'm afraid our team would not be able to provide 
recommendation regarding this.

Best regards,
Peter
AdWords API Team

On Monday, October 1, 2018 at 4:04:18 PM UTC+8, 
deniz.konusarakog...@gmail.com wrote:
>
> Hi Peter, Could you please show me a way to impement such a feature you 
> mentioned ? 
> Btw does "end" in your sentence represent Adwords ? or Datastudio ? (..you 
> will need to implement a parsing feature on your end ..)
>
> Thank you very much! That's a really big favour for us!
> deniz
>
>
>
> On Monday, October 1, 2018 at 9:00:20 AM UTC+3, deniz.konu...@gmail.com 
> wrote:
>>
>> Hello Peter, thank you for replying. Regardless of discrepancies risk, I 
>> just wanna know if there is a way to use FinalURL field like I mentioned 
>> above? 
>>
>> deniz
>>
>> On Monday, October 1, 2018 at 8:13:05 AM UTC+3, Peter Oliquino (AdWords 
>> API Team) wrote:
>>>
>>> Hi Deniz,
>>>
>>> Using the Final URL Report 
>>> ,
>>>  
>>> you should be able to retrieve the EffectiveFinalUrl 
>>> 
>>>  field 
>>> in which all metrics such as impressions and costs are aggregated to. 
>>> However, parsing the said field and using only a part of the said URL is 
>>> not recommended as this may result in discrepancies.
>>>
>>> Thanks and regards,
>>> Peter
>>> AdWords API Team
>>>
>>> On Saturday, September 29, 2018 at 3:48:47 AM UTC+8, 
>>> deniz.konu...@gmail.com wrote:

 Hi there, I would like to use FinalURL data from Adwords in a report on 
 Google Data Studio where our database is connected too. I could figure out 
 to use data from Adwords and my database in the same report but there is 
 something I need some assistance to find a way out if it is possible: 

 FinalURL: .../?utm_source=google&*utm_content=*_medium=cpc 
 ...
 Cost of this final URL: YY$
 Z=AAA value coming from database for  content 

 I have the same "Content" field information in my database* so I can 
 use it as a join-key*, here it is the report I am trying to build like:

 Content Cost Z
  YY AAA

 Is it possible to reach data by parsing a field from Adwords to 
 datastudio ? 

 This is significantly important for me, I would appreciate if you could 
 help me. Thank you very much in advance.

 deniz











-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/ba397ab4-2403-4b6d-9064-1d19d56fef43%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Can't get AdWords Campaign info (invalid_grant or USER_PERMISSION_DENIED)

2018-10-01 Thread 'Peter Oliquino (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi,

The OAuth2 credentials you need to use should always be created using an 
email address which has access to the account (clientCustomerId) that you 
are making the calls against. In your scenario, using the production MCC 
OAuth2 credentials for the test MCC account is incorrect. You will need to 
create a separate set of the OAuth2 credentials (including the 
refreshToken) exclusive to the test MCC account to avoid the errors you are 
encountering.

Let me know if this helps.

Thanks and regards,
Peter
AdWords API Team

On Monday, October 1, 2018 at 2:00:02 PM UTC+8, fp.mmc.m...@gmail.com wrote:
>
> I'm trying to send my very first request to AdWords API (get some info 
> about campaign).
> So I setted up:
>
> 1. The client id - From Google API console (mcc email used).
> 2. Secret id - From Google API console (mcc email used).
> 3. Refresh token - Production MCC account.
> 4. Developer token - Production MCC account which is in pending approval.
> 5. Adwords Client customer id of the test account in test manager account.
>
> If I use production MCC refresh token and test client customer account ID 
> I get this error: 
> *AuthorizationError.USER_PERMISSION_DENIED*
>
> If I use test MCC refresh token and test client customer account ID I get 
> this error:
> *error: 'invalid_grant', error_description: 'Bad Request'*
>
> So what do I have to use to get access to AdWords API? 
>
>
>
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/88a0a343-5ffc-42dd-8c14-6614065ad88e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Youtube video ad report using Python

2018-10-01 Thread 'Dannison Yao (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi Shiv,

Could you confirm if what you wish to retrieve is the direct equivalent of 
the Ad Group Performance report in the API, the same as the attached file? 
If so, you could check out the Adgroup Performance Report 

 to 
get statistical reports of your YouTube videos in an adgroup level and use 
the AdNetworkType1 

 and AdNetworkType2 

 to 
filter out only YouTube videos. The other fields specified in your .csv 
file can also be seen in the link I have provided.

To download reports in the AdWords API, you may follow our reporting 
guidelines  
for 
further details. You may also refer to our sample codes 
 on 
how to download reports.

Regards,
Dannison
AdWords API Team

On Monday, October 1, 2018 at 2:09:11 PM UTC+8, Digi West wrote:
>
> Hey!
>
> High Priority Ask!
>
> I am trying to automate the download of the Youtube Video Ad report using 
> Python. 
>
> This report should contain the performance of a video ad seen on youtube 
> videos and the breakdown is by the Ad Groups. Each Ad Group corresponds to 
> a specific Audience segment for us.
>
> Please tell me how this can be done. The sample file which is downloaded 
> from the web interface is attached here.
>
>
> Thanks!
> Shiv
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/39077297-eed5-43b6-8660-ac66ab40eaf5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Parsing Column Data

2018-10-01 Thread deniz . konusarakogren
Hi Peter, Could you please show me a way to impement such a feature you 
mentioned ? 
Btw does "end" in your sentence represent Adwords ? or Datastudio ? (..you 
will need to implement a parsing feature on your end ..)

Thank you very much! That's a really big favour for us!
deniz



On Monday, October 1, 2018 at 9:00:20 AM UTC+3, deniz.konu...@gmail.com 
wrote:
>
> Hello Peter, thank you for replying. Regardless of discrepancies risk, I 
> just wanna know if there is a way to use FinalURL field like I mentioned 
> above? 
>
> deniz
>
> On Monday, October 1, 2018 at 8:13:05 AM UTC+3, Peter Oliquino (AdWords 
> API Team) wrote:
>>
>> Hi Deniz,
>>
>> Using the Final URL Report 
>> ,
>>  
>> you should be able to retrieve the EffectiveFinalUrl 
>> 
>>  field 
>> in which all metrics such as impressions and costs are aggregated to. 
>> However, parsing the said field and using only a part of the said URL is 
>> not recommended as this may result in discrepancies.
>>
>> Thanks and regards,
>> Peter
>> AdWords API Team
>>
>> On Saturday, September 29, 2018 at 3:48:47 AM UTC+8, 
>> deniz.konu...@gmail.com wrote:
>>>
>>> Hi there, I would like to use FinalURL data from Adwords in a report on 
>>> Google Data Studio where our database is connected too. I could figure out 
>>> to use data from Adwords and my database in the same report but there is 
>>> something I need some assistance to find a way out if it is possible: 
>>>
>>> FinalURL: .../?utm_source=google&*utm_content=*_medium=cpc 
>>> ...
>>> Cost of this final URL: YY$
>>> Z=AAA value coming from database for  content 
>>>
>>> I have the same "Content" field information in my database* so I can 
>>> use it as a join-key*, here it is the report I am trying to build like:
>>>
>>> Content Cost Z
>>>  YY AAA
>>>
>>> Is it possible to reach data by parsing a field from Adwords to 
>>> datastudio ? 
>>>
>>> This is significantly important for me, I would appreciate if you could 
>>> help me. Thank you very much in advance.
>>>
>>> deniz
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/dc305bb5-f889-482a-91cb-cf5128965d24%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Youtube Video Ads performance reporting in Python

2018-10-01 Thread Digi West
Hi!

I am trying to automate the process of reporting Youtube Video Ads 
performance by using the API in Python. 

What would be the API that would get me this data and what is the format of 
this call, given that the CSV table currently manually downloaded is 
attached above. I am trying to get the same data through the API.

Please Help!

Best,
Shiv Sharma
Edelman

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/deb7cfd0-cb9a-43e3-92d9-0a765b0754dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Ad group report,,,
"September 24, 2018 - September 26, 2018",,,
Day,Ad group status,Ad group,Status,Currency code,Max. CPV,Views,Avg. CPV,Cost,Impr.,Video played to 25%,Video played to 50%,Video played to 75%,Video played to 100%,Clicks,Ad group ID
9/26/2018,Enabled,Values removed for sharing,Eligible,USD,10,"16,550",0.06,1058.05,"38,541",42.17%,34.58%,30.69%,28.09%,107,Values removed for sharing
9/25/2018,Enabled,Values removed for sharing,Eligible,USD,10,"18,109",0.06,1056.74,"39,523",45.14%,37.71%,33.81%,30.96%,110,Values removed for sharing
9/26/2018,Enabled,Values removed for sharing,Eligible,USD,10,25,0.07,1.77,79,31.65%,30.38%,24.05%,20.25%,0,Values removed for sharing
9/26/2018,Enabled,Values removed for sharing,Eligible,USD,10,1,0.03,0.03,19,5.26%,5.26%,5.26%,5.26%,0,Values removed for sharing
9/24/2018,Enabled,Values removed for sharing,Eligible,USD,10,"4,674",0.15,703.43,"38,516",11.42%,7.75%,6.39%,5.62%,79,Values removed for sharing
9/24/2018,Enabled,Values removed for sharing,Eligible,USD,10,118,0.19,22.46,"1,039",10.66%,7.68%,5.96%,5.09%,1,Values removed for sharing
9/25/2018,Enabled,Values removed for sharing,Eligible,USD,10,47,0.07,3.2,109,40.37%,35.78%,33.03%,28.44%,1,Values removed for sharing
9/24/2018,Enabled,Values removed for sharing,Eligible,USD,10,8,0.14,1.14,135,5.19%,4.44%,3.70%,3.70%,1,Values removed for sharing
9/25/2018,Enabled,Values removed for sharing,Eligible,USD,10,1,0.03,0.03,5,20.00%,0.00%,0.00%,0.00%,0,Values removed for sharing
,Total: Filtered ad groups,,,USD,,"39,533",0.07,2846.84,"117,966",32.79%,26.59%,23.54%,21.47%,299,
9/24/2018,Total: Filtered ad groups,,,USD,,"4,800",0.15,727.02,"39,690",11.38%,7.73%,6.37%,5.60%,81,
9/25/2018,Total: Filtered ad groups,,,USD,,"18,157",0.06,1059.97,"39,637",45.12%,37.70%,33.80%,30.95%,111,
9/26/2018,Total: Filtered ad groups,,,USD,,"16,576",0.06,1059.85,"38,639",42.13%,34.56%,30.66%,28.06%,107,
,Total: Manager account,,,USD,,"39,533",0.07,2846.84,"117,966",32.79%,26.59%,23.54%,21.47%,299,
9/24/2018,Total: Manager account,,,USD,,"4,800",0.15,727.02,"39,690",11.38%,7.73%,6.37%,5.60%,81,
9/26/2018,Total: Manager account,,,USD,,"16,576",0.06,1059.85,"38,639",42.13%,34.56%,30.66%,28.06%,107,
9/25/2018,Total: Manager account,,,USD,,"18,157",0.06,1059.97,"39,637",45.12%,37.70%,33.80%,30.95%,111,


Youtube video ad report using Python

2018-10-01 Thread Digi West
Hey!

High Priority Ask!

I am trying to automate the download of the Youtube Video Ad report using 
Python. 

This report should contain the performance of a video ad seen on youtube 
videos and the breakdown is by the Ad Groups. Each Ad Group corresponds to 
a specific Audience segment for us.

Please tell me how this can be done. The sample file which is downloaded 
from the web interface is attached here.


Thanks!
Shiv

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/43a8f81e-6e73-4b0e-a32a-204c22c09a11%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Ad group report,,,
"September 24, 2018 - September 26, 2018",,,
Day,Ad group status,Ad group,Status,Currency code,Max. CPV,Views,Avg. CPV,Cost,Impr.,Video played to 25%,Video played to 50%,Video played to 75%,Video played to 100%,Clicks,Ad group ID
9/26/2018,Enabled,Values removed for sharing,Eligible,USD,10,"16,550",0.06,1058.05,"38,541",42.17%,34.58%,30.69%,28.09%,107,Values removed for sharing
9/25/2018,Enabled,Values removed for sharing,Eligible,USD,10,"18,109",0.06,1056.74,"39,523",45.14%,37.71%,33.81%,30.96%,110,Values removed for sharing
9/26/2018,Enabled,Values removed for sharing,Eligible,USD,10,25,0.07,1.77,79,31.65%,30.38%,24.05%,20.25%,0,Values removed for sharing
9/26/2018,Enabled,Values removed for sharing,Eligible,USD,10,1,0.03,0.03,19,5.26%,5.26%,5.26%,5.26%,0,Values removed for sharing
9/24/2018,Enabled,Values removed for sharing,Eligible,USD,10,"4,674",0.15,703.43,"38,516",11.42%,7.75%,6.39%,5.62%,79,Values removed for sharing
9/24/2018,Enabled,Values removed for sharing,Eligible,USD,10,118,0.19,22.46,"1,039",10.66%,7.68%,5.96%,5.09%,1,Values removed for sharing
9/25/2018,Enabled,Values removed for sharing,Eligible,USD,10,47,0.07,3.2,109,40.37%,35.78%,33.03%,28.44%,1,Values removed for sharing
9/24/2018,Enabled,Values removed for sharing,Eligible,USD,10,8,0.14,1.14,135,5.19%,4.44%,3.70%,3.70%,1,Values removed for sharing
9/25/2018,Enabled,Values removed for sharing,Eligible,USD,10,1,0.03,0.03,5,20.00%,0.00%,0.00%,0.00%,0,Values removed for sharing
,Total: Filtered ad groups,,,USD,,"39,533",0.07,2846.84,"117,966",32.79%,26.59%,23.54%,21.47%,299,
9/24/2018,Total: Filtered ad groups,,,USD,,"4,800",0.15,727.02,"39,690",11.38%,7.73%,6.37%,5.60%,81,
9/25/2018,Total: Filtered ad groups,,,USD,,"18,157",0.06,1059.97,"39,637",45.12%,37.70%,33.80%,30.95%,111,
9/26/2018,Total: Filtered ad groups,,,USD,,"16,576",0.06,1059.85,"38,639",42.13%,34.56%,30.66%,28.06%,107,
,Total: Manager account,,,USD,,"39,533",0.07,2846.84,"117,966",32.79%,26.59%,23.54%,21.47%,299,
9/24/2018,Total: Manager account,,,USD,,"4,800",0.15,727.02,"39,690",11.38%,7.73%,6.37%,5.60%,81,
9/26/2018,Total: Manager account,,,USD,,"16,576",0.06,1059.85,"38,639",42.13%,34.56%,30.66%,28.06%,107,
9/25/2018,Total: Manager account,,,USD,,"18,157",0.06,1059.97,"39,637",45.12%,37.70%,33.80%,30.95%,111,


Re: TrialService InternalApiError.UNEXPECTED_INTERNAL_API_ERROR

2018-10-01 Thread 'Dannison Yao (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi,

It appears that this post is related to this thread 
.
 
You may refer to the link provided for my response and to better track our 
communication.

Regards,
Dannison
AdWords API Team

On Saturday, September 29, 2018 at 3:51:27 AM UTC+8, Stella wrote:
>
> Hi, I’ve checked provious dicussion the group, here is my code of 
> following instructions of logging.
>
> I have used this code to create trial campaign 2weeks ago and it worked 
> well. Now get below error, and I get no more logging when after following 
> instructions.
>
> https://developers.google.com/adwords/api/docs/guides/campaign-drafts-experiments
>
> https://github.com/googleads/googleads-python-lib/tree/b80b8b3741a55f1d00c5974bc58f92540663c6f6#user-content-how-do-i-log-soap-interactions
>
> trial = {
> 'draftId': available_pool.loc[index]['draftId'],
> 'baseCampaignId': available_pool.loc[index]['draft_campaign_id'],
> 'name': '%s_value' %available_pool.loc[index]['CampaignName'],
> 'trafficSplitPercent': 30,
> 'startDate': '2018-10-01',
> 'endDate': '2019-01-26'
> }
> trial_operation = {'operator': 'ADD', 'operand': trial}
>
> import logging
> logging.basicConfig(level=logging.INFO)
> logging.getLogger('suds.transport').setLevel(logging.DEBUG)
>
> trial_result = trial_service.mutate([trial_operation])
>
>
> [WARNING] 2018-09-28 09:18:55,308 googleads.soap(363): Error summary: 
> {'faultMessage': '[InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ 
> com.google.ads.api.services.common.error.InternalApiError.(InternalApiErro]',
>  
> 'requestId': '000576f0cfd8ecd00a37ac0b110b3534', 'serviceName': 
> 'TrialService', 'methodName': 'mutate', 'operations': '1', 'responseTime': 
> '337'}
> Traceback (most recent call last):
>   File "/usr/local/lib/python3.6/site-packages/googleads/common.py", line 
> 1371, in MakeSoapRequest
> *packed_args, _soapheaders=soap_headers)['body']['rval']
>   File "/usr/local/lib/python3.6/site-packages/zeep/client.py", line 45, 
> in __call__
> self._op_name, args, kwargs)
>   File 
> "/usr/local/lib/python3.6/site-packages/zeep/wsdl/bindings/soap.py", line 
> 121, in send
> return self.process_reply(client, operation_obj, response)
>   File 
> "/usr/local/lib/python3.6/site-packages/zeep/wsdl/bindings/soap.py", line 
> 186, in process_reply
> return self.process_error(doc, operation)
>   File 
> "/usr/local/lib/python3.6/site-packages/zeep/wsdl/bindings/soap.py", line 
> 291, in process_error
> detail=fault_node.find('detail'))
> zeep.exceptions.Fault: [InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ 
> com.google.ads.api.services.common.error.InternalApiError.(InternalApiErro]
> During handling of the above exception, another exception occurred:
> Traceback (most recent call last):
>   File 
> "/Users/stellayang/Library/Python/3.6/lib/python/site-packages/IPython/core/interactiveshell.py",
>  
> line 2881, in run_code
> exec(code_obj, self.user_global_ns, self.user_ns)
>   File "", line 15, in 
> trial_result = trial_service.mutate([trial_operation])['value']
>   File "/usr/local/lib/python3.6/site-packages/googleads/common.py", line 
> 1383, in MakeSoapRequest
> e.detail, errors=error_list, message=e.message)
> googleads.errors.GoogleAdsServerFault: 
> [InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ 
> com.google.ads.api.services.common.error.InternalApiError.(InternalApiErro]
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/32ea0dec-3a6a-4b02-be71-e4cc7052699f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: TrialService gets UNEXPECTED_INTERNAL_API_ERROR (related with MakeSoapRequest)

2018-10-01 Thread 'Dannison Yao (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi Stella,

The UNEXPECTED_INTERNAL_API_ERROR 

 error 
message may occur if the service request is too big or possible due to a 
bug. It is advisable to wait for a few minutes before making the service 
call again. If you are encountering this error consistently, could you 
provide me the complete SOAP request and response logs that were generated 
when the error was encountered so I could investigate this further? You may 
send it to me via *Reply privately to author*.

To enable logging in Python, you could refer to this guide 

 on 
how to do so.

Regards,
Dannison
AdWords API Team

On Saturday, September 29, 2018 at 3:51:17 AM UTC+8, Stella wrote:
>
> Hi,
>
> I am using the TrialService. It runs well for once two weeks ago when I 
> create a trial through version=‘v201806’
>
> But I did run into “InternalApiError.UNEXPECTED_INTERNAL_API_ERROR" today 
> trying to  for one of my campaigns. I am following the same python demo 
> here: 
> https://developers.google.com/adwords/api/docs/guides/campaign-drafts-experiments
>
> I got warnings and error :
>
> [WARNING] 2018-09-28 08:12:42,534 googleads.soap(363): Error summary: 
> {'faultMessage': '[InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ 
> com.google.ads.api.services.common.error.InternalApiError.(InternalApiErro]',
>  
> 'requestId': ‘xx', 'serviceName': 'TrialService', 'methodName': 
> 'mutate', 'operations': '1', 'responseTime': '245'}
> During handling of the above exception, another exception occurred:
> ...in MakeSoapRequest e.detail, errors=error_list, message=e.message)
> googleads.errors.GoogleAdsServerFault: 
> [InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ 
> com.google.ads.api.services.common.error.InternalApiError.(InternalApiErro]
>
> Have also tryied logging according to a instruction in the group,but no 
> more things pop up.  Please help take a look. Thank you
>
> This is the code I am using:
>
> trial_service = client.GetService('TrialService', version='v201806')
>
> trial_async_error_service = client.GetService('TrialAsyncErrorService', 
> version='v201806’)
>
> trial = {
> 'draftId': draftId,
>
> 'baseCampaignId': baseCampaignId,
>
> 'name': '%s_trial' %CampaignName,
> 'trafficSplitPercent': 50,
> 'startDate':’2019-01-01',
> 'endDate':'2020-01-01'
> }
>
> trial_operation = {'operator': 'ADD', 'operand': trial}
> trial_result = trial_service.mutate([trial_operation])['value’]
>
>
> import logging
> logging.basicConfig(level=logging.INFO)
> logging.getLogger('suds.transport').setLevel(logging.DEBUG)
> trial_result = trial_service.mutate([trial_operation])
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/bf3a367a-222d-4e02-a709-0113a9d9f8ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Parsing Column Data

2018-10-01 Thread deniz . konusarakogren
Hello Peter, thank you for replying. Regardless of discrepancies risk, I 
just wanna know if there is a way to use FinalURL field like I mentioned 
above? 

deniz

On Monday, October 1, 2018 at 8:13:05 AM UTC+3, Peter Oliquino (AdWords API 
Team) wrote:
>
> Hi Deniz,
>
> Using the Final URL Report 
> ,
>  
> you should be able to retrieve the EffectiveFinalUrl 
> 
>  field 
> in which all metrics such as impressions and costs are aggregated to. 
> However, parsing the said field and using only a part of the said URL is 
> not recommended as this may result in discrepancies.
>
> Thanks and regards,
> Peter
> AdWords API Team
>
> On Saturday, September 29, 2018 at 3:48:47 AM UTC+8, 
> deniz.konu...@gmail.com  wrote:
>>
>> Hi there, I would like to use FinalURL data from Adwords in a report on 
>> Google Data Studio where our database is connected too. I could figure out 
>> to use data from Adwords and my database in the same report but there is 
>> something I need some assistance to find a way out if it is possible: 
>>
>> FinalURL: .../?utm_source=google&*utm_content=*_medium=cpc 
>> ...
>> Cost of this final URL: YY$
>> Z=AAA value coming from database for  content 
>>
>> I have the same "Content" field information in my database* so I can use 
>> it as a join-key*, here it is the report I am trying to build like:
>>
>> Content Cost Z
>>  YY AAA
>>
>> Is it possible to reach data by parsing a field from Adwords to 
>> datastudio ? 
>>
>> This is significantly important for me, I would appreciate if you could 
>> help me. Thank you very much in advance.
>>
>> deniz
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/0770abeb-966b-4cdb-b7f1-8df8ec093d0e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


AuthorizationError.USER_PERMISSION_DENIED

2018-10-01 Thread fp . mmc . mail
I'm trying to make my first API call and get an error:

*AuthorizationError.USER_PERMISSION_DENIED*

My configuration is:

1. Developer token - My production token which is pending approval now
2. Client customer ID - The ID of Test AdWords acc which contains a test 
campaign (Not Test Mcc acc)
3. Client ID - The ID from google api console
4. Client secret - The secret from google api console
5. Refresh token - The token of production MCC account

Is this a correct configuration for using AdWords API? Why do I get 
this Authorization Error?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/72528d27-8878-490a-bd6c-9d9d9210f15f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.