When is the last month data update at targeting_idea_service(requestType='STATS')?

2020-06-15 Thread 윤성원
Hi
I'm trying to get monthly volume data of my keywords.
I heard this API shows the data was shown last 12 months data in default, 
and automatically updated.
I can get the result until April but I still can't obtain May, 2020 data by 
call this api (I called it at June 15th).

When can I get the data of May?
Is there any necessary parameter to get updated data like start_date or 
end_date?
I use python library like below.


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', 'TARGETED_MONTHLY_SEARCHES']
 #'KEYWORD_TEXT', 'SEARCH_VOLUME', 'CATEGORY_PRODUCTS_AND_SERVICES']

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

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

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

if (len(selector['searchParameters']) > 2):
del selector['searchParameters'][2]
selector['searchParameters'].append({
'xsi_type': 'RelatedToQuerySearchParameter',
'queries': karr
})

page = targeting_idea_service.get(selector)

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/5d9175c7-3e85-4378-9dc6-b4387caa2b7eo%40googlegroups.com.


Google Trends keep changing though it is historical data.

2020-05-20 Thread 윤성원

Hi
I don't know where can I ask this issue about Google Trends.
Why is the graph drawn alternately in two types?
I searched at first and press the refresh key, but changes every 3 or 4 
minutes. It was the same condition and I checked it several times about 
this problem.
I tried yesterday and today too, but today they shows two types of data 
different from yesterday.

Please answer if you know the cause, or tell me where to ask
I send this problem to here, but they don't answer to me.

[image: cap.JPG]

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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/e3d7a4b9-b6ff-4459-880d-a16f8c6b904a%40googlegroups.com.


InternalApiError.UNEXPECTED_INTERNAL_API_ERROR in Python

2020-05-13 Thread 윤성원
Hi
I keep getting responses like UNEXPECTED_INTERNAL_API_ERROR.
I'm trying to get the monthly volume of my keywords but I can't.
I could get the correct response in PHP code, but not in python.

Here is my codes.
--
from googleads import adwords


# Optional AdGroup ID used to set a SearchAdGroupIdSearchParameter.
PAGE_SIZE = 100


def main(client):
  # Initialize appropriate service.
  targeting_idea_service = client.GetService(
  'TargetingIdeaService', version='v201809')

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

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

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

  selector['searchParameters'] = [{
  'xsi_type': 'RelatedToQuerySearchParameter',
  'queries': ['삼성카드']
  }]

  # 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': '1012'}]
  })

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

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

print(page)


if __name__ == '__main__':
  # Initialize client object.
  adwords_client = adwords.AdWordsClient.LoadFromStorage()

  main(adwords_client)
--

And the Error is below.
--
Error summary: {'faultMessage': 
'[InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ 
com.google.ads.api.services.common.error.InternalApiError.(InternalApiErro]',
 
'requestId': '0005a591950de0560ab46056a704a0e1', 'serviceName': 
'TargetingIdeaService', 'methodName': 'get', 'operations': '1', 
'responseTime': '224'}
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/googleads/common.py", line 
992, in MakeSoapRequest
*packed_args, _soapheaders=soap_headers)['body']['rval']
  File "/usr/local/lib/python3.6/site-packages/zeep/proxy.py", line 45, in 
__call__
kwargs,
  File "/usr/local/lib/python3.6/site-packages/zeep/wsdl/bindings/soap.py", 
line 130, in send
return self.process_reply(client, operation_obj, response)
  File "/usr/local/lib/python3.6/site-packages/zeep/wsdl/bindings/soap.py", 
line 195, in process_reply
return self.process_error(doc, operation)
  File "/usr/local/lib/python3.6/site-packages/zeep/wsdl/bindings/soap.py", 
line 299, 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 "/home/google/test.py", line 113, in 
main(adwords_client)
  File "/home/google/test.py", line 85, in main
page = targeting_idea_service.get(selector)
  File "/usr/local/lib/python3.6/site-packages/googleads/common.py", line 
1004, 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]
--

What is this commonError?
Please let me know where to fixed.
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 

Get the Previous Search volume in Keyword planning

2020-05-12 Thread 윤성원
Hi
I'm trying to get the monthly Search Volume of the keyword by using AdWords 
API.
I can get the Keyword Estimate but I could not find the old monthly data.

Where can I get the data in the API?
Thanks.

(I want the data below.)

[image: old_keyword_volume.JPG]

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/2d1cebbf-e901-428c-9fcb-13009decf3d8%40googlegroups.com.


Re: Can't I get all account of the login users

2019-08-26 Thread 윤성원
Thanks! 
I can get all accounts under ID:8676856055
by using this code: ->withClientCustomerId($mccId) 

But I had to ask user for MCC ID:8676856055.
How can I display a list of my MCC accounts that are accessible for users 
to choose instead of input as shown in the photo below?

Thanks all.






2019년 8월 27일 화요일 오전 2시 19분 49초 UTC+9, adsapiforumadvisor 님의 말:
>
> Hello,
>
> It is possible that you are including the ID: 7344067646 in your 
> properties file and making the API call. Could you please make sure that 
> you have the MCC account ID in the request header to pull all the accounts 
> under the hierarchy? If you're encountering any issues, could you please 
> enable 
> logging  and 
> share the API SOAP logs to take a closer look? You can share the details 
> privately via *Reply privately to author* option. 
>
> Thanks,
> Bharani, Google Ads API Team
>
> ref:_00D1U1174p._5001UHEdh4:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/2912ccde-6d3e-42aa-9fe4-11198319bfe2%40googlegroups.com.


Can't I get all account of the login users

2019-08-26 Thread 윤성원
Hi
My developer token has been approved by adwords team few days ago,
But I can't get all accounts of the users.
I got the auth associated with this MCC account(867-685-6055). 
And I logged in adcircle0710@gm*il.com who has the manager authorization 
about 867-685-6055, but I got the only one account like bellow.
There's no 'links:protected' under the username:Adcircle, also only that 
account. I want to get all accounts under 867-685-6055 account.

Google\AdsApi\AdWords\v201809\mcm\ManagedCustomerPage Object
(
[entries:protected] => Array
(
[0] => Google\AdsApi\AdWords\v201809\mcm\ManagedCustomer Object
(
[name:protected] => Adcircle
[customerId:protected] => 7344067646
[canManageClients:protected] => 
[currencyCode:protected] => 
[dateTimeZone:protected] => 
[testAccount:protected] => 
[accountLabels:protected] => 
[excludeHiddenAccounts:protected] => 
)

)

[links:protected] => 
[totalNumEntries:protected] => 1
[PageType:protected] => ManagedCustomerPage
[parameterMap:Google\AdsApi\AdWords\v201809\cm\Page:private] => Array
(
[Page.Type] => PageType
)

)

I used PHP AdWords library. 
Why can't I get all accounts even though I have administrative rights? And 
what can I do for get the information?
Thanks.


867-685-6055)

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/6bb8a0e1-04a7-4202-816e-79b84d36f991%40googlegroups.com.


How can I get all login users accounts?

2019-06-12 Thread 윤성원
I have a production account for my developerToken, clientId and clientSecret
and a test MCC Account with 5 accounts in child for my test.

I got the refresh token(offline type) for my test MCC account by oauth2 
login and tried to get all account list under the logined user wih the 
refreshToken.
But I got only one account under the test MCC account.
I added another test account under the test MCC account but the result was 
same.
Why can't I get the all list of accounts even though I logged in with the 
test MCC account that can access to thier child accounts?

And I tried to logged in with the test child account(one of the subaccount) 
but I got this error message.
Client error: `POST https://oauth2.googleapis.com/token` resulted in a `401 
Unauthorized` response: { "error": "unauthorized_client", 
"error_description": "Unauthorized" }

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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ad40dbb7-e489-47d2-ada6-9ef0bb906796%40googlegroups.com.


How can I get start date and end date of the ads already ended or will start?

2019-05-16 Thread 윤성원
Hi,

How can I get start date and end date of the ads?
I'm trying to get the report of the ads but there is only DATE, YEAR, 
MONTH, etc.. columns.

I'm using PHP library, and call the downloadReport of the ReportDownloader.
Please let me know where can I earn the start and end dates where the ad 
actually appeared,

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/4eac353c-398c-428e-b7d9-f9d6f9de9b5a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.