Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

Bing Ads: Invalid client data #54

Open
zacksmash opened this issue Sep 17, 2022 · 6 comments
Open

Bing Ads: Invalid client data #54

zacksmash opened this issue Sep 17, 2022 · 6 comments

Comments

@zacksmash
Copy link
Contributor

I'm using the Bing Ads service, with the getCampaignReport() method, and I keep getting this error:

Invalid client data. Check the SOAP fault details for more information. TrackingId: some-uuid-xxx

Here's my query:

$response = LaravelAds::bingAds()
    ->with($this->client->bing_ads_id) // I've verified I'm using the correct Bing AID
    ->reports($this->dates[0], $this->dates[1]) // The dates are well formatted: yyyy-mm-dd
    ->setFields([
        CampaignPerformanceReportColumn::TimePeriod,
        CampaignPerformanceReportColumn::AccountId,
        CampaignPerformanceReportColumn::CampaignName,
        CampaignPerformanceReportColumn::CampaignId,
        CampaignPerformanceReportColumn::CampaignType,
        CampaignPerformanceReportColumn::Impressions,
        CampaignPerformanceReportColumn::Clicks,
        CampaignPerformanceReportColumn::Conversions,
        CampaignPerformanceReportColumn::Ctr,
        CampaignPerformanceReportColumn::AverageCpc,
        CampaignPerformanceReportColumn::Spend,
    ])
    ->getCampaignReport();

I've double checked my credentials and even generated new ones to be absolutely sure. I've request a new access token, using the artisan command provided. Any ideas what could the issue?

@webmid
Copy link

webmid commented Sep 21, 2022

@timothymarois
I have same issue!

@webmid
Copy link

webmid commented Sep 23, 2022

Hi again. I found the issue. You should change the scope and update Microsoft Bing package to last version
You must update your application to get user consent using the new msads.manage scope. All application developers must take action to use the new scope.
for more information read this document:
Document

@BaukeBoorsma
Copy link

@webmid Thanks for pointing me in the right direction with your comment.
My credentials expired yesterday and I couldn't get them renewed, even when manually changing the url to have the new scopes and enabling MFA on my account (Bing docs said MFA was now also mandatory).
Updating laravel-ads to dev-master, solved it.

@zacksmash
Copy link
Contributor Author

@webmid How did you change the scope?

@webmid
Copy link

webmid commented Sep 28, 2022

@zacksmash

You can see my changes here:

04021ab

@zacksmash
Copy link
Contributor Author

@webmid That's helpful, thank you!

Do we have an estimate on when this will be incorporated into the package, and released? @timothymarois

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants