BingAds / BingAds-Python-SDK

Other
117 stars 162 forks source link

Bing latest version #92

Closed nmylarappa closed 6 years ago

nmylarappa commented 6 years ago

I see that the latest version is 12. When would this version be available?

qitia commented 6 years ago

we've already support V12 since version 11.12.1. The SDK support both version 11 and 12 now. @nmylarappa

VishaldasM commented 5 years ago

Hi ,this is regarding bing api upgrade from 12 to 13 version as published in this web page (https://docs.microsoft.com/en-us/advertising/guides/migration-guide?view=bingads-13#reporting)we are running on 11.12.4 at present. we tried to upgrade to the latest version and we are getting below error. (we are using python 2.7)(bingenv)skumar@east1-prod-dwhadmin-1:~$ pip install -U bingads Collecting bingads Using cached https://files.pythonhosted.org/packages/7b/e5/c09900391ca26baf290151e63c092535be96d79ab83ad3cbc5797fb89fd2/bingads-12.13.6.zip Complete output from command python setup.py egg_info: error in bingads setup command: ‘install_requires’ must be a string or list of strings containing valid project/version requirement specifiers; Expected version spec in enum34;python_version<“3.4” at ;python_version<“3.4" ---------------------------------------- Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-NMxDFY/bingadswe are able to upgrade till 12.0.1 but not to any higher version than that.

Could someone look into it if we are missing anything?

qitia commented 5 years ago

Looking. +@Eric Urbanmailto:Eric.Urban@microsoft.com is there any know escalation or similar?

Thanks, Qingjun

From: VishaldasM notifications@github.com Sent: Thursday, October 24, 2019 7:38 PM To: BingAds/BingAds-Python-SDK BingAds-Python-SDK@noreply.github.com Cc: Qingjun Tian Qingjun.Tian@microsoft.com; Comment comment@noreply.github.com Subject: Re: [BingAds/BingAds-Python-SDK] Bing latest version (#92)

Hi ,this is regarding bing api upgrade from 12 to 13 version as published in this web page (https://docs.microsoft.com/en-us/advertising/guides/migration-guide?view=bingads-13#reporting)wehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fadvertising%2Fguides%2Fmigration-guide%3Fview%3Dbingads-13%23reporting)we&data=02%7C01%7CQingjun.Tian%40microsoft.com%7Cf952266ea5644125ad6708d75876a5a0%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637075138929185797&sdata=6kSYLiJCOimX%2BOdWCh5m30muZuoQ8ECg0Ar7ocPjZzQ%3D&reserved=0 are running on 11.12.4 at present. we tried to upgrade to the latest version and we are getting below error. (we are using python 2.7)(bingenv)skumar@east1-prod-dwhadmin-1:~$ pip install -U bingads Collecting bingads Using cached https://files.pythonhosted.org/packages/7b/e5/c09900391ca26baf290151e63c092535be96d79ab83ad3cbc5797fb89fd2/bingads-12.13.6.ziphttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Ffiles.pythonhosted.org%2Fpackages%2F7b%2Fe5%2Fc09900391ca26baf290151e63c092535be96d79ab83ad3cbc5797fb89fd2%2Fbingads-12.13.6.zip&data=02%7C01%7CQingjun.Tian%40microsoft.com%7Cf952266ea5644125ad6708d75876a5a0%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637075138929185797&sdata=2wjxEEyUap%2Bbua7iGtaNqOpWsjqb214x2eMDKmoSZAM%3D&reserved=0 Complete output from command python setup.py egg_info: error in bingads setup command: ‘install_requires’ must be a string or list of strings containing valid project/version requirement specifiers; Expected version spec in enum34;python_version<“3.4” at ;python_version<“3.4" ---------------------------------------- Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-NMxDFY/bingadswe are able to upgrade till 12.0.1 but not to any higher version than that.

Could someone look into it if we are missing anything?

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FBingAds%2FBingAds-Python-SDK%2Fissues%2F92%3Femail_source%3Dnotifications%26email_token%3DAG6WBQJ7ZNICD6ADFOVTGWLQQGCKDA5CNFSM4FNTGJN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECEW7BY%23issuecomment-545877895&data=02%7C01%7CQingjun.Tian%40microsoft.com%7Cf952266ea5644125ad6708d75876a5a0%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637075138929195753&sdata=fm8pV6owkE4WMp3Ql8ZwZbfIJkRo6qPzVPeg%2BJvoA4o%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAG6WBQIXQAPCMSY6A4J52F3QQGCKDANCNFSM4FNTGJNQ&data=02%7C01%7CQingjun.Tian%40microsoft.com%7Cf952266ea5644125ad6708d75876a5a0%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637075138929195753&sdata=dze8SHm%2F5tiEG%2BqxYaw5f5bIXIthR7%2F3o8eyU861Zkw%3D&reserved=0.

eric-urban commented 5 years ago

@qitia a similar issue was resolved as noted here. I hope this helps!

VishaldasM commented 5 years ago

Hi Team,

we upgraded bing version to 13 and tried to launch our jobs. we get below error. do we have different access levels for 13 version compared to previous versions ? (doesn't make much sense but this is what we are observing) we are able to execute same bing jobs on degraded version even today with the same credentials but getting access issues on 13 version.

Below is the exact error for reference:

/home/hkoppuravuri/virtual/bingv/local/lib/python2.7/site-packages/urllib3/util/ssl.py:380: SNIMissingWarning: An HTTPS request has been made, but the SNI (Server Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings SNIMissingWarning, /home/hkoppuravuri/virtual/bingv/local/lib/python2.7/site-packages/urllib3/util/ssl.py:139: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings InsecurePlatformWarning, error_code: invalid_grant, error_description: AADSTS70000: The request was denied because one or more scopes requested are unauthorized or expired. The user must first sign in and grant the client application access to the requested scope. Trace ID: 187438c4-f3ed-4e94-8b00-158288a31a00 Correlation ID: 2db347ca-39c4-4c91-98c1-d0117e66b071 Timestamp: 2019-10-29 05:59:22Z

Can you please help us on this..

eric-urban commented 5 years ago

@VishaldasM you might need new access and refresh tokens via the user consent flow. please note as of version 12.13.2: The default OAuth endpoint is updated from Live Connect endpoint to the Microsoft Identity endpoint for developers. The Microsoft Identity endpoint supports both Microsoft Account (MSA) personal credentials and Azure Active Directory (AAD) work credentials. For more information, see Upgrade to the Microsoft identity platform endpoint FAQ.