I would like to get my custom "Reports" data from my BingAds out with the bingads API. I am using the KeywordsAds.py
example, which may not be the correct one. However, my problem starts with the authentication, I cannot seem to find all the authentication inputs needed. I am missing examples in like, so I know if I am inserting the right data:
authorization_data=AuthorizationData(
account_id='123456789', --instead of just None
customer_id='123456789', --instead of just None
developer_token='12345A1234567891', --instead of just DeveloperTokenGoesHere
authentication='OAuthWebAuthCodeGrant', --instead of just None
)
1) To the code above, what authentication
do I need to choose for the WebAPI? (2) And for my problem stated, do I need to use a WebAPI, or would a Web
platform be more useful?
CLIENT_ID='ClientIdGoesHere'
CLIENT_STATE='ClientStateGoesHere'
3) What is the Client_State? I did google this term, but did not find an explanation. What values could/need to be inserted?
And lastly, I do not find the client_secret and redirection_uri in the example code, but it is stated on the Getting Started page for Python on Bing:
oauth_web_auth_code_grant = OAuthWebAuthCodeGrant(
client_id=CLIENT_ID,
client_secret=CLIENT_SECRET,
redirection_uri=REDIRECTION_URI
Is this necessary to fill in?