Skip to content

Issue for the example #198

Closed
Closed

Description

@hectorrrr6

Describe the bug
A clear and concise description of what the bug is.
When I use the example that Provided:

from ad_api.api import sponsored_products
my_credentials = dict(
     refresh_token='************************',
      client_id='************************',
      client_secret='************************',
)
result = sponsored_products.Campaigns(credentials=my_credentials).list_campaigns()
print(result)

Get the error:

     self.credentials = CredentialProvider(account, credentials, verify_additional_credentials).credentials
AttributeError: 'CredentialProvider' object has no attribute 'credentials'. Did you mean: 'load_credentials'?

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Activity

  1. denisneuf commented on May 7, 2024

    @denisneuf
    Owner

    my_credentials = dict(
    refresh_token='your-refresh_token',
    client_id='your-client_id',
    client_secret='your-client_secret',
    profile_id='your-profile_id',
    )

  2. Repository owner locked and limited conversation to collaborators on May 7, 2024
  3. converted this issue into a discussion #199 on May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions