Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decode error #696

Closed
kodeine opened this issue Feb 3, 2021 · 3 comments
Closed

Decode error #696

kodeine opened this issue Feb 3, 2021 · 3 comments

Comments

@kodeine
Copy link
Contributor

kodeine commented Feb 3, 2021

Hello,
I am getting the following when i use getAdGroupExtended

The account i'm testing with does have payment failure so i think ADVERTISER_PAYMENT_FAILURE needs to be added in types.

DecodeError: Invalid value "ADVERTISER_PAYMENT_FAILURE" supplied to : Array<({| campaignId: number, adGroupId: number, name: string, defaultBid: number, state: ("enabled" | "paused" | "archived") |} & { creationDate: DateFromNumber, lastUpdatedDate: DateFromNumber, servingStatus: ("AD_GROUP_ARCHIVED" | "AD_GROUP_PAUSED" | "AD_GROUP_STATUS_ENABLED" | "AD_POLICING_SUSPENDED" | "CAMPAIGN_OUT_OF_BUDGET" | "CAMPAIGN_PAUSED" | "CAMPAIGN_ARCHIVED" | "CAMPAIGN_INCOMPLETE" | "ACCOUNT_OUT_OF_BUDGET" | "PORTFOLIO_PENDING_START_DATE" | "PORTFOLIO_ENDED") })>/0: ({| campaignId: number, adGroupId: number, name: string, defaultBid: number, state: ("enabled" | "paused" | "archived") |} & { creationDate: DateFromNumber, lastUpdatedDate: DateFromNumber, servingStatus: ("AD_GROUP_ARCHIVED" | "AD_GROUP_PAUSED" | "AD_GROUP_STATUS_ENABLED" | "AD_POLICING_SUSPENDED" | "CAMPAIGN_OUT_OF_BUDGET" | "CAMPAIGN_PAUSED" | "CAMPAIGN_ARCHIVED" | "CAMPAIGN_INCOMPLETE" | "ACCOUNT_OUT_OF_BUDGET" | "PORTFOLIO_PENDING_START_DATE" | "PORTFOLIO_ENDED") })/1: { creationDate: DateFromNumber, lastUpdatedDate: DateFromNumber, servingStatus: ("AD_GROUP_ARCHIVED" | "AD_GROUP_PAUSED" | "AD_GROUP_STATUS_ENABLED" | "AD_POLICING_SUSPENDED" | "CAMPAIGN_OUT_OF_BUDGET" | "CAMPAIGN_PAUSED" | "CAMPAIGN_ARCHIVED" | "CAMPAIGN_INCOMPLETE" | "ACCOUNT_OUT_OF_BUDGET" | "PORTFOLIO_PENDING_START_DATE" | "PORTFOLIO_ENDED") }/servingStatus: ("AD_GROUP_ARCHIVED" | "AD_GROUP_PAUSED" | "AD_GROUP_STATUS_ENABLED" | "AD_POLICING_SUSPENDED" | "CAMPAIGN_OUT_OF_BUDGET" | "CAMPAIGN_PAUSED" | "CAMPAIGN_ARCHIVED" | "CAMPAIGN_INCOMPLETE" | "ACCOUNT_OUT_OF_BUDGET" | "PORTFOLIO_PENDING_START_DATE" | "PORTFOLIO_ENDED")/0: "AD_GROUP_ARCHIVED"
@moltar
Copy link
Contributor

moltar commented Feb 3, 2021

@kodeine wanna do a PR?

@kodeine
Copy link
Contributor Author

kodeine commented Feb 3, 2021

should i add this term in all modules, campaigns, keywords etc?

@moltar
Copy link
Contributor

moltar commented Feb 3, 2021

I am not sure, please check the docs. I am not too familiar with this part.

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

No branches or pull requests

2 participants